well i have rows and rows of data for customers on different lines which i want to combine into 1 row per customer so i can work out my profit margin using a macro.
EG: Customer 1 Income Costs Profit Margin row 1 A 10
4 B 5
well i have rows and rows of data for customers on different lines which i want to combine into 1 row per customer so i can work out my profit margin using a macro.EG: Customer 1 Income Costs Profit Marginrow1 A
errr, can't you just delete the empty rows using something like
Sub DeleteBlankARows() Dim r As Long For r = Cells(Rows.Count, 1).End(xlUp).Row To 1 Step -1 If Cells(r, 1) = "" Then Rows(r).Delete Next r End Sub and just total the columns up for each customer?
errr, can't you just delete the empty rows using something likeSub DeleteBlankARows()Dim r As LongFor r = Cells(Rows.Count, 1).End(xlUp).Row To 1 Step -1 If Cells(r, 1) = "" Then Rows(r).DeleteNext rEnd Suband just total the columns up for ea