+ Reply to Thread
Results 1 to 7 of 7

cell to = last time in column

  1. #1
    Registered User
    Join Date
    02-20-2012
    Location
    A, A
    MS-Off Ver
    Excel for mac 2011
    Posts
    55

    cell to = last time in column

    Hi guys and gals,
    I am having difficulty in getting a cell to show the last time entry in a range, and to remain blank if no dates have been added yet.

    example
    column A

    15:30
    15:40
    17:31
    19:29

    19:29 (this cell to show last time entered in range (but to stay blank if no dates have been entered) or show 17:31 if 19:29 has not been entered

    I have found using time in a spreadsheet rather taxing on the ol grey matter, but this one is really doing my head in.

    I will be very grateful if anyone can help me with this, a formula would be better for me than a macro,

    thank you for taking the time to read this
    cheers
    Rob

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: cell to = last time in column

    you mention dates ,but assuming time with times starting in a1
    =IF(COUNT(A1:A1000),LOOKUP(99^99,A1:A1000),"") cell formatted time
    Last edited by martindwilson; 10-10-2012 at 07:16 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    02-20-2012
    Location
    A, A
    MS-Off Ver
    Excel for mac 2011
    Posts
    55

    Re: cell to = last time in column

    Thank you so much,
    yes I did mean time, I think the hours are starting to tell, must get some sleep soon, but now that you have sorted the missing piece of puzzle , I think I may be in for a long night.

    works perfect, thank you again.

    cheers
    Rob

  4. #4
    Registered User
    Join Date
    02-20-2012
    Location
    A, A
    MS-Off Ver
    Excel for mac 2011
    Posts
    55

    Re: cell to = last time in column

    one last question, does the 99^99, tell the machine that it is Time format that it is looking for

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: cell to = last time in column

    no its just a very big number ,time is stored as numbers, if lookup cant find a match it returns the last number it finds

  6. #6
    Registered User
    Join Date
    02-20-2012
    Location
    A, A
    MS-Off Ver
    Excel for mac 2011
    Posts
    55

    Re: cell to = last time in column

    cool thank you
    I am a little tired and cant find my notes, please can you remind me how to sum a range but leave cell blank if no data is entered

    1
    2
    3
    4

    10 (blank if no numbers in range)

    cheers
    rob

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: cell to = last time in column

    =if(sum(range)=0,"",sum(range))
    or
    =SUMIF(range,"<>""")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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