Microsoft Excel 2013 Conditional Formatting

Discuss the spreadsheet application
Post Reply
areid6569
Posts: 1
Joined: Tue Jun 05, 2018 3:09 pm

Microsoft Excel 2013 Conditional Formatting

Post by areid6569 »

I am trying to format the info in column H based off theInfo in column F.

I need H to highlight Red if it is 30 mins or more before the time in F and 30 mins or more later then the time in F. I need H to highlight Green if it is between 15 mins before and 0 mins before time in F and Yellow if it is between 15-30 mins before and 0 to 15 mins after time in F.

Thank you if anyone can help.
Attachments
target spread sheet q.pdf
(68.43 KiB) Downloaded 78 times
OpenOffice 3.1 on Windows Vista
FJCC
Moderator
Posts: 9274
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Microsoft Excel 2013 Conditional Formatting

Post by FJCC »

This forum supports OpenOffice and LibreOffice. You will get better support for Microsoft Office on a forum dedicated to that.
As for you question, you don't seem to have a color assigned for all possibilities. I see
x <= -30: red
-30 < x <= -15: yellow
-15 < x <=0: green
0 < x <= 15: yellow
15 < x <= 30: no assignment
30 < x: red
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Microsoft Excel 2013 Conditional Formatting

Post by Villeroy »

If the cell to be formatted is a formula cell, then you can use the STYLE function: =numeric_calculation+STYLE(VLOOKUP(...)) or string_calculation &T(STYLE(VLOOKUP(...)))
It is also possible to combine conditional formatting with the STYLE function: viewtopic.php?t=77238&p=352722#p352722
And there are macros to apply more than 3 cond. formattings: viewtopic.php?f=21&t=6039 this simple one replaces the dialog wich is limited to 3 conditions with a cell range.
I used the above Python macro to produce a little stop motion movie with 200+ conditional formats: download/file.php?id=14875 The Basic macro just loops the frame counter.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Post Reply