Previous month based on largest value in data

slamanager

Board Regular
Joined
Apr 20, 2007
Messages
129
Hi,

Im building a matrix/grid to display 13 months of data with the months displayed accross the top.

Im using the LARGE function to determine the "latest" date in my data and then im trying to calc the previous months from this date. After working on other parts of the grid i just noticed that i have a repeating month ???

Summary sheet cell D4
=LARGE(DATA!$E$7:$E$10000,1) looks on the data sheet in Col E for the "latest" date.
Summary sheet cell E4
=DATE(YEAR(D4),MONTH(D4)-1,DAY(D4))
and then i drag this formula to the right to show 13 months but i get two MARCH months ??

What would be the answer to my plight, please.
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,224,590
Messages
6,179,750
Members
452,940
Latest member
rootytrip

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