Move row based on cell value?

franklint

New Member
Joined
Jul 11, 2018
Messages
1
I am trying to find a way to automatically move an entire row based on the contents of a single cell in that row.

In column M the values range sporadically from mycard1 - mycard1500. Not all number between 1-1500 are used so sorting would not work. Is there a way to automatically make the contents of a row in which column M contains mycard2 go to row 2, mycard1500 go to row 1500, and all others in between?
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
franklint,

Welcome to the Board.

One approach would be to add a helper column with the formula...

Code:
=RIGHT(M2,LEN(M2)-6)

...then copy the formula down to the last row. Now you'll be able to sort by the helper column.

Cheers,

tonyyy
 
Upvote 0

Forum statistics

Threads
1,215,443
Messages
6,124,890
Members
449,194
Latest member
JayEggleton

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