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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

Saurabh Singh TeotiaCommented:
You can simply do this...

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


Experts Exchange Solution brought to you by

Your issues matter to us.

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

Start your 7-day free trial
Subodh Tiwari (Neeraj)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),"")

Open in new window

Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Oh. Sorry Saurabh! I didn't see your reply. My apologies.
We were on the same track. :)
CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

Saurabh Singh TeotiaCommented:

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

Subodh Tiwari (Neeraj)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. :)
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)

Open in new window

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.