How to highlight a cell only if value exist and leave if blank

mattbarb

New Member
Joined
Mar 22, 2018
Messages
41
<style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; color: #000000}</style>Highlight a cell if cell two rows on the left has x value. If blank do no highlight.


Err how would i do this?

Thanks,

Matt
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

tyija1995

Well-known Member
Joined
Feb 26, 2019
Messages
780
Office Version
  1. 365
Platform
  1. Windows
Hey,

Use a custom rule (Say you want the highlighter cell to be cell C1)

Select C1
Conditional formatting -> New Rule -> Use a formula to determine which cells to format -> =A1="Value goes here" Then select the format you want.

This will format C1 if cell A1 contains "Value goes here" - just change the text to whatever x is.
 

mattbarb

New Member
Joined
Mar 22, 2018
Messages
41
SorryIm looking for the formula, somthing like:
Code:
=NOT(ISBLANK($I17))

But i need it to just find value two rows to left.
 

tyija1995

Well-known Member
Joined
Feb 26, 2019
Messages
780
Office Version
  1. 365
Platform
  1. Windows
OK

In that case use OFFSET:

=NOT(ISBLANK(OFFSET($I17,0,-2)))

This offsets $I17 by 2 columns (to the left hence the minus) and therefore looks at $G17
 

mattbarb

New Member
Joined
Mar 22, 2018
Messages
41
yN3NbpP
yN3NbpP
yN3NbpP
Screenshot-2019-08-08-at-13-10-42.png
 
Last edited:

Watch MrExcel Video

Forum statistics

Threads
1,132,640
Messages
5,654,535
Members
418,138
Latest member
agnesegras

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
Top