Formula Request

Muthukrishnan V

Active Member
Joined
May 29, 2008
Messages
297
Office Version
  1. 365
Platform
  1. Windows
Formula Request.xlsx
ABCDEFGHI
1
2HelperRequired Output
3NameAmountRegionKynRegionNameAmount
4Aaa25,000XyzKynGgg17,000
5Bbb15,000KykMlm3,000
6Ccc60,000QrsGgg25,000
7Ddd40,000Qrs345000
8Eee8,500Tuv
9Ggg17,000Kyn
10Lll20,000Tuv
11Kkk9,500Pqr
12Aaa90,000Xyz
13Aaa30,000Xyz
14Aaa75,000Xyz
15Mlm3,000Kyn
16Kkk1,00,000Pqr
17Lll80,000Tuv
18Kkk60,000Pqr
19Lll50,000Tuv
20Ggg25,000Kyn
Sheet1
Cell Formulas
RangeFormula
E3E3=D9

I request you to kindly advise me a formula to get the required output in Columns G H and I (If possible the sum of amount and number of counts). Thanks
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Try:
Book1
ABCDEFGHI
1
2HelperRequired Output
3NameAmountRegionKynRegionNameAmount
4Aaa25000XyzKynGgg17000
5Bbb15000KykMlm3000
6Ccc60000QrsGgg25000
7Ddd40000Qrs328000
8Eee8500Tuv
9Ggg17000Kyn
10Lll20000Tuv
11Kkk9500Pqr
12Aaa90000Xyz
13Aaa30000Xyz
14Aaa75000Xyz
15Mlm3000Kyn
16Kkk100000Pqr
17Lll80000Tuv
18Kkk60000Pqr
19Lll50000Tuv
20Ggg25000Kyn
Sheet4
Cell Formulas
RangeFormula
E3E3=D9
H4:I7H4=LET(f,FILTER(A4:B20,D4:D20=G4),ct,ROWS(f),s,SUM(DROP(f,1)),IFERROR(VSTACK(f,HSTACK(ct,s)),""))
Dynamic array formulas.
 
Upvote 0
Mr Cubist sir, the total amount should show 45000 and not 28000. Request amendment to formula. Thanks

Also Region to be picked up from Helper cell E4. Thanks
 
Upvote 0
Oops missed an argument there. Try:
Excel Formula:
=LET(f,FILTER(A4:B20,D4:D20=E4),ct,ROWS(f),s,SUM(f),IFERROR(VSTACK(f,HSTACK(ct,s)),""))
 
Upvote 0
Solution
Ok,
Excel Formula:
=LET(f,FILTER(A4:B20,D4:D20=E3),ct,ROWS(f),s,SUM(f),IFERROR(HSTACK(E3,VSTACK(f,HSTACK(ct,s))),""))
 
Upvote 0

Forum statistics

Threads
1,224,819
Messages
6,181,153
Members
453,021
Latest member
Justyna P

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