+ Reply to Thread
Results 1 to 3 of 3

find character(s) in a string and display character(s) next to it

  1. #1
    Registered User
    Join Date
    06-16-2010
    Location
    Brussels
    MS-Off Ver
    Excel 2003
    Posts
    5

    find character(s) in a string and display character(s) next to it

    Dear experts,

    is it possible to find one ore more characters in one cell and then give the character(s) next to it in another cell?
    example:

    a cell contains the following string:

    110CageB.R52B2/PP1/port8
    110CageB.R52B2/PP2/port8

    in the new cells I want to find PP and give the result which is 1 for the first line and 2 for the second line.

    So I want to display the character next to PP in a new cell.


    Thanks in advance!!!

    Robinski

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: find character(s) in a string and display character(s) next to it

    Hi, perhaps,

    =MID(A2,FIND("PP",A2)+2,FIND("port",A2)-FIND("PP",A2)-3)

    Cheers
    Attached Files Attached Files
    Last edited by canapone; 06-16-2010 at 08:58 AM.

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,006

    Re: find character(s) in a string and display character(s) next to it

    Simmilliar solution to CANAPONE:
    Attached Files Attached Files
    Never use Merged Cells in Excel

+ 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