+ Reply to Thread
Results 1 to 7 of 7

Formula for angles in an IF statement

  1. #1
    Forum Contributor
    Join Date
    11-15-2011
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    163

    Formula for angles in an IF statement

    Hey All,

    Having a bit off a brain freeze on this.

    I am try to create an IF statement that returns a value of true or false based on an angle calculation.

    The statement will be IF Angle ABC < 180 Degrees returns True, else False.

    I have attached a screenshot to help explain.

    ax, bx, cx, ab & bc are variables. I hope this makes sense to some mathematician

    ABC Angle.JPG


    p.s. Mods I tried to edit typo in title!
    Last edited by FDibbins; 07-17-2015 at 06:51 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Formula for angles in an IF statement

    What are your inputs?

    Im thinking =if(A+B+C<180,TRUE,FALSE)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    11-15-2011
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    163

    Re: Formula for angles in an IF statement

    My inputs are in lengths:

    ac (horizontal line)
    ab (horizontal line)
    bx
    ax
    cx
    Last edited by rtcwlomax; 07-17-2015 at 06:59 PM.

  4. #4
    Forum Contributor
    Join Date
    11-15-2011
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    163

    Re: Formula for angles in an IF statement

    IF (ax + cx > bx, TRUE, FALSE)

    Edit: on second thoughts that is wrong!
    Last edited by rtcwlomax; 07-17-2015 at 07:25 PM.

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Formula for angles in an IF statement

    The sign of the cross product tells you whether the rotation of AB onto BC is positive (your thumb points out of the screen) or negative (your thumb points into the screen) when you do a right-hand rotation:

    Row\Col
    A
    B
    C
    D
    E
    1
    Pt
    x
    y
    2
    A
    0
    0
    B2:C4: Input
    3
    B
    0.5
    0.5
    4
    C
    1
    0
    5
    6
    AB
    0.5
    0.5
    B6: =B3-B2
    7
    BC
    0.5
    -0.5
    8
    9
    AB x BC
    -0.5
    B9: =B6*C7 - C6*B7
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Forum Contributor
    Join Date
    11-15-2011
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    163

    Re: Formula for angles in an IF statement

    Hey shg,

    Brilliant thanks. Don't remember this from my school days but it works nicely.

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Formula for angles in an IF statement

    You're welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Statement to return formula to the next row down, if formula's result if false?
    By AlphaRaveNZ in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-12-2015, 10:54 PM
  2. Statement to return formula to the next row down, if formula's result if false?
    By AlphaRaveNZ in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-12-2015, 10:54 PM
  3. IF statement formula
    By kyletenn in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-31-2014, 03:03 PM
  4. [SOLVED] Glitched formula? IF statement does not work because of a formula in a reference cell
    By Tworksheets in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-04-2013, 02:16 PM
  5. [SOLVED] Formula for Income Statement in financial statement
    By Zunit in forum Excel General
    Replies: 6
    Last Post: 07-02-2012, 02:21 PM
  6. Formula expected end of statement error, typing formula into cell as part of VBA macro
    By DavidGMullins@gmail.com in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-20-2006, 03:05 PM
  7. [SOLVED] formula: IF statement
    By gbeard in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-05-2005, 09:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1