Jesus Prime Posted January 24 Share Posted January 24 I’m following the politics and war api tutorial and I have got to the part for the conditional formatting however the color palette doesn’t seem to be working for the date? Is this due to the it being not a value as it is represented as X/X/XXXX 00+00? by devvy Quote Link to comment Share on other sites More sharing options...
Administrators Alex Posted January 24 Administrators Share Posted January 24 I will share your question there, but I would recommend joining this Discord server for assistance with the API: https://discord.gg/vdbSNHGdWJ 1 Quote Is there a bug? Report It | Not understanding game mechanics? Ask About It | Got a good idea? Suggest ItForums Rules | Game Link Link to comment Share on other sites More sharing options...
Jacob Knox Posted January 24 Share Posted January 24 I think this is more of an issue you're having with conditional formatting in Sheets rather than an issue with the API. With that being said... if I have a bunch of datetimes in Column B, my conditional formatting for column B would be something like this: Format cells if... Custom formula is =NOW()-TIME(2,0,0)<B1 This will add the formatting style if the datetime was within the last 2 hours. For more information, see the TIME and DATE function docs. I hope this small example is enough to get you on the right track. 1 Quote Federation of Knox Enlightened of Chaos, Event Horizon QA Team and API Team Link to comment Share on other sites More sharing options...
Jesus Prime Posted January 24 Author Share Posted January 24 15 hours ago, Jacob Knox said: I think this is more of an issue you're having with conditional formatting in Sheets rather than an issue with the API. With that being said... if I have a bunch of datetimes in Column B, my conditional formatting for column B would be something like this: Format cells if... Custom formula is =NOW()-TIME(2,0,0)<B1 This will add the formatting style if the datetime was within the last 2 hours. For more information, see the TIME and DATE function docs. I hope this small example is enough to get you on the right track. Thanks! It’s now working. I also have some other ideas with conditions that I want to test. Although I might need some more help to create a discord bot 😅 so I’ll ask around on the discord a bit. 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.