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:

FF
GG
"empty cell"
"empty cell"
PP

<tbody>
</tbody>
What is the formula that allow me to copy those values in sheet2 so I can get this:

FF
GG
PP

<tbody>
</tbody>

Thanks!
Edu
 
Last edited:

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
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,217,367
Messages
6,136,134
Members
449,994
Latest member
Rocky Mountain High

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