I have something wrong in MONTH retreival
I am attempting to return a series of values ONLY for the month in which this is being viewed.
SHEET 1
The "Count", The "Goal" and the "Count - Goal" are all coming from another sheet.
Where I am getting in trouble is I have been using Countifs, and I believe this is incorrect.
Here is the clunky formula I came up with:
=COUNTIFS({GOAL Active SOW 2022 from Project Sheets Range 1}, [Primary Column]@row, ({GOAL Active SOW 2022 from Project Sheets Range 2}), AND(IFERROR(MONTH(@cell), 0) = MONTH(TODAY()), IFERROR(YEAR(@cell), 0) = YEAR(TODAY())))
Okay now onto the other sheet:
SHEET 2
What I am TRYING to do is: On SHEET 1, return the actual number in "Completed",
IF The item in "Reference" on Sheet 2 matches the item in "Primary Column" on Sheet 1, AND The Date is "Start Date" on Sheet 2 is this month, this year, THEN report the number in TOTAL COMPLETE on Sheet 2 to "COUNT" on sheet one.
From there I can do the same to draw the goal number in and so forth.
SO if someone can help me out and tell me where to send the bottle of bourbon to... I would be MOST appreciative!
Best Answer
-
Try this:
=INDEX(COLLECT({GOAL Active SOW 2022 from Project Sheets Total Com}, {GOAL Active SOW 2022 from Project Sheets REFERENCE}, [Primary Column]@row, {GOAL Active SOW 2022 from Project Sheets Start Dat}, MONTH(@cell) = MONTH(TODAY()), {GOAL Active SOW 2022 from Project Sheets Start Dat}, YEAR(@cell) = YEAR(TODAY())), 1)
Answers
-
This morning I tried a new sting to get my answer:
=IF({GOAL Active SOW 2022 from Project Sheets Range 2} = MONTH(), IF({GOAL Active SOW 2022 from Project Sheets Range 1} = [Primary Column]@row, {GOAL Active SOW 2022 from Project Sheets Range 3}))
This too failed. In this one, Range 2 is the "Start Date" field in Sheet 2. Range 1 is the Reference in Sheet 2. Range 3 is the number I wish to return to Sheet 1 in the Count column.
If this was Excel I would have this answer. SmartSheet just some times makes thing a bit hard for me to understand.
-
I have now tried INDEX COLLECT
=INDEX(COLLECT({GOAL Active SOW 2022 from Project Sheets Total Com}, {GOAL Active SOW 2022 from Project Sheets REFERENCE}, [Primary Column]@row), {GOAL Active SOW 2022 from Project Sheets Start Dat}, MONTH(TODAY()))
-
Try this:
=INDEX(COLLECT({GOAL Active SOW 2022 from Project Sheets Total Com}, {GOAL Active SOW 2022 from Project Sheets REFERENCE}, [Primary Column]@row, {GOAL Active SOW 2022 from Project Sheets Start Dat}, MONTH(@cell) = MONTH(TODAY()), {GOAL Active SOW 2022 from Project Sheets Start Dat}, YEAR(@cell) = YEAR(TODAY())), 1)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.4K Get Help
- 424 Global Discussions
- 221 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 144 Just for fun
- 61 Community Job Board
- 463 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!