+ Reply to Thread
Results 1 to 4 of 4

ATAN Function returns FALSE (when IFERROR added) and DIV/0 when left

  1. #1
    Registered User
    Join Date
    10-17-2018
    Location
    Plymouth
    MS-Off Ver
    Excel 2021
    Posts
    96

    ATAN Function returns FALSE (when IFERROR added) and DIV/0 when left

    This is the formula I am having difficulty with. It works but it leaves the sheet looking scruffy if not filled out correctly. Can anyone help?

    =IF([@Exercise]="Hill Sprints",DEGREES(ATAN([@[Elevation (Km)]]/[@[Distance (Km)]])),"")
    Returns DIV/0 until Elevation and Distance are filled in.

    =IFERROR(IF([@Exercise]="Hill Sprints",DEGREES(ATAN([@[Elevation (Km)]]/[@[Distance (Km)]]))),"")
    Returns FALSE

    The cells/column where this function is located should leave a blank cell until Hill Sprints is selected in the Exercise column and values are inputted into the Elevation and Distance columns.


    Regards

  2. #2
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: ATAN Function returns FALSE (when IFERROR added) and DIV/0 when left

    What about:

    Please Login or Register  to view this content.
    ?

    WBD
    Office 365 on Windows 11, looking for rep!

  3. #3
    Registered User
    Join Date
    10-17-2018
    Location
    Plymouth
    MS-Off Ver
    Excel 2021
    Posts
    96

    Re: ATAN Function returns FALSE (when IFERROR added) and DIV/0 when left

    Quote Originally Posted by WideBoyDixon View Post
    What about:

    Please Login or Register  to view this content.
    ?

    WBD
    That is much cleaner. Thankyou. May I ask what is the N for in the formula?

  4. #4
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: ATAN Function returns FALSE (when IFERROR added) and DIV/0 when left

    N() gives the number representation of the cell. It returns zero for blank cells.

    WBD

+ 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. [SOLVED] IF Function returns False instead of 0
    By BeeGee in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 12:05 PM
  2. [SOLVED] IF Function returns False instead of 0
    By Peo Sjoblom in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 10:05 AM
  3. IF Function returns False instead of 0
    By Peo Sjoblom in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 06:05 AM
  4. [SOLVED] IF Function returns False instead of 0
    By Peo Sjoblom in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 04:05 AM
  5. IF Function returns False instead of 0
    By BEEJAY in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  6. [SOLVED] IF Function returns False instead of 0
    By BEEJAY in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  7. IF Function returns False instead of 0
    By BEEJAY in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  8. [SOLVED] IF Function returns False instead of 0
    By BEEJAY in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 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