Formula to consolidate Data and remove entries with no data in that year

Newbie73

Board Regular
Joined
Feb 4, 2024
Messages
109
Office Version
  1. 365
Platform
  1. Windows
Hello,

I need help creating a formula that would consolidate results, as in keeping the same ID for a year a Sum the numbers for that year while also at the same time, if that ID hasn't had a value in that year, to be removed from the filter/list.

For example the data:

PT1000000 - 1 - 2012
PT1000000 - 1 - 2013
PT1000000 - 2 - 2014
PT2000000 - 3 - 2013
PT2000000 -1 - 2014
PT2000000 - 1 - 2015

Result in column 2013 then consolidating the data and sum the previous result:

P100000 - 2
PT20000 - 3

2014

P100000- 4
PT20000 - 4

2015 (PT10000 was removed from 2015 list as it doesn't have any result in this year, it it had an entry with the year with a number even if it's zero it would still count and be in 2015)

PT20000 - 5


Example spreadsheet with expected results and a few more entries:

test3.xlsx

Thank you in advance!
 
Last edited:

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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