muhammad susanto
Well-known Member
- Joined
- Jan 8, 2013
- Messages
- 2,077
- Office Version
- 365
- 2021
- Platform
- Windows
I am trying to Show MsgBox Sum every 22 rows in column C in a single sheet, starting from C21,C43,C65,C87, etc....till the last cells used.
this problem modify from this post Sum Data Contains String/Mark from Multiple Sheet into Same Cell
my data not fully contains number
this below code not fully working
the problem in range and format number (bold) not correct (i'm use Indonesian format)
here my sample
thank for your helping..
john m
this problem modify from this post Sum Data Contains String/Mark from Multiple Sheet into Same Cell
my data not fully contains number
this below code not fully working
Code:
Sub TextToNumbersSum()
Dim w As Worksheet, S As Double
For Each w In ActiveWorkbook.Worksheets
For Each c In w.Range("C21....")
S = S + Replace(Replace(Replace(c.Value, "=", ""), ".", ""), ",", "") + 0
Next c
Next w
MsgBox Format(S, "#,##0")
End Sub
the problem in range and format number (bold) not correct (i'm use Indonesian format)
here my sample
sum every 22 rows.xlsx
drive.google.com
thank for your helping..
john m
Last edited: