Conditional Formatting - when cell part meets target

sandwichgirl

New Member
Joined
Aug 13, 2007
Messages
31
Office Version
  1. 365
Platform
  1. Windows
Another help question that I'd like to see if possible please?

I have conditional formatting that colours a cell if the value of the cell is fully covered by the available stock - I have no problem with this, it all works well, but, the following cell which is currently white, may be partially covered with the stock, but currently shows as not covered at all - is there a way to set up CF so that it has a fill effect (orange/white) to indicate that the stock partially covers that volume?

I've included a screen grab of the current CF formula and how it shows on the sheet.


1635928974424.png


1635929109527.png

TIA, again. :)
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
A clue as to what AG6, O7 and S7 refer to would be useful. There is nothing to tell us which is the current stock level and which is the value of interest to compare to.

Typically the formula would be =AND(stock>0, stock<order)
 
Upvote 0
A clue as to what AG6, O7 and S7 refer to would be useful. There is nothing to tell us which is the current stock level and which is the value of interest to compare to.

Typically the formula would be =AND(stock>0, stock<order)
Whoops sorry, here you go. :giggle:

A screen shot showing a wider area - I can't do a mini sheet unfortunately. The formatting is based on dates which are calculated based on stock volume vs forecasted volume, so when the date tips into the next week ie 22/12 I'm trying to see if I can fill that cell to indicate a partial coverage. It's a big sheet so there are some hidden columns that don't impact on this query.

The forecast is updated twice a week (Tue/Thur) which drives the week dates so they don't follow a more usual start day and as an example I'd like to see if I can shade AO17 to show that the stock carries on into this week.

Hope this makes sense and Thank you.

1635932246449.png
 

Attachments

  • 1635930052098.png
    1635930052098.png
    38.4 KB · Views: 5
  • 1635931130540.png
    1635931130540.png
    56.4 KB · Views: 4
  • 1635932117536.png
    1635932117536.png
    53.2 KB · Views: 4
  • 1635932145364.png
    1635932145364.png
    52.6 KB · Views: 6
Upvote 0
For AG7, something like this should work
Excel Formula:
=AND(AG$6<$S7,AG$6>$S7-7)
You may need to play around with the adjustments adding to / subtracting from $S7 to get exactly what you want depending on the correct day for the cut off.
 
Upvote 0
Solution
For AG7, something like this should work
Excel Formula:
=AND(AG$6<$S7,AG$6>$S7-7)
You may need to play around with the adjustments adding to / subtracting from $S7 to get exactly what you want depending on the correct day for the cut off.
fab, thank you - just the job.
 
Upvote 0

Forum statistics

Threads
1,214,978
Messages
6,122,549
Members
449,089
Latest member
davidcom

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