If date < = list range, return value

Weeble

Board Regular
Joined
Nov 30, 2016
Messages
95
Office Version
  1. 365
I have a table with different dates in column A
abcd
2017-01-15Apples5
2017-02-15Apples4

<tbody>
</tbody>

I also have a list with different prices depending on the time of date.

2017-01-0125,5 $
2017-02-0127,6 $
2018-01-0132,4 $

<tbody>
</tbody>

I want to make a formula in D column that goes similiar. " IF col A =< Date from my list ; C * value from list )

So if the apples have been sold 2017-01-15 or earlier than that the calculated price should be 25,5.
But if it's been sold between 2017-02-01 and less than 2018-01-01 the price should be 27,6.

How would I do this an easy way?
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
=INDEX(E1:E3,MATCH(A1,D1:D3,1),1)

where A1 is your apple date
D1:D3 are your price table dates
E1:E3 are your prices
 
Upvote 0
it's so simple that I even forgot that you can put a 1 instead of 0.
Thank you :)
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,207
Members
448,554
Latest member
Gleisner2

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