You would need to use a user-defined-function, given below. Copy and paste
the code into a codemodule, and use it like
=mySum(A14)
HTH,
Bernie
MS Excel MVP
Function mySum(inRange As Range) As Double
Dim myCell As Range
Dim myMC As Range
For Each myCell In inRange
For Each myMC In myCell.MergeArea
mySum = mySum + myMC.Value
Next myMC
Next myCell
End Function
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.