Remove Blanks from a Column with Formula

IainRourke

New Member
Joined
Jan 4, 2012
Messages
15
Hi,

I have a column of data like this:

(COLUMN B)
0
41.44930565
29.71363323
29.71363323



60.26418424
29.71363323
29.71363323



55.97371796
55.97371796

Where the empty cells are actually "" (returned from a previous formula).
What combination of functions should I use if I want to remove the ""s from this list and return the result in a new column? Column C should look like:

(COLUMN C)
0
41.44930565
29.71363323
29.71363323
60.26418424
29.71363323
29.71363323
55.97371796
55.97371796

I think I need to use a combination of INDEX, MATCH and COUNTIF functions, but I don't know the order in which to use them.

Thanks in advance,

Iain
 
Can you use something like this? Assume my data range is A1:A7 In another cell place =
=IFERROR(INDEX($A$1:$A$7,SMALL(IF($A$1:$A$7<>"",ROW($A$1:$A$7)-ROW($A$1)+1),ROWS($C$1:C1)))," ")

Enter with Cntrl+Shift+Enter

<tbody>
</tbody>
 
Upvote 0

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Can you use something like this? Assume my data range is A1:A7 In another cell place =
=IFERROR(INDEX($A$1:$A$7,SMALL(IF($A$1:$A$7<>"",ROW($A$1:$A$7)-ROW($A$1)+1),ROWS($C$1:C1)))," ")

Enter with Cntrl+Shift+Enter

<tbody>
</tbody>

I like it. Creative solution.
 
Upvote 0

Forum statistics

Threads
1,215,227
Messages
6,123,745
Members
449,116
Latest member
alexlomt

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