Copying column of data while removing spaces

Hwatsonnn

Board Regular
Joined
Nov 14, 2018
Messages
58
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I have a column of values on Sheet 1 (A:A). There are blanks in this data and these are dependant on the value in column B.
The blanks vary from week to week.

On Sheet 2 I would like the data carried over from Sheet 1 (A:A) but grouped up without spaces, I can’t just paste and remove blanks as the data is going to be varying all the time.

Thanks for any help
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Here is a solution with a formula
Book4
ABCDE
1
2Data1Data1
3Data2Data2
4Data3Data3
5Data4Data4
6Data6
7Data6Data7
8Data7Data9
9Data10
10Data9Data12
11Data10Data13
12Data15
13Data12 
14Data13 
15 
16Data15 
17 
18 
19 
20 
Sheet1
Cell Formulas
RangeFormula
E2:E20E2=IF(ROWS($E$2:E2)<=COUNTA($A$1:$A$20),INDEX($A$1:$A$20,SMALL(($A$1:$A$20<>"")*ROW($A$1:$A$20),ROW(A1)+COUNTIF($A$1:$A$20,"")),1),"")
 
Upvote 0
Upvote 0

Forum statistics

Threads
1,214,622
Messages
6,120,572
Members
448,972
Latest member
Shantanu2024

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