+ Reply to Thread
Results 1 to 5 of 5

Match multiple repeating strings in a column and output the row number

  1. #1
    Registered User
    Join Date
    03-22-2013
    Location
    Sterling, VA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Match multiple repeating strings in a column and output the row number

    I have provided a sample file below. I am currently using several functions to try and search the column Family and Type for a specific string. Using the following i have been able to find one specific cell value and output the Space Number in the same row.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I would like to be able to search for three values. "_Voice & Data Outlet: Data Outlet", "Floor Flush Data Drop: Floor Box", and "_Voice & Data Outlet: Voice & Data Outlet" The goal would be that it was sequential so that as you go down Column G if it encounters any one of the three it will output the Space Number.

    I tried using the OR function within the IF logic statement and was not getting my desired result.

    The sample file has the data and an example of my desired result compared to my current result.

    excel help 3nw export.xlsx

    Thanks in advance for your help and advice.

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

    Re: Match multiple repeating strings in a column and output the row number

    Let's start with first one:

    WirelessRouter - CLG: ) in G4 doesn't have any one of your criteria. Why it returns A-3C01.2?
    Never use Merged Cells in Excel

  3. #3
    Registered User
    Join Date
    03-22-2013
    Location
    Sterling, VA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Match multiple repeating strings in a column and output the row number

    Are you referring to when OR is used within the if statement?

    I get the same result when I try something like this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    That's where I am stuck.

    WirelessRouter - CLG: ) should not be true with the OR function but for some reason it appears to be. It is strange because it is not one of the OR conditions.

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

    Re: Match multiple repeating strings in a column and output the row number

    Still don't understand..
    Is this close (check A column)?
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-22-2013
    Location
    Sterling, VA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Match multiple repeating strings in a column and output the row number

    I have attached a simplified data set.

    excel help 3nw export.xlsx

    Please take a look at column J and Column L. These columns show the current result i am getting and what my desired result is.

    I want to look at each row in column F and if it matches one of the strings i am looking for it will return the Space Number in Column A. This is done using the Index function.

    I am finding the row number of each instance i am searching for and using it as the row number in the Index function. The column Number in the Index function is fixed to column 1 of the array beacuse it is Column A.

    I hope this helps.

    Again please look at column J and Column L this should show you what i am trying to acomplish.

+ 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