+ Reply to Thread
Results 1 to 4 of 4

In alpha-numeric text data replace alpha

  1. #1
    Registered User
    Join Date
    07-24-2010
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2000,2003,2010
    Posts
    38

    In alpha-numeric text data replace alpha

    If cell A1 contains Alfa numeric text for example “1X”, “ 5X”, “15Y”, “16Y” ,“(ANY NUMBER )X”, “(ANY NUMBER)Y”
    Result:
    Cell B1 should display “1Y”, “ 5Y”, “15X”, “16X” ,“(ANY NUMBER )Y”, “(ANY NUMBER)X”


    I would like to display same numeric data as Cell A1 in Cell B1 but if it is X with number replace with Y and If it is Y with number replace with X..
    Thanks.
    Last edited by manharji; 07-26-2010 at 07:24 PM.

  2. #2
    Forum Contributor
    Join Date
    05-16-2010
    Location
    UK
    MS-Off Ver
    2003 and 2007
    Posts
    252

    Re: In alfa-numeric text data replace alpha.

    In cell B1:

    =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"X","Z"),"Y","X"),"Z","Y")

  3. #3
    Registered User
    Join Date
    07-24-2010
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2000,2003,2010
    Posts
    38

    Re: In alfa-numeric text data replace alpha.

    How can I do with X and Y substitute?
    Thanks.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: In alfa-numeric text data replace alpha.

    that what that formula does, have you tried it?
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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