Table problems

Atanas Kisyov

New Member
Joined
Dec 10, 2019
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Hello guys!

I have a problem that I cannot go around and I really hope someone can help me.

I have two tables with material information that look like this:

Table1
1592572893020.png


Table2
1592572965148.png


The first column is the finished good number. I have different finished good numbers but they are made with the same materials.
In some cases not all materials are in the same order, so I decided to sum all the numbers to find matches.
The problem here is that VLookup only finds the first match.

And the result is:

1592573421575.png


But I need it to be like this:

1592573485704.png



Can someone help me with this problem?
 

Attachments

  • 1592572913991.png
    1592572913991.png
    8.4 KB · Views: 3
  • 1592573367643.png
    1592573367643.png
    3.3 KB · Views: 4

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Could you paste the VLOOKUP formula that you are using, please? I do not completely understand what you are trying to do. In this example, I believe you want to use a lookup value of "11111" (but where is that lookup value located?) and then list all table entries in Table 2 whose Sum in Table 2 matches that of "11111" in Table 2 (in this case, 1371725). More information about the rows and columns is needed to advise further.
 
Upvote 0
I suspect you may want something like this. Here the lookup value (77777) is in the blue cell. Column A in Table 2 is searched for a match to 77777 (the formula assumes there is only one match because only the first match will be returned in this step). Then the Sum associated with that match is determined. That Sum amount is then used to search Column G in Table 2 for any other matching sum values...and all of those rows are returned in the Results table.
MrExcel_20200618.xlsx
ABCDEFGHIJKLMNO
1Table2Results TableLookup77777
2Finished Good NumberMatl1Matl2Matl3Matl4Matl5SumFinished Good NumberMatl1Matl2Matl3Matl4Matl5Sum
311111123123412345123456123456713717255555532112341234512345612345671371923
422222123123412345123456123456713717256666632112341234512345612345671371923
533333123123412345123456123456713717257777732112341234512345612345671371923
644444123123412345123456123456713717258888832112341234512345612345671371923
75555532112341234512345612345671371923       
86666632112341234512345612345671371923       
97777732112341234512345612345671371923       
108888832112341234512345612345671371923       
Sheet3
Cell Formulas
RangeFormula
I3:O10I3=IFERROR(INDEX(A$3:A$10,AGGREGATE(15,6,(ROW($A$3:$A$10)-ROW($A$2))/($G$3:$G$10=INDEX($G$3:$G$10,MATCH($L$1,$A$3:$A$10,0))),ROWS(I$3:I3))),"")
G3:G10G3=SUM(B3:F3)

You can click on the clipboard icon in the upper left corner of the table (intersection of row/column headers) to copy this to your clipboard for pasting into your file to try it out.
 
Upvote 0
You're welcome...thanks for the update.
 
Upvote 0

Forum statistics

Threads
1,214,924
Messages
6,122,293
Members
449,077
Latest member
Rkmenon

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