Making a list from a table

Zacariah171

New Member
Joined
Apr 2, 2019
Messages
28
I have a "table" of data and I'm trying to make a list from that table. The first column has the location name of where the equipment was used and the other columns list which equipment was used. I'm trying to take the data from there and put all the equipment into one column and the location they were on in the second column. I'm using the formula,

{=IFERROR(INDEX($CG$7:$CG24,SMALL(IF($CH$7:$CL24=$CV10,ROW($CH$7:$CL24)-ROW(INDEX($CH$7:CL24,1,1))+1),$CU10)), IFNA(INDEX($CG$7:$CG24, MATCH(1, MMULT(--($CH$7:$CL24=$CV10), TRANSPOSE(COLUMN($CH$7:$CL24)^0)), 0)), "??????"))}

but I have an issue when the same Equipment ID is used more than once on the same row because the last part of my formula is returning a 2 for cells CW10 and CW11. I'm using Excel 365. I hope I've given enough information but please let me know if you need more. Thank you in advance!

So, the question is, how do I turn this...
1594665392444.png


into this, where cells CW10 and CW11 are showing the correct location name?
1594665475258.png
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
The following could be an alternative. (While someone helps us with a functions of version 365).

Dante Amor
CGCHCICJCKCLCMCUCVCW
6LocationBoxBoxBoxBoxBoxEquip IDLocation
7Cue 17A5555565011302Cue 17B
8Cue 17B3023553552302Cue 17D
9Cue 17D3023393339Cue 17D
10Cue 17C8018058104355Cue 17B
115355Cue 17B
126501Cue 17A
137555Cue 17A
148556Cue 17A
159801Cue 17C
1610805Cue 17C
1711810Cue 17C
1812700???
Hoja19
Cell Formulas
RangeFormula
CW7:CW18CW7=IFERROR(INDIRECT(TEXT(INT(SUMPRODUCT(SMALL(IF($CH$7:$CL$11=CV7,ROW($CH$7:$CL$11)*1000+COLUMN($CH$7:$CL$11)),COUNTIF(CV$7:CV7,CV7)))/100),"f000"&"C085"),0),"???")
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
I tried but not able to solve..Thanks @DanteAmor for your help.
Instead i solved for Equipment Id from the List .

@DanteAmor Kindly help with a shorter formula for Equipment ID

Book1
CGCHCICJCKCL
6Location1st Box2nd Box3rd Box4th Box5th Box
7Cue 17A555556501
8Cue 17B302355355
9Cue 17D302339
10Cue 17C801805810
11
12
13
14302
15302
16339
17355
18355
19501
20555
21556
22801
23805
24810
25
Sheet4
Cell Formulas
RangeFormula
CH14:CH25CH14=SORT(IFERROR(INDEX(INDEX($CH$7:$CL$10,INT((ROW($CG$7:$CG$26)-ROW($CG$7))/5)+1,MOD(ROW($CG$7:$CG$26)-ROW($CG$7),5)+1),AGGREGATE(15,6,IFERROR(MATCH(INDEX($CH$7:$CL$10,INT((ROW($CG$7:$CG$26)-ROW($CG$7))/5)+1,MOD(ROW($CG$7:$CG$26)-ROW($CG$7),5)+1),INDEX($CH$7:$CL$10,INT((ROW($CG$7:$CG$26)-ROW($CG$7))/5)+1,MOD(ROW($CG$7:$CG$26)-ROW($CG$7),5)+1),0),FALSE),ROW($A$1:A12))),""))
Dynamic array formulas.
 
Upvote 0
I changed the INDIRECT function to be volatile.
I observed that the formula does not require the column, I only need to obtain the data from the CG column.
Try the following:

Dante Amor
CGCHCICJCKCLCMCUCVCW
6LocationBoxBoxBoxBoxBoxEquip IDLocation
7Cue 17A5555565011302Cue 17B
8Cue 17B3023553552302Cue 17D
9Cue 17D3023393553339Cue 17D
10Cue 17C8018058104355Cue 17B
115355Cue 17B
126355Cue 17D
137501Cue 17A
148555Cue 17A
159556Cue 17A
1610801Cue 17C
1711805Cue 17C
1812810Cue 17C
1913900???
Hoja19
Cell Formulas
RangeFormula
CW7:CW19CW7=IFERROR(INDEX($CG$1:$CG$24,INT(SUMPRODUCT(SMALL(IF($CH$7:$CL$24=CV7,ROW($CH$7:$CL$24)*1000+COLUMN($CH$7:$CL$24)),COUNTIF(CV$7:CV7,CV7)))/1000)),"???")
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
26Aug19.xlsx
CGCHCICJCKCLCMCNCOCPCQCRCSCTCUCVCW
1LocationBoxBoxBoxBoxBoxEquip IDLocation
2Cue 17A555556501302Cue 17B
3Cue 17B302355355302Cue 17D
4Cue 17D302339339Cue 17D
5Cue 17C801805810355Cue 17B
6355Cue 17B
7501Cue 17A
8555Cue 17A
9556Cue 17A
10801Cue 17C
11805Cue 17C
12810Cue 17C
Sheet54
Cell Formulas
RangeFormula
CW2:CW12CW2=INDEX(CG$2:CG$5,AGGREGATE(15,6,(ROW(CH$2:CL$5)-ROW(CH$2)+1)/(CH$2:CL$5=CV2),COUNTIF(CV$2:CV2,CV2)))
 
Last edited by a moderator:
Upvote 0

Forum statistics

Threads
1,214,956
Messages
6,122,465
Members
449,085
Latest member
ExcelError

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