Return a value right before and after a specified date

Drwats0n

New Member
Joined
Dec 10, 2015
Messages
46
Hi Guys, need your help with the following requirement.

I wish to return a value of 0.1 and 0.2 based on the specified date of 27th July.
As you can see 0.1 and 0.2 is in between the specified date of 27th July.
Can you please help me with this please? Thanks in advance.


ABCDE
PeriodRateDate27 July 18
10 July 180.1
3 August 180.2
4 Sept 180.3

<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.
Looks like you are asking for the following...


Book1
ABCDEFG
1PeriodRateDate27-Jul-180.10.2
210-Jul-180.1
33-Aug-180.2
44-Sep-180.3
Sheet1


In F1 control+shift+enter, not just enter:

=VLOOKUP(MAX(IF($A$2:$A$4<=E1,$A$2:$A$4)),$A$2:$B$4,2,0)

In G1 control+shift+enter, not just enter:

=VLOOKUP(MIN(IF($A$2:$A$4>=E1,$A$2:$A$4)),$A$2:$B$4,2,0)

If the MAXIFS and MINIFS functions are available on your Excel system...

In F1 just enter:

=VLOOKUP(MAXIFS($A$2:$A$4,$A$2:$A$4,"<="&E1),$A$2:$B$4,2,0)

In G1 just enter:

=VLOOKUP(MINIFS($A$2:$A$4,$A$2:$A$4,">="&E1),$A$2:$B$4,2,0)
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,897
Members
449,097
Latest member
dbomb1414

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