Controlling Traffic Light Symbols Based on Comparison and Date Fields
Hello everyone,
I am attempting to control the "traffic light" symbols, Green, Yellow, Red, based on a comparison of one field to another and a date range.
Essentially it's a booking system where user inputs X and requests a date range. I'm trying to make it possible to book into the future and make my status symbol change colour based on whether it is available in this present moment (Of course you could simply look at the entries against the equipment and check the date fields)
I have two sheets. One is just a register for available equipment (lets call this sheet 1) and the other sheet is where the data comes in from the user (lets call this sheet 2).
A system administrator of some kind would then 'key' in the name of the equipment (in sheet 2)
Lets assume our equipment is called "EQUIPMENT1".
The status symbol in sheet 1 should then respond after comparing EQUIPMENT1 to EQUIPMENT1 on the other sheet and take into account the date. If Today's date is outside of the date range requested then the symbol will appear Green.
I think where I am running into problems is that its possible to have more than one of the EQUIPMENT1 in the column (with different dates). I say this because if I do some testing in a single sheet, with only one entry, the formulas work fine.
Here is an example of what I am trying.
=IF(AND([AssetNameSheet1]@row={AssetNameSheet2}@row), TODAY()<{NeedByDate}, TODAY()>{ReturnDate}), "Green" , "Red")
I hope what I am trying to Achieve is clear - if further clarification is needed please let me know.
Thank you all for your help.
Answers
-
Dear @AlexP
Hope you are fine, please check my post about Using smartsheet to book workspaces/meeting rooms you can use the same concept to start the design of your system and if you like i can prepare the system for you but i need you to share your sheets after you export it to excel (Delete/replace any confidential/sensitive information before sharing).
my Email:(bassam.k@mobilproject.it)
bassam.khalil2009@gmail.com
☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"
-
Thank you for your reply - certainly a good solution for that particular booking system but not exactly what I have in my mind.
However I'm still having trouble comparing the equipment name as it's possible for a column to have more than one entry of the same text.
=IF(AND({DateCheckFlag}@row=1,[AssetNameSheet1]@row={AssetNameSheet2}@row),1,0)
I think it is because the column AssetNameSheet2 - it is possible to have the same entry more than once.
Because it's possible to assign the same equipment for a different date.
Please let me know if there is something I can try.
-
Hi @AlexP
Hope you are fine, could you please supply a screenshot for your sheet (Delete/replace any confidential/sensitive information before sharing)
bassam.khalil2009@gmail.com
☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"
-
I have reached a resolution and so no further help is required, thanks!
-
Perfect
bassam.khalil2009@gmail.com
☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"
Help Article Resources
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
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!