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

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
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,216,082
Messages
6,128,713
Members
449,464
Latest member
againofsoul

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