+ Reply to Thread
Results 1 to 4 of 4

Detecting Numbers in a cell

  1. #1
    Registered User
    Join Date
    03-28-2006
    Posts
    43

    Detecting Numbers in a cell

    Data:
    Column A
    H111
    B222
    Abc
    1XE3
    2XD4
    22GT
    12SD
    Apple
    Orange
    123
    456

    I need to copy cells that contains number onto a new column.

    Output:
    Column B
    H111
    B222
    *blank*
    1XE3
    2XD4
    22GT
    12SD
    *blank*
    *blank
    123
    456


    Will someone be able to help please?

  2. #2
    Bondi
    Guest

    Re: Detecting Numbers in a cell

    Hi,

    Maybe not the most elegant way to do it but i think it works.
    If you put this formula in cell b1 and copy down the lenght of your
    data:

    =IF(MID(A1,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&{0,1,2,3,4,5,6,7,8,9})),1024)="","",A1)

    Regards,
    Bondi


  3. #3
    Stefi
    Guest

    RE: Detecting Numbers in a cell

    =IF(ISNUMBER(A1),A1,"")

    and fill it down!
    Regards,
    Stefi

    „KH_GS” ezt *rta:

    >
    > Data:
    > _Column_A_
    > H111
    > B222
    > Abc
    > 1XE3
    > 2XD4
    > 22GT
    > 12SD
    > Apple
    > Orange
    > 123
    > 456
    >
    > I need to copy cells that contains number onto a new column.
    >
    > Output:
    > _Column_B_
    > H111
    > B222
    > *blank*
    > 1XE3
    > 2XD4
    > 22GT
    > 12SD
    > *blank*
    > *blank
    > 123
    > 456
    >
    >
    > Will someone be able to help please?
    >
    >
    > --
    > KH_GS
    > ------------------------------------------------------------------------
    > KH_GS's Profile: http://www.excelforum.com/member.php...o&userid=32920
    > View this thread: http://www.excelforum.com/showthread...hreadid=538784
    >
    >


  4. #4
    Registered User
    Join Date
    03-28-2006
    Posts
    43
    No this does not work because it does not catch contents with a mixture of text and numbers.



    Quote Originally Posted by Stefi
    =IF(ISNUMBER(A1),A1,"")

    and fill it down!
    Regards,
    Stefi

    „KH_GS” ezt *rta:

    >
    > Data:
    > _Column_A_
    > H111
    > B222
    > Abc
    > 1XE3
    > 2XD4
    > 22GT
    > 12SD
    > Apple
    > Orange
    > 123
    > 456
    >
    > I need to copy cells that contains number onto a new column.
    >
    > Output:
    > _Column_B_
    > H111
    > B222
    > *blank*
    > 1XE3
    > 2XD4
    > 22GT
    > 12SD
    > *blank*
    > *blank
    > 123
    > 456
    >
    >
    > Will someone be able to help please?
    >
    >
    > --
    > KH_GS
    > ------------------------------------------------------------------------
    > KH_GS's Profile: http://www.excelforum.com/member.php...o&userid=32920
    > View this thread: http://www.excelforum.com/showthread...hreadid=538784
    >
    >

+ 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