Conditional Highlight: IF Column A is 12345 AND Column B is Range of 50-100

ake117

New Member
Joined
Oct 31, 2016
Messages
2
Hi, I am totally new to VBA. I am one of girls who can't code. =( I am so glad that I found this website. It has a lot of valuable information. I spend a whole day going through a lot of posts on this website to figure out how to write codes for a simple(?) task. (I thought I was simple until I was trying to do it myself)

The task is;

Column A Column B
2917011 179
187384365
186790229
20610345
12999081
121584756
19933364

<colgroup><col><col></colgroup><tbody>
</tbody>

I have an extensive raw data file with over 4000 rows. I want to highlight a entire row if column A is certain number (ex. 2917011) AND column B is outside of range (ex. 75-125). The problem is that different monthly reports consist of all numbers in different orders. I need codes that works universally on different reports.

I would greatly appreciate any help.
Thank you in advance.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Thank you FDibbins for the reply.

However,

=and(A1=2917011,OR(B1<75,B1>125))

This will only work with one report. The same value "2917011" will be in random number (could be A1 or A2 --- or A4000) on column A in different reports. I think this is why I cannot find the simple solution for it. I need a universal one that will work for all of the reports.
 
Upvote 0
Thank you FDibbins for the reply.

However,

=and(A1=2917011,OR(B1<75,B1>125))

This will only work with one report. The same value "2917011" will be in random number (could be A1 or A2 --- or A4000) on column A in different reports. I think this is why I cannot find the simple solution for it. I need a universal one that will work for all of the reports.

Then reference the cell that the value is in...
=and(A1=cell-containing-value,OR(B1<75,B1>125))
 
Upvote 0

Forum statistics

Threads
1,215,330
Messages
6,124,308
Members
449,152
Latest member
PressEscape

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