Based on Month, select a cell

PCRIDE

Well-known Member
Joined
Jan 20, 2008
Messages
902
Hi, I have a helper cell that I need to get the current month. For example

Data is on one row , columns are month names.

Jan, Feb, Mar, Apr helper cell
10, 20, 26, 12 =Current month, so this would display 10
14, 27, 21, 82 =Current month, so this would display 14
66, 23, 25, 22 =Current month, so this would display 66
76, 25, 22, 11 =Current month, so this would display 76
10, 20, 76, 12 =Current month, so this would display 10
98, 20, 25, 18 =Current month, so this would display 98


So two questions here
If I average the month range to get one value, in the new month how do I move the average of 4 months to the new month, but drop the old month
Second question - How do i get the value of the last month at any given time? even when new months are added the cell needs to change to the current month
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,215,752
Messages
6,126,672
Members
449,327
Latest member
John4520

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