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

mattbarb

Board Regular
Joined
Mar 22, 2018
Messages
54
Office Version
  1. 365
Platform
  1. MacOS
<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

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
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.
 
Upvote 0
SorryIm looking for the formula, somthing like:
Code:
=NOT(ISBLANK($I17))

But i need it to just find value two rows to left.
 
Upvote 0
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
 
Upvote 0
yN3NbpP
yN3NbpP
yN3NbpP
Screenshot-2019-08-08-at-13-10-42.png
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,195
Members
452,616
Latest member
intern444

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