Conditional formatting with Offset?

Drrellik

Well-known Member
Joined
Apr 29, 2013
Messages
842
Office Version
  1. 365
  2. 2016
  3. 2013
  4. 2011
  5. 2010
Platform
  1. Windows
I want to highlight the cell directly above a certain value in one column.
A B
1 2
2
3
4
5
6
7
8
2
9
10
2
11
12
2
13

my value would be 2 and I want to highlight 1,8,10, & 12

hope that helps

~DR
 
Arthurbr,

Yours does work after I changed the cell reference, the formula is basically the same I just did not understand what it was doing when I tried yours, both of you thank you for the help and now lets win the lottery.
~DR

Hi Drrellik,

If you have only one column, both formulas do the job.

But if you have two or more columns, then you have to use one CF for each column to the Arthurbr's formula work.

Try the example of the post #9 and tell me the result.

Markmzz
 
Upvote 0

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Markmzz,

My original post have one column with a reference cell, so you are correct the first solution did not do what I wanted because I selected my entire range starting at A2 and then created the CF =A2=$B$2 where my value was and it only selected the cells with a matching value, after you posted about selecting the cell above i.e. T8 vs T9 and creating the CF I was able to make it work, I even moved the reference cell to the top of the column, so as the top cell value changes so does the highlighted cells.

either way thank you both for the help I understand CF a little bit better now and it is working.

~DR
 
Upvote 0
Arthurbr,

Yours does work after I changed the cell reference, the formula is basically the same I just did not understand what it was doing when I tried yours, both of you thank you for the help and now lets win the lottery.

~DR

Didn't Win the lottery, but I did win @ the lottery turned 16 into 244 :):):)
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,996
Members
452,373
Latest member
TimReeks

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