Sorting data retrieved by formulas?

Camel123

Board Regular
Joined
Jun 5, 2018
Messages
186
Hi,

I have a table with data generated by formulas. When using the sort function in the filter I get lots of blanks between all values. I can not uncheck blanks in the filter since it will remove other information on the same row that is not related to the table data.

Any tips?
 
Last edited:

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)
What is your formula? You could change it to return 0 or not found.
 
Upvote 0
What is your formula? You could change it to return 0 or not found.

=IF(INDEX($C$3:$C$300;MATCH(D3;$B$3:$B$300;0))="NO";D3;"") this formula retrieves the values in column E. Those values, I want to sort in column F. Please see example below. I can do that using the filter but the issue is there is information on the same row as the blanks moving around then.

Column E
(blank)
(blank)
89043
(blank)
75678
(blank)

Column F
89043
75678
 
Last edited:
Upvote 0
Hello,

Not sure to understand your example ..

Are you looking for a formula to sort Column E ..

or

Are you looking for a formula to Delete all the Blanks ...???
 
Upvote 0
Hello,

Not sure to understand your example ..

Are you looking for a formula to sort Column E ..

or

Are you looking for a formula to Delete all the Blanks ...???

Hi James,

A formula to sort the cells containing values and putting the blanks in the bottom. Without messing around information that might appear on the same row as the blank row.
 
Upvote 0
well sorting data ...

will not produce :

Column F
89043
75678

unless you need to produce a descending order...
 
Upvote 0
Say you create a Named Range for the data your Column E ( e.g. rng )

in cell F2, you can have the following Array formula:

Code:
=IF(ROWS($2:2)<=COUNTA(rng),INDEX(rng,SMALL(IF(rng<>"",ROW(rng)-MIN(ROW(rng))+1),ROWS($2:2))),"")

and copy down ...

Hope this will help
 
Upvote 0

Forum statistics

Threads
1,223,954
Messages
6,175,600
Members
452,658
Latest member
GStorm

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