Correcting values > 180 but < 359, by finding the reverse bearings but leaving values that are <180 but >0 the same.

Bobby1980

New Member
Joined
May 20, 2018
Messages
15
Hi all,

I was wondering if someone was able to correct what I a trying to do and help me please.

I would like to keep the values >0 but <180 the same, but values >180 and <359 I would like it to find the reverse bearing.


=IF(AND(O80>=0,O80<=359),O80+<wbr>0,IF(O80<0,O80+180,IF(O80>360,<wbr>O80-180)


This is what I was trying,


Kind Regards,

Rob
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Hey,

Gave that a go but it came came up with a "False" statement, is there anything else at all that anyone could possibly suggest?
 
Upvote 0
Hi,

I think the formula in Tetra's Post #2 is meant as a "stand alone" formula for what you were asking, I "think" you might have inserted it within Your IF formula (otherwise, can't see how you can get a FALSE return).

I'm not entirely sure if this will produce Exactly the results you want (the description and your formula in OP doesn't exactly match up):


Book1
OPQ
80-50130
8100
82100100
83180180
841811
8520020
86359179
87360180
Sheet69
Cell Formulas
RangeFormula
Q80=SUM(O80,IFERROR(LOOKUP(O80,{0,181},{0,-180}),180))
 
Last edited:
Upvote 0
It works with just a value ie
1
2
2
3
3
etc
but if I say the value of that cell is =a1 for example the =MOD(o80-180) doesn't work and returns a false value.

Can you possibly suugest anything that may overcome this at all?
 
Upvote 0
It works with just a value ie
1
2
2
3
3
etc
but if I say the value of that cell is =a1 for example the =MOD(o80-180) doesn't work and returns a false value.

Can you possibly suugest anything that may overcome this at all?

Unless that's a typo in red, Tetra's formula is =MOD(O80,180) with a "comma", Not a "minus".

Also, did you try my formula in Post #6 ??
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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