+ Reply to Thread
Results 1 to 3 of 3

Just want the number

  1. #1
    Registered User
    Join Date
    01-29-2007
    Posts
    10

    Just want the number

    Hello,

    When I am using a web query to pull data from a website onto Excel, I am getting the cells populated with High -6 C when I just want -6. Is there a formula I can use or setting I can change to just get the -6? Thanks.

    Chris

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525
    Hi Chris,

    Assuming the first cell populated is A1, try the following formula:

    =LEFT(A1,(SEARCH(" ",A1)-1))

    Hope this solves the problem.

    Cheers,

    Robert

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Quote Originally Posted by VBA Beginner
    Hello,

    When I am using a web query to pull data from a website onto Excel, I am getting the cells populated with High -6 C when I just want -6. Is there a formula I can use or setting I can change to just get the -6? Thanks.

    Chris
    If the data always ends with " C" or similar

    =MID(LEFT(A1,LEN(A1)-2),FIND(" ",A1)+1,255)

+ 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