countifs with a date criteria
I am trying to create a countifs formula that would count "New Quotes" with a January date while it's referencing another sheet.
New Quotes would be in the New Quote/Repricing column of this spreadsheet and then there's the Proposal date column that is in a MM/DD/YY format.
=COUNTIFS({CPI Prospects 2019 Range 1}, "New Quote", {CPI Prospects 2019 Range 2}MONTH(@cell),01)
Comments
-
Nic Larsen ✭✭✭✭✭✭
Give this a try:
=COUNTIFS({CPI Prospects 2019 Range 1}, "New Quote", {CPI Prospects 2019 Range 2}, IFERROR(MONTH(@cell), 0) = 1)
-
drodgers ✭
You are my new best friend. Thank you so much!!!
-
Nic Larsen ✭✭✭✭✭✭
No problem - happy to help. Glad it worked.
-
Paul Newcome ✭✭✭✭✭✭
To expand on why this worked as opposed to your original formula:
Most immediately, you were missing a comma between your second range and criteria.
Secondly, if there are any blank cells or cells containing non-date data within your range, it will throw an error within the MONTH(@cell)function which in turn would cause the entire formula to fail. That is the reason for wrapping the MONTH(@cell)in the IFERROR statement.
Help Article Resources
Categories
=IF([Name]@row <> \"//www.santa-greenland.com/community/discussion/46971/\", LEFT([Name]@row, FIND(\" \", [Name]@row) - 1) + \".\" + RIGHT([Name]@row, LEN([Name]@row) - FIND(\" \", [Name]@row)) + \"@company.net\", \"//www.santa-greenland.com/community/discussion/46971/\")<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":322,"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions","allowedDiscussionTypes":[]},"reactions":[{"tagID":3,"urlcode":"Promote","name":"Promote","class":"Positive","hasReacted":false,"reactionValue":5,"count":0},{"tagID":5,"urlcode":"Insightful","name":"Insightful","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":11,"urlcode":"Up","name":"Vote Up","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":13,"urlcode":"Awesome","name":"Awesome","class":"Positive","hasReacted":false,"reactionValue":1,"count":0}],"tags":[{"tagID":254,"urlcode":"formulas","name":"Formulas"}]},{"discussionID":109441,"type":"question","name":"SumIFS from another sheet with two conditions","excerpt":"I am trying to use the SUMIFS function to sum the total budget approved for one of the Functions when the STEP is only In-Flight. This is the formula I am using, but it's not working! =SUMIFS({Projects Function}, CONTAINS(\"Finance\"), {Projects Step}, CONTAINS(\"6 - In Flight\"), {Budget}, >25) I need the data from another…","snippet":"I am trying to use the SUMIFS function to sum the total budget approved for one of the Functions when the STEP is only In-Flight. This is the formula I am using, but it's not…","categoryID":322,"dateInserted":"2023-08-24T22:12:04+00:00","dateUpdated":null,"dateLastComment":"2023-08-25T14:36:29+00:00","insertUserID":165562,"insertUser":{"userID":165562,"name":"nermine.elsaghir","title":"Senior Analyst, PMO","url":"https:\/\/community.smartsheet.com\/profile\/nermine.elsaghir","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-08-25T14:40:41+00:00","banned":0,"punished":0,"private":true,"label":"✭"},"updateUserID":null,"lastUserID":165153,"lastUser":{"userID":165153,"name":"DKazatsky2","url":"https:\/\/community.smartsheet.com\/profile\/DKazatsky2","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-08-25T14:33:43+00:00","banned":0,"punished":0,"private":false,"label":"✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":3,"countViews":38,"score":null,"hot":3385891113,"url":"https:\/\/community.smartsheet.com\/discussion\/109441\/sumifs-from-another-sheet-with-two-conditions","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/109441\/sumifs-from-another-sheet-with-two-conditions","format":"Rich","lastPost":{"discussionID":109441,"commentID":392585,"name":"Re: SumIFS from another sheet with two conditions","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/392585#Comment_392585","dateInserted":"2023-08-25T14:36:29+00:00","insertUserID":165153,"insertUser":{"userID":165153,"name":"DKazatsky2","url":"https:\/\/community.smartsheet.com\/profile\/DKazatsky2","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-08-25T14:33:43+00:00","banned":0,"punished":0,"private":false,"label":"✭✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"Get Help","url":"https:\/\/community.smartsheet.com\/categories\/get-help"},{"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2023-08-25T13:32:17+00:00","dateAnswered":"2023-08-24T23:10:18+00:00","acceptedAnswers":[{"commentID":392505,"body":"