vlookup with date range

orsm6

Active Member
Joined
Oct 3, 2012
Messages
496
Office Version
  1. 365
Platform
  1. Windows
Hi everyone.

I've tried a number of examples to get this thing working but I have looked at so many versions I've confused myself, hoping you can help.

Cell holding the formula: E6

I need to look up cell B6 (this will copied down the column, so next row is B7 etc etc)
Look up B6 in range 'SAP Dump'!$B$2:$M$31
value to return is in column index 8 ('SAP Dump'!$I$I)


here is the annoying bit I need to return the value it finds only the look up value is between a date range.
The date range cells are need to be between $E$3 and $E$4
There is a column of dates on the SAP Dump sheet in column L

Any help would be awesome, thanks.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Some of this is not clear.

"I need to return the value it finds only the look up value is between a date range."

You've specified the lookup value is B6
You've also specified the date range is in E3 and E4

So this is just

=IF(AND(B6>=$E$3,B6<=$E$4),VLOOKUP(B6,'SAP Dump'!$B$2:$M$31,8,0),"")

So that's all you need.
Why are you mentioning dates in column L ? These dates are superfluous based on the rest of your description.
 
Last edited:
Upvote 0
It does sound strange now that I read it back lol... I'll have a go at this Monday morning and see how I go.

This formula looks like something that will do what I needed lol, I need to do some more study on formulas I think :)

Thank you for replying.
 
Upvote 0

Forum statistics

Threads
1,215,460
Messages
6,124,949
Members
449,198
Latest member
MhammadishaqKhan

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