+ Reply to Thread
Results 1 to 2 of 2

Identifying the first number in a row

  1. #1
    Registered User
    Join Date
    02-27-2013
    Location
    Idaho
    MS-Off Ver
    Excel 2007
    Posts
    3

    Identifying the first number in a row

    I am working to create a fuel log for my company that shows when each of our vehicles purchased fuel, how much fuel was purchased, and what the odometer read at the time of fueling. Using this information, I am trying to show the MPG for each vehicle. FOr the miles, I am using a combination of Min and Max to calculate how many miles each vehicle went. To calculate the toatl amount of fuel used, I need to disregard the fuel that was put into the vehicle on the first fueling, but depending on the vehicle it varies as to what day it fueled. Below is an exemple of how the table is set up. I know I could use an if function to find the first instnace where the number is great than 0 and then summing the rest of the row, but I wanted to see if there was any simpler method for removing the first number from the sum of the row.


    ________________Jan 1___Jan 2____Jan3____Jan 4____Jan 5____Jan 6___Jan 7
    65______Type____________________________________Gas_____________Gas
    ________Gallons__________________________________18______________22
    ________Miles____________________________________30172___________30553
    74______Type____________Gas_____Gas_____Gas_____________Gas
    ________Gallons__________16______16______9_______________18
    ________Miles____________300479__300700__300781__________301030
    Last edited by bowecas2; 02-27-2013 at 02:20 PM.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Identifying the first number in a row

    To my opinion it's easier if you rearange your data.

    Put the data in the rows (e.g. column A)

    Use one column for the car (65 or 74) (e.g. column B)

    Use one column for Type / Gallons / Miles (e.g. C / D / E)

    Then you be able to use pivot table to (e.g.) count your data.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

+ 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