Multiple vlookups and IF statements

GasConGuy

Board Regular
Joined
Sep 4, 2008
Messages
65
Hello - I am building a table that I want to populate from another table, based on dates. On the first table, there are begin and end dates, job numbers, and a value. In my new table, there are job numbers in rows, and dates by day as columns. I want the formula to check if the date at the top of the column falls within the begin and end dates in the existing table, based on looking up the job number in my table. Make sense? So I have been using the below but it does not work correctly... any help is appreciated as always, thanks!

=IF(VLOOKUP(Sheet3!$A$4,' Update Nov Prelim'!$A$2:$I$60,2,0)>=Sheet3!C3,VLOOKUP(Sheet3!$A$4,' Update Nov Prelim'!$A$2:$I$60,7,0),IF(VLOOKUP(Sheet3!$A$4,' Update Nov Prelim'!$A$2:$I$60,3,0)<' Update Nov Prelim'!C2,""))
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Can you post an example of both sheets?
If you follow the "Tools" link in my signature, you'll find some add-ins that will help you do that.
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,162
Members
453,021
Latest member
Justyna P

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