Formula or macro

Fraserj

Board Regular
Joined
Nov 29, 2015
Messages
63
I have a cell H5 which the amount is changeable dependent on the day. In column b I fill these cells with numbers from 1-20 but need it to give me some sort of notice to remind others that we have reached whatever number is in Cell H5 (and multiples of that number) e.g H5=70....70, 140, 210,280 etc will flag up to say.
These flags can be with notes, colours whatever it takes just noticable. If someone could help that would be great
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
How about conditional formatting that would colour the cell if it's a multiple of H5, would that work for you?
 
Upvote 0
How about conditional formatting that would colour the cell if it's a multiple of H5, would that work for you?
I'm happy with that... but sometimes the number wont actually be 70... it might be 72 or something like that. Then I need it to only colour on that one cell. I hope that makes sense, as it could end up being 70 on the 1st cell that is completed or on the 70th cell, just random dependent on the situation unfortunately
 
Upvote 0
Ok select col B from the first row, to the last row you want this to work on > Conditional formatting > New rule > use a formula > enter
=AND(B1<>"",MOD(B1,$H$5)=0)
Select your format > Ok
Change the B1 to the first selected cell in the region you selected.

Book1
BH
111
21
333
410
51113
612
713
814
915
1016
1117
1218
1319
1420
1521
1626
1725
1839
1960
Data
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B1:B28Expression=AND(B1<>"",MOD(B1,$H$5)=0)textNO
 
Upvote 0
Ok select col B from the first row, to the last row you want this to work on > Conditional formatting > New rule > use a formula > enter
=AND(B1<>"",MOD(B1,$H$5)=0)
Select your format > Ok
Change the B1 to the first selected cell in the region you selected.

Book1
BH
111
21
333
410
51113
612
713
814
915
1016
1117
1218
1319
1420
1521
1626
1725
1839
1960
Data
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B1:B28Expression=AND(B1<>"",MOD(B1,$H$5)=0)textNO
If the number in cell B became higher than 13... say 15 and there was no 13 would it still light up Green? Cell b numbers will all add together from cell a ..
22Multiples of 13
35
712
315 (I'd want this green)
8

3
23

26 (also green)




Sorry for the hassle
 
Upvote 0
Select B2 downwards and use this formula
=AND(B2<>"",MOD(B2,$H$5)<MOD(B1,$H$5))
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,214,987
Messages
6,122,613
Members
449,090
Latest member
vivek chauhan

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