How to output a dynamic range where the height of the range varies

dagda13

Board Regular
Joined
May 18, 2019
Messages
52
Hi, I have a search tool that returns a dynamic range. I'm trying to get it so that the outputted dynamic range is staggered.

I get this:


[TABLE="class: grid, width: 200"]
<colgroup><col style="mso-width-source:userset;mso-width-alt:5266;width:108pt" width="144"> <col style="mso-width-source:userset;mso-width-alt:6070; width:125pt" width="166" span="2"> </colgroup><tbody>[TR]
[TD="width: 144"]A
[/TD]
[TD="width: 166"]AA
[/TD]
[TD="width: 166"]AAA[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD]AAB[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD]AAC
[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]AB[/TD]
[TD]ABA[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD]ABB[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD]ABC[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]BA[/TD]
[TD]BAA
[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD]BAB[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD]BAC[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]BB[/TD]
[TD]BBA[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD]BBB[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD]BBC
[/TD]
[/TR]
</tbody>[/TABLE]
<style>table { }tr { }col { }br { }td { padding-top: 1px; padding-right: 1px; padding-left: 1px; color: black; font-size: 11pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: Calibri, sans-serif; vertical-align: bottom; border: medium none; white-space: nowrap; }.xl65 { border: 0.5pt solid windowtext; }</style>
But I'd like the output to be staggered, like this:

[TABLE="class: grid, width: 200"]
<colgroup><col style="width:48pt" width="64" span="3"> </colgroup><tbody>[TR]
[TD="width: 64"]A[/TD]
[TD="width: 64"] [/TD]
[TD="width: 64"] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]AA[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD]AAA
[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD]AAB[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD]AAC
[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]AB[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD]ABA[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD]ABB[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD]ABC[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD] [/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]BA[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD]BAA[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD]BAB[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD]BAC[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]BB[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD]BBA[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD]BBB[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD]BBC
[/TD]
[/TR]
</tbody>[/TABLE]
<style>table { }tr { }col { }br { }td { padding-top: 1px; padding-right: 1px; padding-left: 1px; color: black; font-size: 11pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: Calibri, sans-serif; vertical-align: bottom; border: medium none; white-space: nowrap; }.xl65 { border: 0.5pt solid windowtext; }</style>

Is this possible? The outputted range will be dynamic (all the values are from formulae), which means the height of the outputted range may vary depeding on what is searched for, but the width of the range will always be the same. Is it possible to output a dynamic range like above, ie., staggered? Thanks in advance!
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,222,180
Messages
6,164,423
Members
451,894
Latest member
480BOY

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