Welcome to the Smartsheet Forum Archives
The posts in this forum are no longer monitored for accuracy and their content may no longer be current. If there's a discussion here that interests you and you'd like to find (or create) a more current version, please Visit the Current Forums.
IF/AND Functions
I am trying to create a sheet that will auto update a number in a cell using multiple IF AND statements. Is it possible to have multiple IF(AND statements in one cell or what is the format? When I have one statement it works properly, but I cannot figure out how to have it work with two or more. I am not worried about the color conditions so much, just the logic statements. Below is a list of what I am trying to accomplish.
My first statement: =IF(AND([Number of Projects]3 < 6, [Currently Projected Hrs]3 < 121), "1", "2")
IF number of projects is below 6 & currently project hours are below 121 THEN make staffing demand green with a number 1
IF number of projects is above 5 & currently project hours are below 121 THEN make staffing demand yellow with a number 1
IF number of projects is above 5 & currently project hours are above 120 THEN make staffing demand red with a number 2
IF number of projects is below 6 & currently project hours are above 120 THEN make staffing demand yellow with a number 2
IF number of projects is below 11 & currently project hours are below 241 THEN make staffing demand red with a number 2
IF number of projects is above 10 & currently project hours are below 241 THEN make staffing demand yellow with a number 2
IF number of projects is above 10 & currently project hours are above 240 THEN make staffing demand red with a number 3
IF number of projects is below 11 & currently project hours are above 240 THEN make staffing demand yellow with a number 3
Comments
-
Hi Darian,
Appologies for the delayed response. I consulted with one of our resident Formula experts to get some help with this one.
You should be able to achieve what you want with a series of nested IF formulas. Here's an example to get you started:
=IF(AND([Number of Projects]3 < 6, [Currently Projected Hrs]3 < 121), 1, IF(AND([Number of Projects]3 > 5, [Currently Projected Hrs]3 < 121), 1, IF(AND([Number of Projects]3 > 5, [Currently Projected Hrs]3 > 120), 2, add the next nested formula here...)))
Also, I recommend this Blog post on nested IFs:
https://www.smartsheet.com/blog/support-tip-build-nested-IF
Hope this helps!
Regards,
Gwyneth
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