Use Conditional Formatting or VBA to higlight cells based on the demand covered by type of stock

FariAb

New Member
Joined
Jul 20, 2022
Messages
13
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Hi everyone! I have a situation, I have three types of Stock: regular stock, stock that is on its way and ordered stock. I also have a certain demand for each material each day. So I'd like to see how many days the demand is covered by each kind of stock. When it is working properly it should look something like this:
1659581461580.png

I'm not sure if it could be made through conditional formatting or if a VBA code would be needed, if the latter is required I was thinking to make the macro sum values until the amount of the first stock is reached and then color the cells or subtract each daily demand from the total stock. If someone could help me with that it's be amazing!
Thanks beforehand and have a great day!
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
1) Is it all the possibilies?
How about :
E2=4, F2=6 change to E2=6 and F2=10?
2) what do the color mean? pls explain why that color in each cell?
 
Upvote 0

Forum statistics

Threads
1,214,945
Messages
6,122,397
Members
449,081
Latest member
JAMES KECULAH

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