Unique list out of non-unique row

tabibito

New Member
Joined
Jan 28, 2014
Messages
7
Hello everyone!

mrexcel has been my top resource when it comes to Excel-related questions. Great to be a member now.

What follows is a tricky combination (for me, that is) of
- starting from several rows named "A", "B", ... with blank cells, zeroes and values larger than zero in columns named "1", "1.5", ...
- transposing them into a continuous vertical list of "row name - column name" pairs (e.g. "A" "1")
- leaving out all the blank cells and zeroes.


[TABLE="class: grid, width: 507, align: center"]
<tbody>[TR]
[TD] [/TD]
[TD]1
[/TD]
[TD]1,5[/TD]
[TD]2[/TD]
[TD]2,5[/TD]
[TD]3[/TD]
[TD]3,5[/TD]
[TD]4[/TD]
[TD]4,5[/TD]
[TD]5[/TD]
[TD]5.5[/TD]
[TD][/TD]
[TD][/TD]
[TD]A
[/TD]
[TD]2.5[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]A
[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]0[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD] [/TD]
[TD]4[/TD]
[TD] [/TD]
[TD]0[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD]A[/TD]
[TD]3[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[TD]A[/TD]
[TD]4[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[TD]A[/TD]
[TD]5.5[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/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
[TD]...[/TD]
[TD]...[/TD]
[TD]...[/TD]
[TD]...[/TD]
[TD]...[/TD]
[TD]...[/TD]
[TD]...[/TD]
[TD]...[/TD]
[TD]...[/TD]
[TD]...[/TD]
[TD][/TD]
[TD][/TD]
[TD]D[/TD]
[TD]5[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]...[/TD]
[TD]...[/TD]
[TD]...[/TD]
[/TR]
</tbody>[/TABLE]


What I've tried so far:
(1) Created a helper table with the full range of 1 , 1.5 , 2 , ... , 5 , 5.5, displaying "" for all blanks or zeroes in the upper left chart.
(2) From that, tried to create another helper table displaying only the unique values of the helper table created in (1). This did not work out because the array formula below does not accept formula ""s:
=IFERROR(INDEX($helpertablerange,SMALL(IF(ISBLANK($helpertablerange),"",COLUMN($helpertablerange)-MIN(COLUMN($helpertablerange))+1),COLUMN(C1))),"")
CTRL+SHIFT+ENTER
(3) From that, planned on using INDEX/MATCH combined with the TRANSPOSE function to create the unique list of "ROW LETTER" x "COLUMN NUMBER" x "VALUE" pairs.

I assume this is only one hint for a possible solution to the problem and certainly not the one to the most efficient one.

Any hints leading me towards solving this quiz would be greatly appreciated.

Thank you in advance.

Tabibito
 
Apologies for the very delayed response and thank you so much, hiker95.

Today, I finally had the macro checked on other PCs and it worked perfectly fine on each of them.
I much appreciate all the effort - Thank you once more!

Best wishes,

tabibito
 
Upvote 0

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

Forum statistics

Threads
1,224,825
Messages
6,181,190
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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