Conditional Formula

kiki777

New Member
Joined
May 25, 2023
Messages
5
Office Version
  1. 365
Platform
  1. Windows
What conditional formula can I use that will take use cell D3 (number in the orange frame box), then highlight the row base on the value?

  1. Example Below: #16144 should highlight row 17?
  2. Example: If the # is 42,000 then highlight row 2, but if its right under 45000 then highlight 3



View attachment 92334
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
What conditional formula can I use that will take use cell D3 (number in the orange frame box), then highlight the row base on the value?

  1. Example Below: #16144 should highlight row 17?
  2. Example: If the # is 42,000 then highlight row 2, but if its right under 45000 then highlight 3



View attachment 92334
 

Attachments

  • Screenshot 2023-05-25 212039.png
    Screenshot 2023-05-25 212039.png
    249.4 KB · Views: 9
  • Screenshot 2023-05-25 212039.png
    Screenshot 2023-05-25 212039.png
    249.4 KB · Views: 9
Upvote 0
Welcome to the Board! I think there is an issue with your data table, specifically the values in column C. The numbers if the first 6 rows are increasing, then they drop down again (so the whole column is NOT in order).
You have something like this now:
1685101801323.png


Notice how the value in row 7 is less than all 6 of the rows that come before it, and and that the value in row 1 also appears in row 10.
I am guessing that this a typo on your part, and this is what you really intended, so that all values are in increasing order:

1685101905624.png


If that is correct, here is how you can apply Conditional Formatting to do what you want:
1. Select rows 7-26
2. Go to Conditional Formatting and select "New Rule"
3. Select the "Use a formula to determine which cells to format" option
4. Enter this following formula:
Excel Formula:
=AND($D$3>$C6,$D$3<=$C7)
5. Click on the Format button and choose your desired highlighting color
6. Click "OK"

I think this should do what you want.
 

Attachments

  • 1685101999371.png
    1685101999371.png
    4.6 KB · Views: 4
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,906
Members
452,366
Latest member
TePunaBloke

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