COUNTIF based on a Sheet Summary Cell w/Formula?
Hello!
I am trying to create rolling metrics of how many entries we have in the current Fiscal Year, Quarter, and past Fiscal Year. How would I reference a Sheet Summary cell's value?
For ex, I want Total Orders of Fiscal Year to show me everything in FY23. My Total Orders of Fiscal Year cell has the formula-
=COUNTIF(FY:FY, [Current Fiscal Year]#)
However, my COUNTIF is returning #INVALID DATA TYPE.
Here are the formulas in each of these sheet summary cells.
Date
=TODAY(0)
Current Fiscal Year
=IF(MONTH(Date#) > 9, YEAR(Date#) + 1, YEAR(Date#))Current Quarter
Current Quarter
=IF(MONTH(Date#) <= 3, "Q2", IF(MONTH(Date#) <= 6, "Q3", IF(MONTH(Date#) <= 9, "Q4", "Q1")))
Previous Fiscal Year
=[Current Fiscal Year]# - 1
I have the variations of the same formula in my grid to "tag" each entry with QTR/FY, so the information matches. I am able to do a COUNTIF if I specify "2023" or "2024," but since I want it to be rolling, I do not want to have to update the value each time.
I am also open to other workarounds if there is an easier way to do this.
Thank you!
Best Answer
-
check if any value in the FY column has the error #INVALID DATA TYPE
Answers
-
check if any value in the FY column has the error #INVALID DATA TYPE
-
@Leibel S Hello!
My dates columns do have #INVALID DATA TYPE because they are basing off dates of only completed orders. How would I format with MONTH/YEAR formulas to ignore blanks? IFERROR or ISBLANK?
=IF(MONTH([Delivered Date]@row) > 9, YEAR([Delivered Date]@row) + 1, YEAR([Delivered Date]@row))
I tried a bunch of things but syntax is not my strong point!
=IFERROR(OR(MONTH([Delivered Date]@row) > 9, YEAR([Delivered Date]@row) + 1, YEAR([Delivered Date]@row))"")
Actually I got it working!! I added in ISDATE! Thanks for your help, Leibel. :)
=IF(ISDATE([Delivered Date]@row), IF(MONTH([Delivered Date]@row) > 9, YEAR([Delivered Date]@row) + 1, YEAR([Delivered Date]@row)), "")
-
Glad you figured it out!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.6K Get Help
- 404 Global Discussions
- 215 Industry Talk
- 456 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 56 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!