Searching with date range and other variables.

DanishOrange

New Member
Joined
Feb 10, 2019
Messages
10
I am wanting to search a price table with a number of columns; store, product, date range (from /to) & price.

I have the elements I of the store , product and exact date within the range an looking to get the price as an output.

I have tried all sorts and can't get a working approach, this is of course a small example table the real one isn't that much bigger (perhaps 1,000 rows).

Any thoughts? thanks for your help

ABCDE
1STOREPRODUCTFROMTOPRICE
2BOBSTOREPRC101/01/201531/12/20174.00
3BOBSTOREPRC201/01/201531/12/20172.00
4BOBSTOREPRC101/01/201831/12/20254.15
5STEVESTOREPRC101/01/201531/12/20183.90
6STEVESTOREPRC101/01/201931/12/20204.45
7STEVESTOREPRC201/01/201531/12/20201.95
8
9BOBSTOREPRC224/07/2016OUTPUT??

<tbody>
</tbody>
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Welcome to the forums.

Questions:

1) From where are you pulling the data?
2) What is your current formula?
3) What is your expected results? Please show.
 
Upvote 0
Hi thanks for the quick reply.
1. The data keyed in and part of the excel file, original is a mix of sources and methods of pulling it together.
2. =LOOKUP(2,1/($C:$C<=C$9)/($D:$D>=C$9),$E:$E), which only looks at dates and not the other variables of store and product.
3. The variables for the formula are in row 9, with the expected output of 2.00 for those variables (D9) but the formula to get to that is beyond my skill level!!
 
Upvote 0
are you able to copy/paste both tables into your reply so we can see the starting and ending points?
 
Upvote 0
Hi, struggling to get to post the image of the sheet, even with the add ons (my fault using a mac!), the top row and first column in the first post were to proxy the excel headers, does that help?
 
Upvote 0
RETAILERPRODUCT CODEFROMTOPRICE
BOBSTORESPRC101/01/201031/12/2015 4.00
BOBSTORESPRC201/01/201031/12/2015 2.00
STEVESTORESPRC101/01/201031/12/2015 3.95
STEVESTORESPRC201/01/201031/12/2015 1.85
BOBSTORESPRC101/01/201631/12/2020 4.20
BOBSTORESPRC201/01/201631/12/2020 2.10
STEVESTORESPRC101/01/201631/12/2020 4.15
STEVESTORESPRC201/01/201631/12/2020 1.95
SEARCH
RETAILERPRODUCT CODEDATEPRICE
BOBSTORESPRC226/07/2014 1.85
LOOKUP(2,1/(Sheet10!$C:$C<=C$14)/(Sheet10!$D:$D>=C$14),Sheet10!$E:$E)

<colgroup><col><col><col><col><col span="3"></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,848
Messages
6,121,917
Members
449,055
Latest member
KB13

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