Sort non blank cells

eduzs

Well-known Member
Joined
Jul 6, 2014
Messages
704
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
I need to list the non blank cells in order they appear: (. = blank line/cell)

.
A
.
.
C
.
.
F

3 lines with:

A
C
F

Thanks
 

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
explaining better:

I have this:
1
2A
3
4
5B

<tbody>
</tbody>

Need a formula to show this in an another area of the sheet:

2A
5B

<tbody>
</tbody>

So the formula must get the number in column A when column B is not blank
In column B i will use VLOOKUP easy, but wich formula to use in Column A?
 
Upvote 0
See if this gives what you want.

Formula in D2 is an array formula and must be entered with
Excel Workbook
ABCDE
1##
212A
32A5B
43
54
65B
7
CTRL-SHIFT-ENTER. Sheet3



[/B]
 
Upvote 0
Just needed to change ISBLANK...=0 to $F$4:$F$17<>"" (Cause the cells have formulas =""), works great.

Thanks!
 
Upvote 0
If you would prefer a non CTRL-SHIFT-ENTER formula and you are using Excel 2010 or later, an alternative is:

Excel Workbook
ABCDE
1
212A
32A5B
43
54
65B
7
Exclude Blanks
 
Upvote 0
Thanks! I was also looking for a non-matrix formula.
Works great.
 
Upvote 0

Forum statistics

Threads
1,214,606
Messages
6,120,488
Members
448,967
Latest member
visheshkotha

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