+ Reply to Thread
Results 1 to 9 of 9

Search Function for String with Forward Slash

  1. #1
    Forum Contributor
    Join Date
    05-17-2012
    Location
    CA, USA
    MS-Off Ver
    Microsoft Excel for Microsoft 365
    Posts
    163

    Search Function for String with Forward Slash

    Is there a work around for Search() function to find an array, or column of string cells that includes forward slashes ("/")?

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Search Function for String with Forward Slash

    What do you mean by "work around"? You can use SEARCH to look for "/". Please give some more detail of what you are trying to achieve.

    Pete

  3. #3
    Forum Contributor
    Join Date
    05-17-2012
    Location
    CA, USA
    MS-Off Ver
    Microsoft Excel for Microsoft 365
    Posts
    163

    Re: Search Function for String with Forward Slash

    I was trying to use the search function nested within Index. The range, or column of text contains different text, a forward slash, and more text in each row for that column. I'm trying to use this column of data to reference it to an adjacent column that contains that text. If I type "Open/Closed" in A1 it returnes #value or #N/A. I tried using Shift + Enter to enter the formula as an array but that does not seem to work either.

    Please Login or Register  to view this content.
    where Range1 is a column of data adjacent to the column of A1 and Range2 is adjacent to the right of column Range1.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Search Function for String with Forward Slash

    So you are trying to find "Open/Closed" in column B and return the corresponding value from column C? If so, then you can use this formula:

    =IFERROR(VLOOKUP($A$1,$B:$C,2,0),"not found")

    No need to enter this as an array formula.

    Hope this helps.

    Pete

  5. #5
    Forum Contributor
    Join Date
    05-17-2012
    Location
    CA, USA
    MS-Off Ver
    Microsoft Excel for Microsoft 365
    Posts
    163

    Re: Search Function for String with Forward Slash

    I'm still getting "not found" or #N/A if I take out IFERROR()
    This is part of the data I am searching. I'm trying to find "Open/Closed" in Column C and return the corresponding value from Column B.

    ColB ColC
    BDC1 Unlocked/Locked
    BDC2 Trouble/Normal
    BDC3 Open/Closed
    BDC4 Request To Exit/Normal
    BDC5 On/Off
    BDC6 Closed/Open
    BDC7 Enabled/Disabled
    BDC8 Fire/Off
    BDC9 Heating/Cooling
    BDC10 Lead/Lag
    BDC11 On/Standby
    BDC12 Stop/Start
    BDC13 Start/Stop
    BDC14 Summer/Winter
    BDC15 Tripped/OK
    BDC16 Occupied/Unoccupied
    BDC17 Yes/No
    BDC18 High Speed/Low Speed
    BDC19 Open/Off
    BDC20 Close/Off
    BDC21 Running/Stopped
    BDC22 English/Metric

  6. #6
    Forum Contributor
    Join Date
    04-15-2015
    Location
    beirut
    MS-Off Ver
    2010
    Posts
    107

    Re: Search Function for String with Forward Slash

    try this file
    Attached Files Attached Files

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Search Function for String with Forward Slash

    Maybe this...

    Data Range
    B
    C
    D
    E
    F
    1
    2
    BDC1
    Unlocked/Locked
    ------
    Open/Closed
    BDC3
    3
    BDC2
    Trouble/Normal
    4
    BDC3
    Open/Closed
    5
    BDC4
    Request To Exit/Normal
    6
    BDC5
    On/Off
    7
    BDC6
    Closed/Open
    8
    BDC7
    Enabled/Disabled
    9
    BDC8
    Fire/Off
    10
    BDC9
    Heating/Cooling
    11
    BDC10
    Lead/Lag
    12
    BDC11
    On/Standby
    13
    BDC12
    Stop/Start
    14
    BDC13
    Start/Stop
    15
    BDC14
    Summer/Winter
    16
    BDC15
    Tripped/OK
    17
    BDC16
    Occupied/Unoccupied
    18
    BDC17
    Yes/No
    19
    BDC18
    High Speed/Low Speed
    20
    BDC19
    Open/Off
    21
    BDC20
    Close/Off
    22
    BDC21
    Running/Stopped
    23
    BDC22
    English/Metric


    This formula entered in F2:

    =INDEX(B2:B23,MATCH(E2,C2:C23,0))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  8. #8
    Forum Contributor
    Join Date
    05-17-2012
    Location
    CA, USA
    MS-Off Ver
    Microsoft Excel for Microsoft 365
    Posts
    163

    Re: Search Function for String with Forward Slash

    The nested Match formula inside Index worked. Not sure why it wasn't working earlier. When I used the Match nested within an Index, it would return an output of "#N/A" for all values except the first/top-most one in the column.

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Search Function for String with Forward Slash

    Good deal. Thanks for the feedback!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How do you remove all text before the last forward slash?
    By lukesmith7 in forum Excel General
    Replies: 7
    Last Post: 05-22-2014, 07:59 AM
  2. How do you remove text before the last forward slash?
    By lukesmith7 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-22-2014, 07:31 AM
  3. [SOLVED] multiple record to single with frequent change in string at forward slash
    By cruise.alter in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-24-2012, 06:26 AM
  4. Automatic insert of forward slash (/)
    By Shivas Regal in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-08-2010, 04:27 PM
  5. Replies: 1
    Last Post: 03-12-2009, 04:08 AM
  6. Forward Slash Problem
    By mortikiv in forum Excel General
    Replies: 3
    Last Post: 11-06-2007, 01:59 AM
  7. formulae for adding a forward slash automatically into a cell
    By angelgrant in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 06-21-2006, 08:35 AM

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