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
- Customer Resources
- 66.2K Get Help
- 431 Global Discussions
- 152 Industry Talk
- 490 Announcements
- 5.2K Ideas & Feature Requests
- 85 Brandfolder
- 155 Just for fun
- 74 Community Job Board
- 501 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 306 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!