+ Reply to Thread
Results 1 to 5 of 5

Mileage Form...Need help with auto populating total miles

  1. #1
    Registered User
    Join Date
    08-09-2017
    Location
    California
    MS-Off Ver
    MS Office Pro Plus 2010
    Posts
    3

    Question Mileage Form...Need help with auto populating total miles

    Hi! Hoping to get some help. I have a mileage form I'm currently working on. I didn't build it but I'm trying to help someone update it.
    They've created a drop down list too on the first worksheet. When two sites are selected the total miles auto populates and so does a total.
    We recently added a few new sites. I was able to figure out the data validation part of it to add the new sites to the drop down.
    However, their mileage is not calculating. Any suggestions would be welcomed and greatly appreciated. Thank you!!

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Mileage Form...Need help with auto populating total miles

    You need to expand the ranges in the calculation to include the two new locations you've added.

    In the hidden column M on the first sheet you have this formula in row 8.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Update that to this and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Worth noting that you could use dynamic named ranges to negate the need to adjust the formulas each time you add (or remove) a location.
    It would mean a slight adjustment to the layout on the second sheet, but nothing drastic.

    BSB
    Last edited by BadlySpelledBuoy; 08-10-2017 at 02:26 AM.

  3. #3
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Mileage Form...Need help with auto populating total miles

    Try this formula:
    Please Login or Register  to view this content.
    I placed it into N8, and it seemed to work.

    I hope this helps, please let me know!

    Regards,

    David

    If this has been helpful
    - Please click on the *Add Reputation button at the bottom left.

    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".


  4. #4
    Registered User
    Join Date
    08-09-2017
    Location
    California
    MS-Off Ver
    MS Office Pro Plus 2010
    Posts
    3

    Re: Mileage Form...Need help with auto populating total miles

    Thank you so much!! I saw that there were hidden columns but when I tried to unhide a few it didn't work for me.
    I appreciate your speedy reply!! In regards to the use of dynamic named ranges, I'd love to learn if you could show me what you mean.
    Thanks again!!! -CG

  5. #5
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Mileage Form...Need help with auto populating total miles

    BSB has a good point regarding the named ranges.

    Let me point you to a website which covers the topic very well. I find Debra Dalgleish very helpful.

    http://www.contextures.com/xlNames01.html

    Regards,

    David

+ 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. Replies: 5
    Last Post: 08-30-2013, 04:32 PM
  2. calculate TOTAL mileage (first 2 miles set rate) all miles thereafter set rate
    By infinite2006 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 08-30-2013, 08:26 AM
  3. [SOLVED] Calculate Mileage total for a given day
    By alarm_guy1 in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 11-12-2012, 09:02 AM
  4. Replies: 3
    Last Post: 03-21-2012, 11:40 PM
  5. Excel 2007 : Mileage total based on different dates
    By Not You in forum Excel General
    Replies: 6
    Last Post: 02-05-2012, 03:01 PM
  6. [SOLVED] chart: mileage MPG Fuel total paid
    By Nightowl in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 03-11-2006, 03:10 PM
  7. How to use miles per hour and mileage to estimate travel time
    By OhioSnowBird13 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-21-2006, 10:15 AM
  8. Replies: 1
    Last Post: 02-14-2005, 12:06 AM

Tags for this Thread

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