Text cell list sorting problem

Harold123

New Member
Joined
May 16, 2016
Messages
23
I have a large set of cells with Text inside I need to sort into lists and in such a way that each list produced from the first omits one cell. The difficulty for me in particular is that the number of cells can vary. To illustrate simply below is a simplified set of cells with one word in each. Each subsequently generated list has a different omission. In this sample there are 4 Cells in the list Column Giving rise to four columns of lists, had the list been 20 cells long there would have been 20 generated.

Orig
List 1 2 3 4
---------------------------------------------
Cat Dog Mouse Bird Cat
Dog Mouse Bird Cat Dog
Mouse Bird Cat Dog Mouse
Bird

From the list on the left 4 lists are generated all with one different cell missing. To complicate matters the list can be any number of cells typically 20 but can be as high as 40 and is very time consuming.
Can anyone see a formula here or is it VBA, any suggestions help really appreciate.
 
Just realised that the formula given is still more complicated than necessary.
For the '24 model' try this instead in B1 copied across and down. I have assumed no gaps in the column A list.
Code:
=IF(OR($A2="",COLUMNS($B:B)>ROWS($A$1:$A$24)),"",INDEX($A$1:$A$24,ROWS(B$1:B1)+(ROWS(B$1:B1)>=COLUMNS($B:B))))
 
Last edited:
Upvote 0

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
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