Excel Sumifs with a cell that is linked to a checkbox

I am trying to use a sumifs formula and one of my criteria is if cell A1 is true.  Cell A1 changes from false to true when a checkbox in the sheet is checked.  So my formula looks like this:

=SUMIFS('Double Stage Trailer'!H:H,'Double Stage Trailer'!C:C,"FET",'Double Stage Trailer'!A1,"TRUE")

So, i am trying to sum the values in column H.  My first criteria is column C must contain the text FET.  I want my second criteria to be if cell A1 has the text TRUE.

I get a #VALUE! in my formula result.
Who is Participating?

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Commented:
You can simply do this...

=IF('Double Stage Trailer'!A1=True,sumif('Double Stage Trailer'!C:C,"FET",'Double Stage Trailer'!H:H,"")

Saurabh...

Experts Exchange Solution brought to you by

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Excel & VBA ExpertCommented:
Rather use a simple IF statement to check if A1 of Double Stage Trailer is True and if it is true then use SumIF instead of SumIfs.

``````=IF('Double Stage Trailer'!A1=TRUE,SUMIF('Double Stage Trailer'!C:C,"FET",'Double Stage Trailer'!H:H),"")
``````
Excel & VBA ExpertCommented:
We were on the same track. :)
Commented:
sktneer,

It's okay happens all the time... :-)

Saurabh...
Excel & VBA ExpertCommented:
It happens when you open the question, think about the solution, create a solution and post it without refreshing the page to make sure someone else might have posted the same solution before you.

Maybe a casual attitude. :)
Commented:
The solution above works perfectly, but here is just a slightly different variations. (Just FYI)

``````='Double Stage Trailer'!A1 * (SUMIF('Double Stage Trailer'!C:C,"FET",'Double Stage Trailer'!H:H)
``````
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.