Blank cells

its_subu

New Member
Joined
Nov 19, 2005
Messages
7
I have an excel list. Rows till 4000 and columns till M. From A to L there are values in all the 4000 rows. But M column has values for may be 1000 rows only and that too in random.

My question is how can I make the blank cells of the M column appear first in the list with its corresponding rows followed by the rows which have A to M with values.


Please let me know.
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

Yogi Anand

MrExcel MVP
Joined
Mar 12, 2002
Messages
11,454
its_subu said:
I have an excel list. Rows till 4000 and columns till M. From A to L there are values in all the 4000 rows. But M column has values for may be 1000 rows only and that too in random.

My question is how can I make the blank cells of the M column appear first in the list with its corresponding rows followed by the rows which have A to M with values.

Please let me know.
Hi its_subu:

Here is one way ...

1) use a helper column N ... with following formula in cell N1 ...

=IF(M1="",1,M1)

this formula is then copied down to your 4000 rows

2) then sort your list A1:N4000 by column N in ascending order

3) then you may optionally delete the helper column N

You may also automate this process with a macro.

I hope this helps!
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,802
Messages
5,833,751
Members
430,229
Latest member
TestableEmu263

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
Top