Merge 3 spilled data columns together

CV12

Board Regular
Joined
Apr 6, 2020
Messages
82
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hello everybody,

For my project I will be having a couple of columns where spilled data is presented. Each column is a separate spilled column.
Is it somehow possible to merge the 3 columns in col C, D and E together? This way I can sort one of the columns, and have the other two columns change with the sorted column.
Please note that the amount of rows are variable.


Sandbox.xlsx
ABCDEFGHIJK
1111500111500
2222200222200
3333300333300
4444600444600
5534800534800
6631400631400
7720900720900
8825850825850
9942100942100
Sandbox2
Cell Formulas
RangeFormula
C1:E9C1=UNIQUE(I1:I9)
Dynamic array formulas.
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Perhaps I am not fully understanding your intention but unless you are going to copy/paste values, thereby removing the spilling formulas, you won't be able to sort anyway.
In your sample, try sorting just C1:C9 in descending order.
 
Upvote 0
Peter,

What I would like to do is the following.

Value 100 in E9, belongs to D9 and C9. Now if I sort col E, col C and D do not change, and thus making the columns of data incorrect.

When the spilled data is merged together, so lets say that we use a unique function and col I, J and K together, IT is possible tot sport col E and have col C and D also change.

In my project however, I cannot have a merged together columns spill data, but the columns are separate like in this example.

Now I would like to merge col C D E, so that if I sort a single column, the two other columns also change with the sorter column.

Does this clarify what I would like to do?
 
Upvote 0
If I am not mistaken, if the spilled data is merged, I can sort the 3 columns by sort(E1#) in another cell. So I think the current 3 columns will be helper columns. Is that correct?
 
Upvote 0
sort(E1#)
Ah, you are going to sort by formula - I had thought that you were going to physically sort with, say ..
1643419063421.png


What about something like this?

22 01 29.xlsm
CDEFGHIJKLMNOP
1111500111500942100
2222200222200222200
3333300333300333300
4444600444600631400
5534800534800111500
6631400631400444600
7720900720900534800
8825850825850825850
9942100942100720900
10
Sort spill
Cell Formulas
RangeFormula
C1:E9C1=UNIQUE(I1:I9)
N1:P9N1=INDEX(SORTBY(C1:E20,E1:E20),SEQUENCE(COUNT(E1#)),{1,2,3})
Dynamic array formulas.
 
Upvote 0
Solution
That's it Peter, thanks!!
You're welcome. I think I went the long way about it though. :)

22 01 29.xlsm
CDEFGHIJKLMNOP
1111500111500942100
2222200222200222200
3333300333300333300
4444600444600631400
5534800534800111500
6631400631400444600
7720900720900534800
8825850825850825850
9942100942100720900
10
Sort spill
Cell Formulas
RangeFormula
C1:E9C1=UNIQUE(I1:I9)
N1:P9N1=SORT(FILTER(C1:E20,E1:E20<>""),3,1)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,915
Members
452,366
Latest member
TePunaBloke

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