HELP!!! Vlookup and IF statement

1of5kites

New Member
Joined
Mar 30, 2014
Messages
2
I have an issue that I cannot figure out. hopefully this description makes sense:

This isnt working =IF(VLOOKUP(A2,[Sheet2.xlsx]Sheet1!$A:$C,3,0)>0,VLOOKUP(A2,[Sheet2.xlsx]Sheet1!$A:$C,3,0),vlookp(A2,[Sheet2.xlsx]Sheet1!$A:$B,2,0))

Sheet 1
ID
Task 001
Task 002
x001
Expected Outcome [3/30/14]
Expected Outcome 6/5/2014
unique ID
If there is an actual date for task 001 in sheet 2 then this field would have the actual date. If there is no actual date then it would return the forecasted date for Task 001

<TBODY>
</TBODY>

Sheet 2

ID</SPAN>
Task 001 Forecast</SPAN>
Task 001 Actual</SPAN>
Task 002 Forecast</SPAN>
Task 002 Actual</SPAN>
X001</SPAN>
05/05/2014</SPAN>
03/30/2014</SPAN>
06/05/2014</SPAN>

<TBODY>
</TBODY>



Thanks,
John
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Hi,

Try

=IF(ISNUMBER(VLOOKUP(A2,[Sheet2.xlsx]Sheet1!$A:$C,3,0)),VLOOKUP(A2,[Sheet2.xlsx]Sheet1!$A:$C,3,0),vlookp(A2,[Sheet2.xlsx]Sheet1!$A:$B,2,0))
 
Upvote 0
C2 had to be adjusted

C2=IF(ISNUMBER(VLOOKUP(A2,[Sheet2.xlsx]Sheet1!$A:$E,5,0)),VLOOKUP(A2,[Sheet2.xlsx]Sheet1!$A:$E,5,0),vlookp([Sheet2.xlsx]Sheet1!$A:$D,4,0))

But i understand the formula thank you:
 
Upvote 0

Forum statistics

Threads
1,214,426
Messages
6,119,414
Members
448,895
Latest member
omarahmed1

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top