Conditional Formatting for Multiple "Between" values

wunderweasel

New Member
Joined
Feb 19, 2020
Messages
2
Office Version
  1. 2013
  2. 2010
Platform
  1. Windows
I'm attempting to create a spreadsheet that imports .txt files from FedEx Ship Managerand then conditionally formats the zip code cells based on the ship zone they are in. Right now I have far too many conditional formatting scenarios and it causes excel to crash so I would like to simplify.

Here is an example of the Zip Code Zones:

77800 through 77899 = Zone 7 (Any Zip codes that fall between these two Zip codes will highlight blue)
77900 through 79599 = Zone 8 (Any Zip codes that fall between these two Zip codes will highlight green)
79600 through 80000 = Zone 7(Any Zip codes that fall between these two Zip codes will highlight blue)

There are over 100 of these ranges and I have a conditional format set for each one. Above I have 3 instances of a conditional format but I would like to know how to condense these to 2 as I have show below:

77800 through 77899, 79600 through 80000 = Zone 7 (Any Zip codes that fall between these two ranges of Zip codes will highlight blue)
77900 through 79599 = Zone 8 (Any Zip codes that fall between these two Zip codes highlight green).

Please halp!
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Welcome to the MrExcel board!

77800 through 77899, 79600 through 80000 =
Not sure how you will go with so many conditions, but for the one above, try this CF formula

=OR(A1=MEDIAN(A1,77800,77899),A1=MEDIAN(A1,79600,80000))
 
Upvote 0
Welcome to the MrExcel board!

Not sure how you will go with so many conditions, but for the one above, try this CF formula

=OR(A1=MEDIAN(A1,77800,77899),A1=MEDIAN(A1,79600,80000))

Worked perfectly. Thank you!
 
Upvote 0

Forum statistics

Threads
1,224,943
Messages
6,181,913
Members
453,071
Latest member
Gizmo2024

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