+ Reply to Thread
Results 1 to 6 of 6

Auto fill a cell

  1. #1
    Forum Contributor
    Join Date
    02-25-2013
    Location
    Cleveland, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    116

    Auto fill a cell

    Hi!
    This is my very first time to post a question, so please excuse any errors.
    I have a list of numbers with extentions, basically they are reference numbers for actvities. They are generated through a report and show up like this 1-1105-1, 1-1105-2, 1-1105-3, etc., What I am looking for is to auto fill the adjacent cell with the time, so it would read as 1-1105-1 in cell A1 and 8:30 AM in Cell B1.
    Here are the list of extensions (the first digit will always be 1dash "-", the next four could change, followed by another dash "-", and then the digits
    -1 8:30 AM
    -2 9:00 AM
    -3 10:00 AM
    -4 10:30 AM
    -5 11:30 AM
    -6 12:00 PM
    -7 12:30 PM
    -8 1:30 PM
    -9 2:00 PM
    -10 2:30 PM

    Thank you very much.

  2. #2
    Valued Forum Contributor
    Join Date
    09-25-2011
    Location
    Eastbourne, England
    MS-Off Ver
    Excel 2010
    Posts
    1,089

    Re: Auto fill a cell

    Hi stpeter

    Does the attached meet your requirements?

    Regards
    Alastair
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    02-25-2013
    Location
    Cleveland, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    116

    Re: Auto fill a cell

    Hi Alastair:
    First thank you for your response and second, sorry for the delay in mine after your post.
    I liked them both. I might have to use Version 2 as usually column B will be filled with other data.
    Could you please explain the full logic behind Version 2... I kind of got lost after A16 I did manage to get Version 1.
    What are the pros and cons to both?
    Regards and thank you again,
    stpeter

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Auto fill a cell

    Substitute this vlookup formula in Alastair's sheet then you don't have to do anything in column B

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  5. #5
    Valued Forum Contributor
    Join Date
    09-25-2011
    Location
    Eastbourne, England
    MS-Off Ver
    Excel 2010
    Posts
    1,089

    Re: Auto fill a cell

    Hi St Peter

    The logic of version 2 is

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Search for "-" in A16 starting at the 4th charachter (this gets past the first "-")
    Please Login or Register  to view this content.
    Add 1 to this position (which will give you the start of the time code) and select the next 2 charachters (even though there may only be one to select)
    Make it into a value
    Use this value in the area called Time_lookup.
    Please Login or Register  to view this content.
    Find the second cell to the right of he value found (and do an exact match)


    Hope this helps
    Alastair

  6. #6
    Forum Contributor
    Join Date
    02-25-2013
    Location
    Cleveland, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    116

    Re: Auto fill a cell

    Thank you so much!

+ 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