conditional formatting

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,805
Office Version
  1. 2016
Platform
  1. Windows
Hi
I have the table below. I want to use conditional formatting or any other way to highlight
the event based on condition like the following:

If the event takes less than 14 days, then I highlight "Current" in the 3rd column. but not to highlight the "xmas" or any other events which have number of days less than 14 as well, only current.

Is that possible? Thank you very much.

[TABLE="class: grid, width: 218"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Item[/TD]
[TD]#of days[/TD]
[TD]Event[/TD]
[/TR]
[TR]
[TD]Item1[/TD]
[TD="align: right"]3[/TD]
[TD]current[/TD]
[/TR]
[TR]
[TD]Item2[/TD]
[TD="align: right"]3[/TD]
[TD]xmas[/TD]
[/TR]
[TR]
[TD]Item3[/TD]
[TD="align: right"]5[/TD]
[TD]hallween[/TD]
[/TR]
[TR]
[TD]Item4[/TD]
[TD="align: right"]10[/TD]
[TD]others[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Assuming your table is in columns A:C with the headers in row 1:
1. Select all the cells in col C you want to apply the CF to.
2. Home>Conditional Formatting>New rule> use a formula
3. Formula is: =AND($B2<14,$C2="current")
4. Select the format you want
5.Click OK
 
Upvote 0

Forum statistics

Threads
1,224,763
Messages
6,180,830
Members
452,998
Latest member
Minkie88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top