Welcome to the Excel Forum

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Please Register to Remove these Ads

Please Register to Remove these Ads



Reply
  #1  
Old 07-03-2009, 07:53 PM
Bod Bod is offline
Registered User
 
Join Date: 03 Jul 2009
Location: NYC, USA
MS Office Version:Excel 2003
Posts: 2
Bod is becoming part of the community
Clock Arithmetic or completely wrong track?

Please Register to Remove these Ads

Hi,

Kind of admitting defeat by posting this but this has me stumped. Can't find solution on web but maybe searching on wrong terms.

Here's my prob....

I'm using Excel to plot the coordinates of circles and arcs for loading into Google earth. I want to build the arc based on a center bearing and width left/right of the bearing. Eg like the sketch below an arc on bearing 60 and +/-40 degrees:
http://i40.tinypic.com/25tb0g8.gif

My starting approach was simply to add/minus the left/right value (eg 40) to the center bearing, using MOD function to roll over. That works fine most of the time as I can then use an IF statement to evaluate if a particular bearing is within the arc (i.e if(degreevalue>=centerbearing-widthvalue....

Where I'm having probs is where the arc crosses over the "roll-over" point in the circle.

So, I have a list of degree values, 0 to 359. I have a centre bearing (eg 60) and a left/right degrees value (eg 40).

What formula can I use to evaluate whether a degree value is within the arc?


Sorry if this isn't clear
Reply With Quote
  #2  
Old 07-04-2009, 03:22 AM
ConneXionLost's Avatar
ConneXionLost ConneXionLost is offline
Valued Forum Contributor
 
Join Date: 11 Mar 2009
Location: Victoria, Canada
MS Office Version:2003
Posts: 576
ConneXionLost is attaining expert status ConneXionLost is attaining expert status
Re: Clock Arithmetic or completely wrong track?

Hi Bod,

If your list of degree values starts at 0 degrees in cell A1, and increases down the column until it reaches 359 degrees in cell A360. Place your center bearing value is in cell D1, and the width value in cell E1.

Place this formula in cell B1, and auto-fill it down to cell B360:

Code:
	
	=IF(IF(ABS($D$1-A1)>=180,180-(ABS($D$1-A1)-180),ABS($D$1-A1))>$E$1,"No","Yes")
HTH

Cheers,
__________________
Docendo discimus.
Reply With Quote
  #3  
Old 07-04-2009, 10:59 AM
Bod Bod is offline
Registered User
 
Join Date: 03 Jul 2009
Location: NYC, USA
MS Office Version:Excel 2003
Posts: 2
Bod is becoming part of the community
Re: Clock Arithmetic or completely wrong track?

Wow! Thanks, yes that worked like a treat.
Reply With Quote


Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump