Invalid Data Type Error for Embedded AND statement within an SUMIF
I'm trying to sum project estimates based on department and type of project. Basically if the department is "Operations" and the type of project is "MC" then sum the estimates for those conditions? Also referencing another sheet.
I receive an "Invalid Data Type" using the formula below.
=SUMIF(AND({5 Year Capital Plan (LC MC & DC) Range 3}, ="MC", {5 Year Capital Plan (LC MC & DC) Range 1}), ="Operations", {5 Year Capital Plan (LC MC & DC) Range 2})
Best Answer
-
Ahhh, that did it!!
Thank you!!
Very much appreciated!!
Answers
-
Try something like this...
=SUMIFS({Range to sum}, {5 Year Capital Plan (LC MC & DC) Range 3}, "MC", {5 Year Capital Plan (LC MC & DC) Range 1}, "Operations")
-
Thank you your quick response!!
I tried using the formula below (same as the one you provided above) and and get an "Incorrect Argument" error
=SUMIF({5 Year Capital Plan (LC MC & DC) Range 2}, {5 Year Capital Plan (LC MC & DC) Range 3}, "MC", {5 Year Capital Plan (LC MC & DC) Range 1}, "Operations")
?
-
You need to use a SUMIFS with the S on the end. Not a SUMIF without the S.
-
Ahhh, that did it!!
Thank you!!
Very much appreciated!!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 495 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!