Sum values based on a cell count

lhazou

New Member
Joined
Aug 20, 2002
Messages
11
I have a column of data that is updated everyday with an additional value (sales by day). I have all 365 days of sales from last year. I want to be able to compare this year's YTD total with last year's corresponding YTD total. So I need to sum last year's numbers for only the same day's that I have a value for in this year.

I am also trying to do the same for a rolling 30 day period. I cannot figure out how to make this a non-manual process.

Example:

2011 2010
1/1/2011 $25,652 $63,214
1/2/2011 $36,584 $54,216
1/3/2011 $25,415 $23,695
1/4/2011 $45,218 $33,459
1/5/2011 $35,694 $56,795
1/6/2011 $25,671 $66,457
1/7/2011 $56,327 $45,269
1/8/2011 $55,429 $75,236
1/9/2011 $63,256
1/10/2011 $95,362
1/11/2011 $42,567
1/12/2011 $23,574
$305,990 $643,100

I want to add 1/1 - 1/8 in 2010 because that is the comparable YTD that I have for 2011. But I'd like to do this via some kind of formula versus summing the corresponding dates in 2010 every time. I have to do this for a wide variety of metrics so it takes too much time, i feel there has to be something more efficient!

Any suggestions?
 
Last edited:

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Forum statistics

Threads
1,224,586
Messages
6,179,729
Members
452,939
Latest member
WCrawford

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