# Counts up to a value

#### KirovHC

##### New Member
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
31.3 KB · Views: 8

### Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},\$Z\$1:\$Z\$99,\$Y\$1:\$Y\$99),2,False) to lookup Y values to left of Z values.

#### Fluff

##### MrExcel MVP, Moderator
+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

#### KirovHC

##### New Member
+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?

#### Fluff

##### MrExcel MVP, Moderator
It checks to see if the sum has gone over the next band of 100.

#### KirovHC

##### New Member

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

#### Fluff

##### MrExcel MVP, Moderator
If you look at the mini sheet in my post, is that not what you asked for?

#### KirovHC

##### New Member

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

#### Fluff

##### MrExcel MVP, Moderator
Select B3 to the end of the data & in conditional formatting, new rule, use a formula, & enter the formula I showed.

#### KirovHC

##### New Member
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

#### Fluff

##### MrExcel MVP, Moderator
Are the values in col B actual numbers or text?
Put this in C2 copied down & what does it return
Excel Formula:
``=ISNUMBER(B2)``

Replies
12
Views
141
Replies
6
Views
108
Replies
1
Views
698
Replies
3
Views
212
Replies
7
Views
83

1,129,763
Messages
5,638,215
Members
417,014
Latest member
dualwieldbacon

### 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.

### Which adblocker are you using?

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

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