Summarize cost data with spilled formula

tana

New Member
Joined
Jan 22, 2021
Messages
42
Office Version
  1. 365
Platform
  1. Windows
Hi,

Can someone help me with this problem? I am trying to get to a spilled formula which can summarize a table of cost data. The result will look like this.

1736708742221.png


Cost by PWOs and Categories. I have managed to get all my PWOs and categories spilled using expand function. But I don't know how to get the cost attached with my current spilled of PWOs and categories. Maybe reduce function? I am not that familiar using REDUCE yet if that is possible. Can someone teach me if that is a solution?

A quick sharing, I don't have pivotby and groupby with my current version of excel yet.

21482296Project Management & Administrative
21482296Internal Engineering
21482296External Engineering
21482296Construction Labour
21482296Construction Equipment
21482296Construction Services
21482296Materials
21566675Project Management & Administrative
21566675Internal Engineering
21566675External Engineering
21566675Construction Labour
21566675Construction Equipment
21566675Construction Services
21566675Materials


Here are partial of sample data for your reference.

Book1
ABC
1AmountPWOCategory
2896.121482296IDC
31329.8821566675IDC
45802.9421482296IDC
52398221566675Project Management & Administrative
682279.2621566675Project Management & Administrative
7-52852.321566675Project Management & Administrative
864577.1721482296External Engineering
9111021482296Project Management & Administrative
10352821482296Internal Engineering
11352821482296Internal Engineering
12352821482296Internal Engineering
13352821482296Internal Engineering
14352821482296Internal Engineering
15352821482296Internal Engineering
1634821482296Internal Engineering
1711621482296Internal Engineering
185821482296Internal Engineering
1996888.0821482296External Engineering
20111021482296Project Management & Administrative
21352821482296Internal Engineering
22352821482296Internal Engineering
23352821482296Internal Engineering
24235221482296Internal Engineering
25117621482296Project Management & Administrative
26117621482296Project Management & Administrative
27352821482296Internal Engineering
28235221482296Internal Engineering
2911121482296Project Management & Administrative
30111021482296Project Management & Administrative
3144121482296Project Management & Administrative
3211621482296Internal Engineering
3311621482296Internal Engineering
34117621482296Internal Engineering
35352821482296Internal Engineering
36235221482296Internal Engineering
37117621482296Internal Engineering
38117621482296Project Management & Administrative
39117621482296Project Management & Administrative
4092821482296Internal Engineering
41117621482296Project Management & Administrative
42117621482296Project Management & Administrative
43117621482296Project Management & Administrative
4458021482296Project Management & Administrative
4511621482296Internal Engineering
4653.521482296Internal Engineering
47160.521482296Internal Engineering
48177621482296Project Management & Administrative
49166521482296Project Management & Administrative
5092821482296Project Management & Administrative
5134821482296Project Management & Administrative
5233621482296Project Management & Administrative
5322421482296Project Management & Administrative
5492821482296Internal Engineering
5592821482296Internal Engineering
5623221482296Internal Engineering
5792821482296Internal Engineering
5892821482296Internal Engineering
5911621482296Internal Engineering
6046421482296Internal Engineering
6146421482296Internal Engineering
6269621482296Internal Engineering
6311621482296Internal Engineering
6492821482296Internal Engineering
65490.3821482296Project Management & Administrative
661442.2821482296Project Management & Administrative
67235221482296Internal Engineering
68352821482296Internal Engineering
69352821482296Internal Engineering
7030313.7721566675Project Management & Administrative
7114889.5421566675Project Management & Administrative
7241189.9321566675Project Management & Administrative
7345429.7521566675Project Management & Administrative
Sheet1
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Try:

Excel Formula:
=LET(a,UNIQUE(B2:C73),HSTACK(a,SUMIFS(A2:A73,B2:B73,CHOOSECOLS(a,1),C2:C73,CHOOSECOLS(a,2))))
 
Upvote 0
Solution
If you want the headers:
Excel Formula:
=LET(a,UNIQUE(B2:C73),VSTACK(TEXTSPLIT(TEXTJOIN(",",,B1:C1,A1),","),HSTACK(a,SUMIFS(A2:A73,B2:B73,CHOOSECOLS(a,1),C2:C73,CHOOSECOLS(a,2)))))
 
Upvote 0

Forum statistics

Threads
1,225,611
Messages
6,185,996
Members
453,334
Latest member
Prakash Jha

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