Query

appalcrumble

New Member
Joined
Jun 23, 2011
Messages
1
Hi All

Firstly, thanks for the the awesome help on this forum. I have used it numerous time to help solve problems.

I am however stumped (or too lazy) by the following:

My data is setup as follows:

<table border="0" cellpadding="0" cellspacing="0" width="448"><col style="width:48pt" span="7" width="64"> <tbody><tr style="height:15.0pt" height="20"> <td class="xl63" style="height:15.0pt;width:48pt" height="20" width="64"> Data</td> <td class="xl64" style="width:48pt" align="right" width="64">A</td> <td class="xl64" style="width:48pt" align="right" width="64">B</td> <td class="xl64" style="width:48pt" align="right" width="64">C</td> <td class="xl64" style="width:48pt" align="right" width="64">D</td> <td class="xl64" style="width:48pt" align="right" width="64">E</td> <td class="xl64" style="width:48pt" align="right" width="64">F</td> </tr> <tr style="height:15.0pt" height="20"> <td style="height:15.0pt" height="20">Points</td> <td align="right">36</td> <td align="right">30</td> <td align="right">32</td> <td align="right">36</td> <td align="right">30</td> <td align="right">30</td> </tr> <tr style="height:15.0pt" height="20"> <td style="height:15.0pt" height="20">Rank</td> <td align="right">1</td> <td align="right">4</td> <td align="right">3</td> <td align="right">1</td> <td align="right">4</td> <td align="right">4</td> </tr> </tbody></table>
I would like to have a formula / vba function so that the resulting output looks as follows:

<table border="0" cellpadding="0" cellspacing="0" width="192"><col style="width:48pt" span="3" width="64"> <tbody><tr style="height:15.0pt" height="20"> <td class="xl66" style="height:15.0pt;width:48pt" height="20" width="64">Output</td> <td style="width:48pt" width="64">
</td> <td style="width:48pt" width="64">
</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" align="right" height="20">1</td> <td class="xl67" align="right">A</td> <td align="right">36</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20">
</td> <td class="xl67" align="right">D</td> <td align="right">36</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" align="right" height="20">3</td> <td class="xl67" align="right">C</td> <td align="right">32</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" align="right" height="20">4</td> <td class="xl67" align="right">B</td> <td align="right">30</td> </tr> <tr style="height:15.0pt" height="20"> <td style="height:15.0pt" height="20">
</td> <td class="xl67" align="right">E</td> <td align="right">30</td> </tr> <tr style="height:15.0pt" height="20"> <td style="height:15.0pt" height="20">
</td> <td class="xl67" align="right">F</td> <td align="right">30</td> </tr> </tbody></table>
Is there a way to easily do this?

Thanks in advance
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
forgot to put formula

try this formula

=IF(COUNT(c$2:c2)=c2,c2,"")

after the transpose and sorting table will be in the following order
a b c
Data Points Rank

in the column d put this formula and drag it down
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,331
Members
452,907
Latest member
Roland Deschain

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