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.
jnikodymAsked:
Who is Participating?
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,"")

Saurabh...
0

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

0
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Oh. Sorry Saurabh! I didn't see your reply. My apologies.
We were on the same track. :)
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

Saurabh Singh TeotiaCommented:
sktneer,

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

Saurabh...
0
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. :)
0
MagaduCommented:
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

0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.