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

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
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,215,346
Messages
6,124,417
Members
449,157
Latest member
mytux

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