Sorted array of unique items and their values with filter and sumifs

Alizba

New Member
Joined
Apr 19, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I am currently working on an excel formula which give me a sorted array of unique items and their values.
I have reconciled the steps in the following excel but couldnt crack it to one step.
The difficulty is also higher due to the multiplication of two colomns (i.e. asset value & % ownership).
The goal is: How to get unique Asset Name for one owner sorted by ownership value (Asset Value * % ownership).
Thank you for your suggestions.
Excel problem.xlsx
ABCDEFGHIJKLMNOPQ
1Asset NameAsset Value ($)% ownershipOwner
2A3670%Ali
3B7180%BaliStep Icompute ownership value
4A6790%Ali
5B380100%AliAli
6C6260%CaliAsset nameOwnership (in $)
7C1350%BaliA25.2=(FILTER(B2:B8,D2:D8=$F$5))*(FILTER(C2:C8,D2:D8=$F$5))
8C6760%CaliA60.3=(FILTER(A2:A8,D2:D8=$F$5))
9B380
10
11
12Step IIGet unique asset owned by Ali
13
14Unique Asset name
15A=UNIQUE((FILTER(A2:A8,D2:D8=$F$5)))
16B
17
18Step III - Use sumifs and sort & Sort by --> FINAL
19
20Unique Asset name for Ali
21B380=SORT(SUMIFS(G7#,F7#,UNIQUE((FILTER(A2:A8,D2:D8=$F$5)))),,-1)
22A85.5=SORTBY(UNIQUE((FILTER(A2:A8,D2:D8=$F$5))),SUMIFS(G7#,F7#,UNIQUE((FILTER(A2:A8,D2:D8=$F$5)))),-1)
Sheet1
Cell Formulas
RangeFormula
F7:F9F7=(FILTER(A2:A8,D2:D8=$F$5))
G7:G9G7=(FILTER(B2:B8,D2:D8=$F$5))*(FILTER(C2:C8,D2:D8=$F$5))
H7,H21H7=FORMULATEXT(G7)
H8,H22H8=FORMULATEXT(F7)
F15:F16F15=UNIQUE((FILTER(A2:A8,D2:D8=$F$5)))
H15H15=FORMULATEXT(F15)
F21:F22F21=SORTBY(UNIQUE((FILTER(A2:A8,D2:D8=$F$5))),SUMIFS(G7#,F7#,UNIQUE((FILTER(A2:A8,D2:D8=$F$5)))),-1)
G21:G22G21=SORT(SUMIFS(G7#,F7#,UNIQUE((FILTER(A2:A8,D2:D8=$F$5)))),,-1)
Dynamic array formulas.
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
How about
Excel Formula:
=LET(f,FILTER(A2:C8,D2:D8=F5),u,UNIQUE(INDEX(f,,1)),s,INDEX(f,,2)*INDEX(f,,3),SORT(CHOOSE({1,2},u,MMULT(--(TRANSPOSE(INDEX(f,,1))=u),s)),2,-1))
 
Upvote 0
Solution

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

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