In NEED of a Vertical Lookup to remove duplicates and return unique values horizontally!!

fisht

New Member
Joined
Sep 1, 2013
Messages
47
Hi All-

I can't seem to figure this one out.. here are the details of the data I am looking to reorganize:

In column CT between rows 11:210 is the vertical data that includes duplicates. I am looking to create a formula that can lookup each value between CT11:CT210 and return only the unique values horizontally starting in cell CW9 and onwards.

Example: CT11:CT14 looks like
5x20
6x4
5x20
5x8
and so on and so forth..

I would then like this formula to return the above data (which goes all the way to CT210) in this format starting in cell CW9 - 5x20 then CX9 - 6x4 and finally CY9 - 5x8.

Thank you so much in advance, this will be a huge help!!! and of course let me know if you have any questions.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
maybe something like...

Excel 2010
CTCUCVCWCXCYCZDA
95x206x45x8
10
115x20
126x4
135x20
145x8

<tbody>
</tbody>
Sheet2

Array Formulas
CellFormula
CW9{=IFERROR(INDEX($CT$11:$CT$14,SMALL(IF(FREQUENCY(IF($CT$11:$CT$14<>"",MATCH($CT$11:$CT$14,$CT$11:$CT$14,0)),ROW($CT$11:$CT$14)-ROW($CT$11)+1),ROW($CT$11:$CT$14)-ROW($CT$11)+1),COLUMNS($CW9:CW9))),"")}

<tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>
 
Upvote 0
Try first doing an advanced filter on the data:

Data->Filter->Advanced-> Select range CT11:CT210, select "Copy to another location" and tick "Unique records only" and "copy to:" an empty column in the same sheet. Click ok and you get the unique records. Select these records, copy, go to cell CW9 and click paste special->transpose.
 
Upvote 0
Excel 2010
CDEF
65x206x4 5x80
7
8
9
10
11
125x20
136x4
145x20
155x8
165x20
176x4
185x20
195x8
205x20
216x4
225x20
235x8

<colgroup><col style="width: 25pxpx"><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Array Formulas
CellFormula
C6{=IFERROR(INDEX($C$12:$C$31, MATCH(0, COUNTIF($B$6:B$6,$C$12:$C$310), 0)),"")}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>
 
Upvote 0
Weazel- that's exactly what I needed, thank you very much for you prompt response. It is much appreciated and now I can rest my mind lol.


maybe something like...

Excel 2010
CTCUCVCWCXCYCZDA
95x206x45x8
10
115x20
126x4
135x20
145x8

<tbody>
</tbody>
Sheet2

Array Formulas
CellFormula
CW9{=IFERROR(INDEX($CT$11:$CT$14,SMALL(IF(FREQUENCY(IF($CT$11:$CT$14<>"",MATCH($CT$11:$CT$14,$CT$11:$CT$14,0)),ROW($CT$11:$CT$14)-ROW($CT$11)+1),ROW($CT$11:$CT$14)-ROW($CT$11)+1),COLUMNS($CW9:CW9))),"")}

<tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,216,101
Messages
6,128,842
Members
449,471
Latest member
lachbee

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