How to create a column with no blanks using data from a column with blanks

Weekescl

New Member
Joined
May 26, 2014
Messages
6
Hi all,

Really basic excel user here with help needed on something i'm sure you'll be able to do within seconds.

I have a column that has numbers in it generated from a formula. Some of the cells in the column have blanks as a result of returning " " when the the formula didn't match.

I want to create a formula in the column next to it that takes the cells with numbers only and puts them in consequtive cells and ignores the blank ones (basically, if it gets to a cell that is blank keep going until you find the next cell with a number in it and return that one).

Big thanks in advance!
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

Excel 2010
ABC
1
28484
36666
41919
54343
6 39
73973
8734
9470
10 14
117073
121474
13 33
14733
157494
16 13
17 
18 
19 
2033
213
22 
23 
24 
2594
2613
Sheet3
Cell Formulas
RangeFormula
A6=""
A10=""
A13=""
A16=""
A17=""
A18=""
A19=""
A22=""
A23=""
A24=""
C2{=INDEX($A$1:$A$26,SMALL(IF($A$2:$A$26<>"",ROW($A$2:$A$26)),ROW(A1)))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,028
Messages
6,122,753
Members
449,094
Latest member
dsharae57

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