multiple tables to 1 list with flexible rows

sukin

New Member
Joined
Jun 22, 2017
Messages
7
Hi all,

I am working on a new sheet combining multiple tables from one sheet into 1 long list.

Only the length of the tables can be variable and dynamic.

Currently, I made a work around to code lines in use and empty/last lines.

Below is an example of the coded lines I already made.


Corresponds with row no. A B C D E
611111
1711111
2811111
3911111
41011111
51111111
61211111
71311111

<colgroup><col><col><col span="5"></colgroup><tbody>
</tbody>

<colgroup><col width="64" span="4" style="width:48pt"> </colgroup><tbody>
</tbody>

Now, all the ones need to be listed in a single list.

So far, when column A --> the ones end my list start with the 1's in column B.

The problem is when column A for example expands of shrinks with filled lines I need the flexibility to keep starting the first line of column B after the last line of column A.
Now, a VBA solution would be the best way I guess, but is there also an option to just use a combo of regular formulas?

I am this far:

IF($C6=1,$C$5,IF(INDIRECT("$D"&IF($C6<>1,$B$6+$A7,1))=1,$D$5,IF(INDIRECT("$e"&IF(AND($C6<>1,$D6<>1),$B$6+$A7,1))=1,$E$5,IF(INDIRECT("$f"&IF(AND($C6<>1,$D6<>1,$E6<>1),$B$6+$A7,1))=1,$F$5,IF(INDIRECT("$g"&IF(AND($C6<>1,$D6<>1,$E6<>1,$F6<>1),$B$6+$A7,1))=1,$G$5,0)))))

I need something to make the $A7 part flexible

kind regards,

Suk In
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
post a link to shared excel file with representative example source and expecting result.
you can use google drive, one drive or any similar service

edit:
what is your Excel (Office) version. eg. 2007, 2016, 2019 or eny other.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,953
Members
449,095
Latest member
nmaske

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