GirishDhruva
Active Member
- Joined
- Mar 26, 2019
- Messages
- 308
Hi Everyone,
Here i am trying to multiply a particular columns using SUMPRODUCT but its giving me the output as '0'
Can i know why is this happening???
Any Suggestions/Solutions for the above code
Regards,
Dhruv
Here i am trying to multiply a particular columns using SUMPRODUCT but its giving me the output as '0'
Can i know why is this happening???
Code:
With Worksheets("Pivot") finalcolumn = 1 + .Cells(2, 1).End(xlToRight).Column
.Cells(2, finalcolumn).Select
Nxt = .Cells(2, .Columns.Count).End(xlToLeft).Offset(, 1).Column
Hdr = .Range(.Cells(1, 1), .Cells(1, Nxt - 1)).Address(, , xlR1C1)
Range(.Cells(2, Nxt), .Cells(.Rows.Count, Nxt - 1).End(xlUp).Offset(, 1)).FormulaR1C1 = _
"=SUMPRODUCT(((" & Hdr & "=""Sum of ABC PM"")/30)*(" & Hdr & "=""EA""),(rc1:rc[-1]))"
End With
Any Suggestions/Solutions for the above code
Regards,
Dhruv