Excel extract unique values from multiple columns and find sum of values using index match

Sumanmathew

Board Regular
Joined
Jan 25, 2021
Messages
65
Office Version
  1. 2021
  2. 2013
Platform
  1. Windows
Dear Sir
Please help me solve this.
I am unable to capture the range through the Mini Sheet in XL2BB.
So I am sending a screenshot of the sheet.
 

Attachments

  • try.png
    try.png
    45.3 KB · Views: 11

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Why?

Why aren't sam and annie also in the results?
All the unique names from List 1 and List 2 should come in result, eventhough I haven't shown all of them. Again the sum of the values corresponding to each unique name should also come in the result.
It would be great if you could help.
 
Upvote 0
.. and what about the XL2BB sample data so helpers don't have to type it all out manually to test?
 
Upvote 0
.. and what about the XL2BB sample data so helpers don't have to type it all out manually to test?
Yes , I know that it is difficult. But my range selection button is disabled. Now this mesage is shown. I disabled the macros, but still the button is inactive.
 

Attachments

  • warning.png
    warning.png
    26 KB · Views: 5
Upvote 0
Yes , I know that it is difficult. But my range selection button is disabled. Now this mesage is shown. I disabled the macros, but still the button is inactive.
My range selection button is shown as disabled.

:(
 

Attachments

  • trial  2.png
    trial 2.png
    55.8 KB · Views: 7
Upvote 0
Review the first bullet point in "Known XL2BB issues" near the top of the instructions page.
I tried everything as mentioned in the instructions page, but still my mini sheet range button is inactive.:cry:

Sir, I have made the items too short so that it is easy for you to enter, please can you check it and help me.

I need a formula (index match or something like that), to extract the unique names from these 2 lists and the sum of the values corresponding to those unique names.
please help.
 

Attachments

  • short.png
    short.png
    8.9 KB · Views: 2
Upvote 0
still my mini sheet range button is inactive.
Sounds like you still do not have the Add-In file in a Trusted Location and/or have not added the 'Unblock' tick in the file properties as per post #3 here.

extract the unique names from these 2 lists and the sum of the values
Give this a try.

23 10 16.xlsm
ABCDEFGHI
1
2list 1val 1list 2val 2Listval
3s10s15s115
4a20j130
5j30j50a20
6s30
7j50s50
8s10
9
List & Sum
Cell Formulas
RangeFormula
H3:H5H3=UNIQUE(FILTERXML("<p><c>"&TEXTJOIN("</c><c>",1,B3:B8,E3:E7)&"</c></p>","//c"))
I3:I5I3=SUMIF(B3:B8,H3#,C3:C8)+SUMIF(E3:E7,H3#,F3:F7)
Dynamic array formulas.
 
Upvote 1
Solution
Sounds like you still do not have the Add-In file in a Trusted Location and/or have not added the 'Unblock' tick in the file properties as per post #3 here.


Give this a try.

23 10 16.xlsm
ABCDEFGHI
1
2list 1val 1list 2val 2Listval
3s10s15s115
4a20j130
5j30j50a20
6s30
7j50s50
8s10
9
List & Sum
Cell Formulas
RangeFormula
H3:H5H3=UNIQUE(FILTERXML("<p><c>"&TEXTJOIN("</c><c>",1,B3:B8,E3:E7)&"</c></p>","//c"))
I3:I5I3=SUMIF(B3:B8,H3#,C3:C8)+SUMIF(E3:E7,H3#,F3:F7)
Dynamic array formulas.
Thankyou so much. Sorry for the inconvenience caused. I will check again and make sure if my file is in a trusted location, in case i missed the tick or something.Thanks a lot. God blesss.
 
Last edited by a moderator:
Upvote 0

Forum statistics

Threads
1,216,176
Messages
6,129,316
Members
449,501
Latest member
Amriddin

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