Sum values based on date

KPAW

New Member
Joined
Feb 21, 2009
Messages
31
I have a spreadsheet where I tack daily expenditure. On a given day I could spend on several items. At the end of that day I want the total of that day's spending in the last row that bear the same date.

For example in the table below, I have the date, amount and total columns.

I want to be able to have a formula in the totals column that look at the dates in the date column, and where the date in a row is different from the date in the row immediately below, sum the values of amounts in rows with the same date and give the total in the last row with the same date.

Date

Amount

Total
10-Mar-12100
10-Mar-12112
10-Mar-12124
10-Mar-12136
10-Mar-12220692
11-Mar-12232
11-Mar-12244476
13-Mar-12256
13-Mar-12268524

<tbody>
</tbody>

I would be grateful for any assistance to find a solution.
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Maybe with a pivot table.
Excel Workbook
FGHIJ
2Gegevens
3dateSum amountcount amountAvarage amountSum total
410-Mar-126925138,4692
511-Mar-124762238476
613-Mar-125242262524
7Eindtotaal169291881692
Blad4
 
Upvote 0
I have a spreadsheet where I tack daily expenditure. On a given day I could spend on several items. At the end of that day I want the total of that day's spending in the last row that bear the same date.

For example in the table below, I have the date, amount and total columns.

I want to be able to have a formula in the totals column that look at the dates in the date column, and where the date in a row is different from the date in the row immediately below, sum the values of amounts in rows with the same date and give the total in the last row with the same date.
DateAmount Total
10-Mar-12100
10-Mar-12112
10-Mar-12124
10-Mar-12136
10-Mar-12220692
11-Mar-12232
11-Mar-12244476
13-Mar-12256
13-Mar-12268524

<tbody>
</tbody>

I would be grateful for any assistance to find a solution.

C2, copied down:

=IF(A2<>A3,SUMIF($A$2:A2,A2,$B$2:B2),"")
 
Upvote 0
I have a spreadsheet where I tack daily expenditure. On a given day I could spend on several items. At the end of that day I want the total of that day's spending in the last row that bear the same date.

For example in the table below, I have the date, amount and total columns.

I want to be able to have a formula in the totals column that look at the dates in the date column, and where the date in a row is different from the date in the row immediately below, sum the values of amounts in rows with the same date and give the total in the last row with the same date.
Date
Amount
Total
10-Mar-12
100
10-Mar-12
112
10-Mar-12
124
10-Mar-12
136
10-Mar-12
220
692
11-Mar-12
232
11-Mar-12
244
476
13-Mar-12
256
13-Mar-12
268
524

<TBODY>
</TBODY>

I would be grateful for any assistance to find a solution.
Try this...

Enter this formula in C2:

=IF(A2=A3,"",B2)

Enter this formula in C3 and copy down as needed:

=IF(A3=A4,"",SUMIF(A$2:A3,A3,B$2:B3))
 
Upvote 0

Forum statistics

Threads
1,219,162
Messages
6,146,660
Members
450,706
Latest member
LGVBPP

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