+ Reply to Thread
Results 1 to 6 of 6

Tracking Totals In A Single Cell

  1. #1
    Registered User
    Join Date
    08-05-2013
    Location
    Military
    MS-Off Ver
    Professional Plus 2010
    Posts
    3

    Tracking Totals In A Single Cell

    Alright everyone, I'm deployed and got tasked to creat an excel spreadsheet to track total miles, hours, and fuel on our vehicles. The idea is that we can enter the info along with a date in one line when we fuel up, then go to the next line at the next fuel stop. Then have the total number of miles/hours for the month total up in one cell each at the bottom (i.e. 2000 miles to 2100 miles, to 2200 miles would total to 200 at the bottom). I want to keep it "Army Proof" (Go Air Force, no offence to any Army on the forum), so I'll need to figure out how to lock the cells with the formulas too. Thanks!

    Date Miles Hours Litres
    1-Aug-13 22430 734 41.4
    4-Aug-13 22462 745 59.4
    5-Aug-13 22474 751 26.8


    Totals 44 17 127.6
    Last edited by GuyWhoSucks@Excel; 08-05-2013 at 07:08 AM.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Tracking Totals In A Single Cell

    In those circumstance, I find it useful to put the totals at the TOP of the data. That way there's no chance of someone overwriting or deleting the row when entering data.
    If you give us some sample data, we can tailor a possible solution for you.

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    08-05-2013
    Location
    Military
    MS-Off Ver
    Professional Plus 2010
    Posts
    3

    Re: Tracking Totals In A Single Cell

    I can track the totals at the top, on the side, pretty much where ever. Update: I'm going to need to track MPG and Gal/Hr as well. Still trying to get those to auto update as well when the info is entered under miles/hours/liters columns, but I keep getting "#DIV/0!" when I try to drag the formula through to the cells below. Which I get because it's trying to divide by 0, but I'm sure there's a way to work it I'm just not familiar with. I did get the liters and gallons to convert and total at the bottom without too much trouble.Spreadsheet.jpg
    Attached Images Attached Images
    Last edited by GuyWhoSucks@Excel; 08-05-2013 at 07:38 AM.

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Tracking Totals In A Single Cell

    Here's an approach to try...
    For total miles driven...where the miles are entered in Col_B, beginning in cell B2
    =MAX(B:B)-Index(B:B,2)

    I'd use MIN in the second part, but somebody might enter a zero someplace and ruin the results.

    Does that help?

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,626

    Re: Tracking Totals In A Single Cell

    Pl see attached file.
    Attached Files Attached Files
    Last edited by kvsrinivasamurthy; 08-05-2013 at 07:42 AM.

  6. #6
    Registered User
    Join Date
    08-05-2013
    Location
    Military
    MS-Off Ver
    Professional Plus 2010
    Posts
    3

    Re: Tracking Totals In A Single Cell

    Thanks for the help. I did end up moving the totals off to the side per Ron's advice, but both solutions worked like a champ. Ron, were you referencing using MIN to calculate the MPG, etc. issues? I've attached a copy of what the workbook looks like now for reference. Getting the MPG and Gal/Hr is still getting the best of me as well as keeping those two averaged in the last column. Also, are there tutorials on this site that can show me the things you're recommending?
    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)

Similar Threads

  1. [SOLVED] How to subtract single cells with double digits into a single digit of a single cell.
    By greenfox74 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-11-2021, 02:05 AM
  2. [SOLVED] Tracking internal rejections with multiple operators on single machine
    By greggatz in forum Access Tables & Databases
    Replies: 1
    Last Post: 06-11-2013, 12:46 AM
  3. Replies: 0
    Last Post: 01-18-2012, 02:06 PM
  4. Replies: 4
    Last Post: 11-15-2011, 11:52 PM
  5. [SOLVED] donation tracking with sub totals for donor
    By sfwprstn in forum Excel General
    Replies: 1
    Last Post: 02-17-2006, 08:45 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