I want to add a group of cells, using a sumif of another group of.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to add a group of cells, using a sumif of another group of cells.
Such as if A1,B1, D1 is equal to 3.5 add A2 to the sum of cells
 
Dim dblSum as Double
dblSum = application.Round(application.Sum(range("A1:B1,D1")),1)
if abs(dblSum-3.5) < .00000001 then
dblSum = dblSum + Range("A2")
End if
 

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.

Ask a Question

Back
Top