Shift non zero cells with text in next coloum up

A Thayuman

New Member
Joined
Mar 6, 2019
Messages
30
Hi I hope someone can help me with a formula where I can shift cells with text in the next coloum up without having to use the filter option

Thanking you'll in advance, Regards,
Anil
0W
0EH
0EH
0EH
0N
0
0
W
EH
EH
EH
0
N
0
0
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
B2=IFERROR(INDEX($A$2:$A$100,AGGREGATE(15,6,ROW($A$2:$A$100)-ROW($A$2)+1/(ISTEXT($A$2:$A$100)),ROWS($C$1:C1))),"")

Copy down
 
Upvote 0
Solution
@A Thayuman
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’).

For example, if you have a recent Excel version you can do this with a much shorter formula and there is no need to copy the formula down.

24 10 11.xlsm
AB
1
20W
30EH
40EH
50EH
60N
70
80
9W
10EH
11EH
12EH
130
14N
150
160
Move up
Cell Formulas
RangeFormula
B2:B6B2=FILTER(A2:A16,A2:A16<>0,"")
Dynamic array formulas.


BTW, I also suggest that you investigate XL2BB for providing sample data to make it easier for helpers by not having to manually type out sample data to test with. If you have trouble with XL2BB, review the "XL2BB Icons greyed out" link in the 'Known XL2BB issues' section near the top of the XL2BB Instructions page linked above.
 
Upvote 0
Thank you Marziotullio works perfectly,
The marked solution has been changed accordingly. In your future questions, please mark the post as the solution that actually answered your question, instead of your feedback message as it will help future readers. No further action is required for this thread.
 
Upvote 0

Forum statistics

Threads
1,223,952
Messages
6,175,594
Members
452,654
Latest member
mememe101

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