Removing text from a column

cluettp

New Member
Joined
Nov 7, 2019
Messages
2
Hello

I have a long column of text with some gaps; here's an example of what I mean:

A
1Monday
2
3Friday
4Saturday
5
6Sunday
7
8etc etc

<tbody>
</tbody>

If there a formula I can place in column B which just shows

B
1Monday
2Friday
3Saturday
4Sunday
5
6
7
8

<tbody>
</tbody>

Thanks for reading.
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Hi. Enter this into B1 using CTRL-SHIFT-ENTER

=IFERROR(INDEX($A$1:$A$100,SMALL(IF($A$1:$A$100<>"",ROW($A$1:$A$100)-ROW($A$1)+1),ROWS($A$1:A1))),"")
 
Upvote 0
In cell B1;

Code:
=IFERROR(INDEX($A:$A,SMALL(IF(ISTEXT($A:$A),ROW($A:$A),""),ROW(A2))),"")

It's an array formula so you'll need to press CTRL, SHIFT and ENTER to complete it properly, of done right you'll wrap it in { }

Drag down and it should do what you want :)
 
Upvote 0
In cell B1;

Code:
=IFERROR(INDEX($A:$A,SMALL(IF(ISTEXT($A:$A),ROW($A:$A),""),ROW(A2))),"")

It's an array formula so you'll need to press CTRL, SHIFT and ENTER to complete it properly, of done right you'll wrap it in { }

Drag down and it should do what you want :)

__________________

Thanks to all,

Steve the Fishes formula worked a treat; I found problems with JazzSP8's.

Someday I would like to understand how it works!
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,895
Members
449,097
Latest member
dbomb1414

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