ClaireFin

New Member
Joined
Aug 19, 2015
Messages
2
I have a set of data which contains the following:

20081
20092
20100
2011
ChargeXYZ

<tbody>
</tbody>
This data repeats, so sometimes the date with the last value in will be 2011, and sometimes the only value will be in the earliest i.e. 2008.

The output I need is:
2008
2009Sum all XYZ (where last value in 2009).
2010
2011

<tbody>
</tbody>

Does anyone have any ideas how to do this?
Thanks so much :)
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Hard to tell from the data but an if max would work I think

if (Max of column A = Cell A row whatever, sumifs(ColumnB, Column A, 2009),0)
 
Upvote 0
Hard to tell from the data but an if max would work I think

if (Max of column A = Cell A row whatever, sumifs(ColumnB, Column A, 2009),0)

Hi @DebugGalpin

Thanks for your help!

The thing is I need it to sumif the charge amounts, not the amounts displayed next to the date value.

For example, the data sample would look like:

20091
20102
20113
20124
20130
Charge100
20095
20100
20110
20120
20130
Charge350
20091
20102
20110
20120
20130
Charge12
20098
20100
20110
20120
20130
Charge100

<tbody>
</tbody>

The output would need to be as follows:

2009450 (350+100)
201012
2011
2012100
2013

<tbody>
</tbody>

Any ideas?
 
Upvote 0

Forum statistics

Threads
1,215,029
Messages
6,122,755
Members
449,094
Latest member
dsharae57

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