Count List items, (Index, Match Vlookup) help

ScottEmberson

New Member
Joined
Jul 31, 2014
Messages
12
Hi Everyone
I currently have a pivot table with following information:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Row
[/TD]
[TD]A
[/TD]
[TD]B
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Area Path
[/TD]
[TD]Count of ID
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]\Bails and Hearings\Bails
[/TD]
[TD]20
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]\Bails and Hearings\Court Hearing
[/TD]
[TD]9
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]\Case Management\Case History
[/TD]
[TD]3
[/TD]
[/TR]
</tbody>[/TABLE]

I need a formula to count all the items in the 1st level of the area path e.g. \Bails and Hearings. So from my example in another table it will say \Bails and Hearings total of 29 and \Case Management total 3.


Hope this makes sense


Any help would be much appreciated
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Example:


Excel 2010
ABCDE
1Area PathCount of ID\Bails and Hearings29
2\Bails and Hearings\Bails20\Case Management3
3\Bails and Hearings\Court Hearing9
4\Case Management\Case History3
Sheet1
Cell Formulas
RangeFormula
E1=SUMIF(A:A,D1&"*",B:B)
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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