Formula to take cells in A2:A100 and paste them in Column B leaving blank row in between (A2 in B2, A3 in B4, A4 in B6, etc)

AlexK_

New Member
Joined
Feb 21, 2024
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Excel experts!! I need you help...

I have a long list of names that I want to copy over to another sheet, however, I want the names to be in every other row on the other sheet. Is there a way to do this with a formula, as the list will continue to grow and I want the other sheet to automatically pull in the new names with a blank row in between the names.

Everything I try changes the referenced cell by two since I am skipping a cell, where I want to skip a cell but have the referenced cell only increase by one.

Example dataset in Column A and example of goal in Column B

Thank you for the conversation and assistance in advance.
Alex

NameName with blank row in between
Luka DoncicLuka Doncic
Shai Gilgeous-Alexander
Stephen CurryShai Gilgeous-Alexander
Jalen Brunson
Nikola JokicStephen Curry
Jalen Brunson
Nikola Jokic
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
You could use something like this, but you need the next column to be blank.
Book1
ABC
1RedRed
2Orange
3YellowOrange
4Green
5BlueYellow
6Purple
7Green
8
9Blue
10
11Purple
12
Sheet1
Cell Formulas
RangeFormula
C1:C12C1=TOCOL(A1:B6)&""
Dynamic array formulas.
 
Upvote 0
Solution
Or put this in the Sheet module of the Sheet where the changes will occur
Change references as required
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim sh1 As Worksheet, sh2 As Worksheet, lr As Long, i As Long
Set sh1 = Worksheets("Sheet1")
Set sh2 = Worksheets("Sheet2")
lr = sh1.Cells(Rows.Count, 1).End(xlUp).Row
If Target.Column = 1 Then
    With sh2
    .Columns(1).ClearContents
    .Cells(1, 1).Resize(lr).Value = sh1.Cells(1, 1).Resize(lr).Value
        For i = lr To 2 Step -1
            .Cells(i, 1).Resize(1).Insert Shift:=xlDown
        Next i
    End With
End If
End Sub
 
Upvote 0
Another possible option based on your data set:

Excel Formula:
=TOCOL(HSTACK(A2:A6,IF(A2:A6<>"","")))

Book1
AB
1NameName With Blank Cell
2Luka DoncicLuka Doncic
3Shai Gilgeous Alexander
4Stephen CurryShai Gilgeous Alexander
5Jalen Brunson
6Nikola JokicStephen Curry
7
8Jalen Brunson
9
10Nikola Jokic
Sheet1
Cell Formulas
RangeFormula
B2:B11B2=TOCOL(HSTACK(A2:A6,IF(A2:A6<>"","")))
Dynamic array formulas.
 
Last edited:
Upvote 0
Hi & welcome to MrExcel.
Another option
Fluff.xlsm
AB
1NameName with blank row in between
2Luka DoncicLuka Doncic
3Shai Gilgeous-Alexander
4Stephen CurryShai Gilgeous-Alexander
5Jalen Brunson
6Nikola JokicStephen Curry
7
8Jalen Brunson
9
10Nikola Jokic
11
Data
Cell Formulas
RangeFormula
B2:B10B2=DROP(TOCOL(EXPAND(TOCOL(A2:A100,1),,2,"")),-1)
Dynamic array formulas.
 
Upvote 0
Thank you all for the assistance and knowledge.

I went with the first post as it was the most straightforward and my data had blank cells in the column to the right. If it did not have blank cells in the column to the right, I could have used another formula shared above. I was not aware of the TOCOL array formula prior to this and it did exactly what I needed it to do.

Will definitely come back here to obtain and share Excel knowledge.
Alex
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,816
Messages
6,181,141
Members
453,021
Latest member
Justyna P

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