# Making a max value reset

#### Mlee107

##### New Member
Hi everyone!

My first time posting here as I seem to have hit a wall haha

I'm trying to get the number to reset. So If the number goes above 360 to get it to start counting from 1 again.

My current formula is:
=IF(SUM(D2)>=360,360,SUM(D2))+82.5

I am able to get the max number to 360 but it should be 82.5

For example if my value was 300+82.5 the outcome would be 22.5

Any help is greatly appreciated!

### Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

#### AliGW

##### Banned
I'm struggling to make sense of your formula - why are you using SUM with a single cell?

For example if my value was 300+82.5 the outcome would be 22.5

How? Why?

#### Mlee107

##### New Member
I'm struggling to make sense of your formula - why are you using SUM with a single cell?

How? Why?

You know I don't even know why I have SUM there haha.. I'm really new to Excel.

The reason for the max being 360 is that it's for (bearing / degrees). So if the number is greater than that I need it to reset back to zero as if it were a circle.

#### AliGW

##### Banned
OK - understood. Can you give us a selection of sample data? How does this look in your worksheet?

#### Tetra201

##### MrExcel MVP
... The reason for the max being 360 is that it's for (bearing / degrees). So if the number is greater than that I need it to reset back to zero as if it were a circle.
Is this what you need?

=MOD(D2+82.5,360)

#### Mlee107

##### New Member
Is this what you need?

=MOD(D2+82.5,360)

That's the one! Works perfect.

Thanks for the bloody fast help guys. Appreciate it!

You are welcome.

#### AliGW

##### Banned
Ditto, but I still haven't a clue what you were trying to do! I'm glad Tetra201 understood ...

#### Tetra201

##### MrExcel MVP
@AliGW:

First: What a nice hat!

Second: The '360' from Post #1 gave me some suspicions. The 'bearing / degrees' from Post #3 made everything clear.

#### AliGW

##### Banned
It hasn't made anything clearer to me, I'm afraid!

Replies
3
Views
413
Replies
7
Views
501
Replies
3
Views
716
Replies
3
Views
2K
Replies
2
Views
490

1,191,719
Messages
5,988,298
Members
440,148
Latest member
sandy123

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