+ Reply to Thread
Results 1 to 4 of 4

number.... text..... convert..... HEADACHE!

Hybrid View

  1. #1
    Registered User
    Join Date
    06-16-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    2

    Question number.... text..... convert..... HEADACHE!

    So, my problem is simple but for the life of me I cannot figure it out.

    I have a time in F2 12:35
    In G2 I want to display the first two digits of the time 12

    I tried =left(f2,2) but thats just for text

    I need to sort arrivals by hour and then give average length of stay based on arrival by hour...

    Any help would be greatly appreciated!

    TLS
    Last edited by romperstomper; 06-17-2011 at 09:06 AM.

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: number.... text..... convert..... HEADACHE!

    TaraLeigh,

    Give the =HOUR() formula a try:
    =HOUR(F2)

    Hope that helps,
    ~tigeravatar

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: number.... text..... convert..... HEADACHE!

    Try = Hour(A1)
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    06-16-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    2

    Smile Re: number.... text..... convert..... HEADACHE!

    I KNEW it was something simple like that!!

    I cannot thank you enough.

+ 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