Counts up to a value

KirovHC

New Member
Joined
Jan 19, 2021
Messages
32
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
I would like to count up to a certain value, if the value is reached then color the cell and continue the count until the value is reached again.
In the following example the fixed value is 100, I hope to make you understand what exactly I need.
Thanks in advance to anyone who wants to help me
 

Attachments

  • Cattura.JPG
    Cattura.JPG
    31.3 KB · Views: 9

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
How about
+Fluff 1.xlsm
AB
1
220
350
434
550
646
7
8
Main
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B3:B8Expression=INT(SUM(B$2:B2)/100)>INT(SUM(B$1:B1)/100)textNO
 
Upvote 0
Solution
How about
+Fluff 1.xlsm
AB
1
220
350
434
550
646
7
8
Main
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B3:B8Expression=INT(SUM(B$2:B2)/100)>INT(SUM(B$1:B1)/100)textNO

Not sure if that's exactly what i'm looking for.
Could you explain the logic of the formula?
 
Upvote 0
It checks to see if the sum has gone over the next band of 100.
 
Upvote 0
It checks to see if the sum has gone over the next band of 100.
What I would like is that it automatically add the difference of the cells in the next sum.
I mean, the sum is unlikely to get to exactly 100, what I would like is for the difference to be added to the count.
EDIT: i think it has to be done with visual basic, i don't think conditional formatting can fulfill the purpose
 
Upvote 0
If you look at the mini sheet in my post, is that not what you asked for?
 
Upvote 0
If you look at the mini sheet in my post, is that not what you asked for?
in the example it is what I am looking for but I can not put it into practice, sorry but I am very rusty
 
Upvote 0
Select B3 to the end of the data & in conditional formatting, new rule, use a formula, & enter the formula I showed.
 
Upvote 0
Select B3 to the end of the data & in conditional formatting, new rule, use a formula, & enter the formula I showed.
What's wrong?

Nuovo Foglio di lavoro di Microsoft Excel.xlsx
AB
1DATECOUNT
201-gen20
302-gen120
403-gen34
504-gen50
605-gen46
706-gen
Foglio1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B3:B6Expression=INT(SUM(B$2:B2)/100)>INT(SUM(B$1:B1)/100)textNO
 
Upvote 0
Are the values in col B actual numbers or text?
Put this in C2 copied down & what does it return
Excel Formula:
=ISNUMBER(B2)
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

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