vlookup, IF, and ISNA

M

MMBOLI

Need help with maybe simple formula.

I want to retrieve data based on a reporting date. I have two ranges
(actual and projected).

If retrieval date is equal to or less than reporting date, vlookup
retrieve data from actual range. If no data, return zero.

If retrieval date is greater than reporting date, vlookup retrieve data
from projected range. If no data, return zero.



=IF(E18<=$B$5,VLOOKUP(E18,ACTUAL,2,FALSE),IF(E18>$B$5,VLOOKUP(E18,PROJECTED,2,FALSE)))


E18 equals retrieval date, and B5 equals reporting date.

Newbie here, thanks in advance for your help.
MMBOLI
 
F

Franz Verga

MMBOLI said:
Need help with maybe simple formula.

I want to retrieve data based on a reporting date. I have two ranges
(actual and projected).

If retrieval date is equal to or less than reporting date, vlookup
retrieve data from actual range. If no data, return zero.

If retrieval date is greater than reporting date, vlookup retrieve
data from projected range. If no data, return zero.



=IF(E18<=$B$5,VLOOKUP(E18,ACTUAL,2,FALSE),IF(E18>$B$5,VLOOKUP(E18,PROJECTED,2,FALSE)))


E18 equals retrieval date, and B5 equals reporting date.

Newbie here, thanks in advance for your help.
MMBOLI


Try with this:

=IF(ISNA(IF(E18<=$B$5,VLOOKUP(E18,ACTUAL,2,FALSE),VLOOKUP(E18,PROJECTED,2,FALSE))),"",IF(E18<=$B$5,VLOOKUP(E18,ACTUAL,2,FALSE),VLOOKUP(E18,PROJECTED,2,FALSE)))

--
Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top