Formula for picking todays month and inputting cells to the right

RuthRoss

New Member
Joined
Nov 24, 2009
Messages
10
Hi,
Thank you for all your help so far. I am now trying to insert a formula that will check what month we are in now, and then insert the figures from the three cells to the right of the current month.

For example:

I have months over several years in column A. In Column B to D I have some figures that relate to that month.

In a separate area of the spreadsheet Cell G4, H4 and I4 - I want it to look up what month we are in, and then insert the right row from B into G4, C into H4, D into I4.

Is this possible to do? If so, what is the best route to take?

Thank you in advance for your help in this matter.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Out of curiosity, is there any advantage to use TEXT on the lookup range instead of making the lookup value numeric?

=INDEX(B$2:B$6,MATCH(--($F4&YEAR(NOW())),$A$2:$A$6,0),0)
 
Upvote 0
Out of curiosity, is there any advantage to use TEXT on the lookup range instead of making the lookup value numeric?

=INDEX(B$2:B$6,MATCH(--($F4&YEAR(NOW())),$A$2:$A$6,0),0)
No advantage, it's simply that we don't know what the real dates are in column A. They display as mmm-yy but they could be any date within the month.

That's why I chose to use the TEXT function.

There's ALWAYS a reason why I do something! ;)
 
Upvote 0
Good call, but we do know from the sample that they're in ascending order

=INDEX(B$2:B$6,MATCH(EOMONTH($F4&YEAR(NOW()),0),$A$2:$A$6),0) ;)

but not everone has the analysis toolpak installed so you still come out on top :(
 
Upvote 0

Forum statistics

Threads
1,225,156
Messages
6,183,222
Members
453,152
Latest member
ChrisMd

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