+ Reply to Thread
Results 1 to 3 of 3

Combining TEXT and MATH function

  1. #1
    Registered User
    Join Date
    11-15-2011
    Location
    Denver, Colorado
    MS-Off Ver
    Excel 2003
    Posts
    2

    Combining TEXT and MATH function

    Hi Everyone,
    Im fairly beginner with Excel and new to the forum. Could use some guidance.

    I am copying data from web page to excel, no export function for what Im doing. The format of the cell is a time stamp, something like: 22:37:27 11-Nov-2011, Fri. I need to remove the last5 char's(, Fri)from many cells. Then I need to convert it to MT TZ, ie GMT - 7.

    To remove the char's I used: =LEFT(A2, LEN(A2)-5). This gives me 22:37:27 11-Nov-2011
    I now need to convert to MT, which I can do with A2-"07:00"

    Where Im stuck is how to combine all of this into one formula so I dont need so many columns to translate the date/time. Is it possible to combine the LEFT/LEN with the -"07:00" ?

    Thanks, appreciate the help

    Scott

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: Combining TEXT and MATH function

    Try this:

    =(LEFT(A3, LEN(A3)-5)*1)-7/24
    and format as custom
    hh:mm:ss dd-mmm-yyyy
    Alan
    Last edited by alansidman; 11-15-2011 at 08:38 PM.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    11-15-2011
    Location
    Denver, Colorado
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Combining TEXT and MATH function

    Thanks for the quick response Alan. I just tested and it works perfectly.Thanks,
    appreciate the help.

+ 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