simple sumIfs question

C

Cresta

Does sumifs criteria only work if the ranges are parallel, for example only
columns or only rows. Or can it have mixed criteria ranges, like a row across
the top of a table and a column down the left, returning the intersection
cell value.

Thanks
 
J

Joel

Add them individually. Note the code below Adds "A1" twice

Set RowHeader = Rows(1)
Set ColHeader = Columns(1)
Total = 0
Total = WorksheetFunction.SumIf(RowHeader, "1")
Total = Total + WorksheetFunction.SumIf(ColHeader, "1")
 

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

Top