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
[TABLE="class: grid, width: 500"]
<TBODY>[TR]
[TD]ID
[/TD]
[TD]Task 001
[/TD]
[TD]Task 002
[/TD]
[/TR]
[TR]
[TD]x001
[/TD]
[TD]Expected Outcome [3/30/14]
[/TD]
[TD]Expected Outcome 6/5/2014
[/TD]
[/TR]
[TR]
[TD]unique ID
[/TD]
[TD]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
[/TD]
[TD][/TD]
[/TR]
</TBODY>[/TABLE]

Sheet 2

[TABLE="class: grid, width: 467, align: left"]
<TBODY>[TR]
[TD]ID</SPAN>
[/TD]
[TD]Task 001 Forecast</SPAN>
[/TD]
[TD]Task 001 Actual</SPAN>
[/TD]
[TD]Task 002 Forecast</SPAN>
[/TD]
[TD]Task 002 Actual</SPAN>
[/TD]
[/TR]
[TR]
[TD]X001</SPAN>
[/TD]
[TD="align: right"]05/05/2014</SPAN>
[/TD]
[TD="align: right"]03/30/2014</SPAN>
[/TD]
[TD="align: right"]06/05/2014</SPAN>
[/TD]
[TD][/TD]
[/TR]
</TBODY>[/TABLE]



Thanks,
John
 
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

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