+ Reply to Thread
Results 1 to 6 of 6

Retreving Numbers Only out of Formula

  1. #1
    Registered User
    Join Date
    02-27-2007
    Posts
    29

    Retreving Numbers Only out of Formula

    I have this worksheet which im pulling data from the import external data part, anyway it is coming up as "space2 Mar 2007" anyway, im wondering is there any way that i can run a formula/something in a different cell to detele the space part out

    the cells i need the space deleted from is f61, g61 and h61

    if it can be done without the space maybe put it in like f233, g233, h233

    (in between is data i dont need so its just hidden)

    If someone could help that would be fantastic...

    cheers
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try:

    =SUBSTITUTE(F61,"spacer","")

    ....not, not sure if you meant "spacer" or "space"....
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    02-27-2007
    Posts
    29
    god i love this forum... thank you very much...

    one more issue though, the date is coming up as 2 Mar 2007 text not as a date

    is there anyway to now make that a date format so i can run an if formula off it via dates (as i cant do that via text)?

    once again thanks a heap

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by Dave_A
    god i love this forum... thank you very much...

    one more issue though, the date is coming up as 2 Mar 2007 text not as a date

    is there anyway to now make that a date format so i can run an if formula off it via dates (as i cant do that via text)?

    once again thanks a heap
    just add +0 to convert to true numeric...then format cell as date

    =SUBSTITUTE(F61,"spacer","")+0

  5. #5
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by Dave_A
    I have this worksheet which im pulling data from the import external data part, anyway it is coming up as "space2 Mar 2007" anyway, im wondering is there any way that i can run a formula/something in a different cell to detele the space part out

    the cells i need the space deleted from is f61, g61 and h61

    if it can be done without the space maybe put it in like f233, g233, h233

    (in between is data i dont need so its just hidden)

    If someone could help that would be fantastic...

    cheers
    Hi,

    to retain your 'spacer' and remove the spacer that is part of a cell,

    select all data (the square left of A and above row number 1) and then CTRL/H (asin Edit, Replace)

    Select 'Entire cell contents' and find spacer
    replace with ssppaacceerr
    replace all (346 in the test)

    untick 'entire cell' and replace all spacer with "" (nothing)

    replace all ssppaacceerr with spacer

    hth
    ---
    added, the dates appear as dates ok after this.
    ---
    Last edited by Bryan Hessey; 03-06-2007 at 09:09 AM.
    Si fractum non sit, noli id reficere.

  6. #6
    Registered User
    Join Date
    02-27-2007
    Posts
    29
    i got it to work with the top 2 suguestions...

    thanks so much guys, u make life so much easier...

+ 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