How to eliminate blank spaces

EduPAz

Board Regular
Joined
Mar 18, 2017
Messages
69
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Hi,

Does anyone knows how to do this?

I have the fallowing information:

[TABLE="width: 500"]
<tbody>[TR]
[TD]FF[/TD]
[/TR]
[TR]
[TD]GG[/TD]
[/TR]
[TR]
[TD]"empty cell"
[/TD]
[/TR]
[TR]
[TD]"empty cell"
[/TD]
[/TR]
[TR]
[TD]PP[/TD]
[/TR]
</tbody>[/TABLE]
What is the formula that allow me to copy those values in sheet2 so I can get this:

[TABLE="width: 500"]
<tbody>[TR]
[TD]FF
[/TD]
[/TR]
[TR]
[TD]GG
[/TD]
[/TR]
[TR]
[TD]PP
[/TD]
[/TR]
</tbody>[/TABLE]

Thanks!
Edu
 
Last edited:

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Maybe:
=IFERROR(INDEX(Sheet1!$A$1:$A$1000,SMALL(IF(Sheet1!$A$1:$A$1000<>"",ROW(Sheet1!$A$1:$A$1000)),ROW(A1))),"")
Confirm with CTRL-SHIFT-ENTER rather than just Enter.
Copy down.
 
Upvote 0
Hi Scott,

What happen is the situation is this:

"empty cell"
"empty cell"
A
B
C

In this situation the formula doesn't work. I tried to change in the formula the starting point (a1) to a3. It didn't work
 
Upvote 0
Why can't you just leave it as is?


Excel 2010
A
1
2
3A
4B
5C
Sheet1



Excel 2010
A
1A
2B
3C
4 
5 
6 
Sheet2
Cell Formulas
RangeFormula
A1{=IFERROR(INDEX(Sheet1!$A$1:$A$1000,SMALL(IF(Sheet1!$A$1:$A$1000<>"",ROW(Sheet1!$A$1:$A$1000)),ROW(A1))),"")}
A2{=IFERROR(INDEX(Sheet1!$A$1:$A$1000,SMALL(IF(Sheet1!$A$1:$A$1000<>"",ROW(Sheet1!$A$1:$A$1000)),ROW(A2))),"")}
A3{=IFERROR(INDEX(Sheet1!$A$1:$A$1000,SMALL(IF(Sheet1!$A$1:$A$1000<>"",ROW(Sheet1!$A$1:$A$1000)),ROW(A3))),"")}
A4{=IFERROR(INDEX(Sheet1!$A$1:$A$1000,SMALL(IF(Sheet1!$A$1:$A$1000<>"",ROW(Sheet1!$A$1:$A$1000)),ROW(A4))),"")}
A5{=IFERROR(INDEX(Sheet1!$A$1:$A$1000,SMALL(IF(Sheet1!$A$1:$A$1000<>"",ROW(Sheet1!$A$1:$A$1000)),ROW(A5))),"")}
A6{=IFERROR(INDEX(Sheet1!$A$1:$A$1000,SMALL(IF(Sheet1!$A$1:$A$1000<>"",ROW(Sheet1!$A$1:$A$1000)),ROW(A6))),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,335
Members
452,636
Latest member
laura12345

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