Adding Up Columns Code Needed

bamaisgreat

Well-known Member
Joined
Jan 23, 2012
Messages
831
Office Version
  1. 365
Platform
  1. Windows
I have a spreadsheet that is generated by Auto Cad Electrical. When I get the raw data I would like to run a macro from my personal workbook that will do the following:
For each Cell in Column B that is empty, I would like to have the data in the adjacent cell in Column C be moved to Column B.
Then in column D I need Column A + Column C + Column D with a space in between each to be combined.

Hope this makes sense and as always thanks for your help.
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
try the following codes
Code:
Sub alabama()
Dim x As Long, a As Long
x = Cells(Rows.Count, 1).End(xlUp).Row
MsgBox x
    For a = 2 To x
        If Cells(a, 2) = "" Then
        Range("C" & a).Copy
        Range("B" & a).PasteSpecial
        Range("C" & a) = ""
        End If
    Cells(a, 4) = Cells(a, 1) & " " & Cells(a, 3) & " " & Cells(a, 4)
    Next a
MsgBox "complete"
End Sub
ravishankar
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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