+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Problem with errors when optional values are not used

  1. #1
    Registered User
    Join Date
    12-24-2010
    Location
    Ohio
    MS-Off Ver
    Excel 2007
    Posts
    89

    Problem with errors when optional values are not used

    I hope the heading is the correct description of my problem

    What the worksheet does is find the distances between given locations using latitude and longitude.
    (Don't worry, the math is already done)

    There is the Departure and Destination data. These, obviously, are needed.
    The math calculates the values from the Departure to Destination.

    There is the option to include, up to nine, stops in-between the Departure and Destination.

    Here the math would calculate the distance from the Departure to the first stop, then the distance from the first stop to the second, etc. until the Destination is reached.

    If all the optional stops are included then everything works well.
    The problem is if there are fewer than nine stops then errors occur.

    I can't figure the logic if there are fewer than the nine stops.

    Any help would be greatly appreciated.

    George
    Attached Files Attached Files

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: Problem with errors when optional values are not used

    Try this in M6
    Please Login or Register  to view this content.
    basically it is
    =iferror(your formula),"")

    The result becomes blank if the formula errors or you can change "" to an actual value.

  3. #3
    Registered User
    Join Date
    12-24-2010
    Location
    Ohio
    MS-Off Ver
    Excel 2007
    Posts
    89

    Re: Problem with errors when optional values are not used

    Hey Dave,

    Thanks for the fix. Works great!

    I reworked the sheet, now it does what I need.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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