Making a max value reset

Mlee107

New Member
Joined
Dec 10, 2016
Messages
3
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
Joined
Mar 9, 2014
Messages
3,628
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? :confused:
 
Upvote 0

Mlee107

New Member
Joined
Dec 10, 2016
Messages
3
I'm struggling to make sense of your formula - why are you using SUM with a single cell?



How? Why? :confused:

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.
 
Upvote 0

AliGW

Banned
Joined
Mar 9, 2014
Messages
3,628
OK - understood. Can you give us a selection of sample data? How does this look in your worksheet?
 
Upvote 0

Tetra201

MrExcel MVP
Joined
Oct 14, 2016
Messages
3,801
... 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)
 
Upvote 0

AliGW

Banned
Joined
Mar 9, 2014
Messages
3,628
Ditto, but I still haven't a clue what you were trying to do! I'm glad Tetra201 understood ... :LOL:
 
Upvote 0

Tetra201

MrExcel MVP
Joined
Oct 14, 2016
Messages
3,801
@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.
 
Upvote 0

Forum statistics

Threads
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.
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
Top