Index-Aggregate-Lookup Question

nburaq

Board Regular
Joined
Apr 2, 2021
Messages
220
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi Gents,
I have two sheets and I would like to find and place the results from 2nd sheet to 1st sheet. I have tried xlookup function but this function does not work well with if there are multiple match results. I entered some values manually to show what I mean exactly by highlighting the cells. Here are my tables;

sample3.xlsx
ABCD
1ItemCallGroup Counter
210018-CONSTRUC3
311029-CONSTRUC6
412067-CONSTRUC8
513077-CONSTRUC3
614078-CONSTRUC3
715081-CONSTRUC3
816083-CONSTRUC3
917084-CONSTRUC3
10220985-CONSTRUC3
112201085-CONSTRUC3
1225085-CONSTRUC3
1326091-CONSTRUC12
1427094-CONSTRUC12
1528097-CONSTRUC3
1629099-CONSTRUC3
173001185-CONSTRUC3
Sheet1




sample3.xlsx
ABCD
1ItemCallGroup Counter
2100518-CONSTRUC3
31101829-CONSTRUC6
41202367-CONSTRUC8
51304577-CONSTRUC3
61402678-CONSTRUC3
71501981-CONSTRUC3
8160883-CONSTRUC3
91707784-CONSTRUC3
10220985-CONSTRUC3
112201085-CONSTRUC3
12250185-CONSTRUC3
13260491-CONSTRUC12
14270894-CONSTRUC12
152803497-CONSTRUC3
162904599-CONSTRUC3
173001185-CONSTRUC3
Sheet2


Thanks in advance!
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
That doesn't tell us a lot, you've shown 2 copies of the result table but not shown the source. Half a question gets you half an answer.

Excel Formula:
=AGGREGATE(15,6,result range / (criteria range = C2) ,COUNTIF(C$2:C2,C2))
 
Upvote 0
That doesn't tell us a lot, you've shown 2 copies of the result table but not shown the source. Half a question gets you half an answer.

Excel Formula:
=AGGREGATE(15,6,result range / (criteria range = C2) ,COUNTIF(C$2:C2,C2))
Yes to make things simple I made 2 copies of table. Sheet 2 includes everything to be used for sheet1. So you see 3 results in sheet1 entered manually to give an idea. (The end result of course look like a copy of sheet 2 since both tables are identical. I hope I would be helpful.
 
Upvote 0
That makes no sense, if both are identical then you don't need a lookup of any kind, just enter =Sheet2!B2 into B2 on sheet 1 and fill down.
 
Upvote 0
Jason, think that in both sheets there are 1000 rows so should I copy all 1000 rows here? I just used a part of it. Also think that maybe a formula is gonna match automatically so that it will be peace for the eyes right? No need to match manually by one by. I understand your problem here is the not identical table for you
Book1.xlsx
ABCD
1ItemCallGroup Counter
21402678-CONSTRUC3
31501981-CONSTRUC3
41202367-CONSTRUC8
51304577-CONSTRUC3
6100518-CONSTRUC3
71101829-CONSTRUC6
8160883-CONSTRUC3
91707784-CONSTRUC3
10220985-CONSTRUC3
112201085-CONSTRUC3
12250185-CONSTRUC3
13260491-CONSTRUC12
142904599-CONSTRUC3
153001185-CONSTRUC3
16270894-CONSTRUC12
172803497-CONSTRUC3
Sheet2
 
Upvote 0
Here's a good tip for you
The end result of course look like a copy of sheet 2 since both tables are identical.
Don't say it's identical if it's not identical, we can not read your mind, only your posts. Identical means exactly the same, the exact same data sorted in the exact same order. This is what you have shown us in the first post and clarified as correct in post 3, now it appears that this is not correct. If you tell us they are identical then you will get an answer based on that. If that answer doesn't give you what you want then it is not the answer that is wrong, it is your question.

I've given up trying to make sense of what you're telling me and gone with what I think you actually want, formula is set for 2000 rows of data in sheet 2. Enter it into B2 on sheet 1 and fill down.
Excel Formula:
=AGGREGATE(15,6,Sheet2!$B$2:$B$2000/(Sheet2!$C$2:$C$2000=C2),COUNTIF(C$2:C2,C2))
 
Upvote 0
Solution
Here's a good tip for you

Don't say it's identical if it's not identical, we can not read your mind, only your posts. Identical means exactly the same, the exact same data sorted in the exact same order. This is what you have shown us in the first post and clarified as correct in post 3, now it appears that this is not correct. If you tell us they are identical then you will get an answer based on that. If that answer doesn't give you what you want then it is not the answer that is wrong, it is your question.

I've given up trying to make sense of what you're telling me and gone with what I think you actually want, formula is set for 2000 rows of data in sheet 2. Enter it into B2 on sheet 1 and fill down.
Excel Formula:
=AGGREGATE(15,6,Sheet2!$B$2:$B$2000/(Sheet2!$C$2:$C$2000=C2),COUNTIF(C$2:C2,C2))
It works perfectly! Thanks again for your help and concern and sorry for the misunderstanding.
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,332
Members
449,077
Latest member
jmsotelo

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