Thread: [Solved] SUMIF Formula question
View Single Post
 
Old 05-22-2011, 02:17 AM
Colin Legg's Avatar
Colin Legg Colin Legg is offline Windows 7 32bit Office 2010 32bit
Expert
 
Join Date: Jan 2011
Location: UK
Posts: 369
Colin Legg will become famous soon enough
Default

Hi,
Quote:
I want to use the second variable in the SUMIF formula to refer to the contents of a cell rather thyan a string.
Suppose your condition is ">100", so if it was in the formula it would look like this:
Code:
=SUMIF(C15:C45,">100",F15:F45)
You could then put 100 in T10 and reference it like this:
Code:
=SUMIF(C15:C45,">"&T10,F15:F45)
In my experience, that's what most people do.

If you want the > operator in cell T10 too, then you would put this in T10:
Code:
=">100"
And then your formula would be
Code:
=SUMIF(C15:C45,T10,F15:F45)
If you want to see more examples, here's a tutorial I wrote on SUMIF.
Reply With Quote