Index Match help please to find a price between multiple dates

Jeffrey Green

Well-known Member
Joined
Oct 24, 2007
Messages
1,021
=INDEX(Price,MATCH(1,((Part=J2)*(BeginDate>=Import)*(EndDate<=Import)),0))

I always used Named Ranges
PRICE is the price of the PARTI am trying to find. The PART Column is not unique. it has price changes that i need to manage
PART is the part number i am looking up the PRICE for
J2 is the cell with the Part Number being imported
BEGINDATE is when the PRICE changed
IMPORT is the DATE the part was imported into the US, and i need the price for that part on this date
ENDDATE is the last day of the previous price, and a new price is in the table

thanks . . . I get #N/A for all rows.
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
What happens if you make the formula?

=INDEX(Price,MATCH(1,((Part=J2)*(BeginDate<=Import)*(EndDate>=Import)),0))

... and what about the current prices? If the EndDate is blank, you'll need to adjust the formula to allow for this.
 
Upvote 0
Still get NA . . . .thanks. Someone thinks this needs to be an array formula. . . . it is just a regular formula.
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Someone thinks this needs to be an array formula
It is & depending on your xl version may need to be entered with Ctrl Shift Enter.
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,851
Members
449,051
Latest member
excelquestion515

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