+ Reply to Thread
Results 1 to 6 of 6

Thread: cell data

  1. #1
    Registered User
    Join Date
    10-23-2011
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    4

    cell data

    hi can anyone please help
    I have data in say column g1 to g30 which represents car mileage for each day of the month and I wish to view in another cell the end mileage of say g30 but becuse there are a different amount of days in month the end cell could be for ex g30 or say g29 is there a way to display the last entry of a column to anothr cell. Many thanks
    Last edited by byron jones; 10-23-2011 at 04:21 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    1,943

    Re: cell data

    If you could post an example workbook then that would be great.

    Are the mileages per day or are they a cumulative total mileage?

    If it's per day then just =SUM(G1:G31) will work, because the SUM will ignore any blank lines at the end of the month.

    If it's a cumulative mileage then probably =MAX(G1:G31)

  3. #3
    Registered User
    Join Date
    10-23-2011
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: cell data

    Quote Originally Posted by Andrew-R View Post
    If you could post an example workbook then that would be great.

    Are the mileages per day or are they a cumulative total mileage?

    If it's per day then just =SUM(G1:G31) will work, because the SUM will ignore any blank lines at the end of the month.

    If it's a cumulative mileage then probably =MAX(G1:G31)
    Hi thanks for the reply here is a copy to where I am at the moment there is a macro in the sheet so you will have to accept macros all it does is move to each cell and then down after hitting the return cheers
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    1,943

    Re: cell data

    OK, so your end mileage formula is =MAX(F2:F35)

    In the E column you could also use the formula =IF(A2<>"",F1,"")

    That would put the starting mileage in for you automatically.

  5. #5
    Registered User
    Join Date
    10-23-2011
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: cell data

    Quote Originally Posted by Andrew-R View Post
    OK, so your end mileage formula is =MAX(F2:F35)

    In the E column you could also use the formula =IF(A2<>"",F1,"")

    That would put the starting mileage in for you automatically.
    Thanks for the first part that looks ok, but where you say the formula in the E column would put the start mileage in for the next day if I have done any private miles between finishing on the night and starting the next morning on business they need to be added up and totalled at the bottom on the page where it says private mileage for this period.

    The idea of the spread sheet is so that the company can charge me for private miles for use of the company car and they need documentation for tax purposes. I have tried to explain it best as I can and hope you understand what I am after.

    Many thanks for your help up to now.

  6. #6
    Registered User
    Join Date
    10-23-2011
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: cell data

    Quote Originally Posted by byron jones View Post
    Thanks for the first part that looks ok, but where you say the formula in the E column would put the start mileage in for the next day if I have done any private miles between finishing on the night and starting the next morning on business they need to be added up and totalled at the bottom on the page where it says private mileage for this period.

    The idea of the spread sheet is so that the company can charge me for private miles for use of the company car and they need documentation for tax purposes. I have tried to explain it best as I can and hope you understand what I am after.

    Many thanks for your help up to now.
    Ihave sorted out the last bit so i'm done now thanks for the speedy reply and help
    Last edited by byron jones; 10-23-2011 at 11:46 AM.

+ 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.2.0