+ Reply to Thread
Results 1 to 2 of 2

two similar match/search functions, only one works

  1. #1
    Registered User
    Join Date
    09-30-2016
    Location
    Philadelphia, PA
    MS-Off Ver
    2013
    Posts
    1

    Angry two similar match/search functions, only one works

    Hello,

    I have two functions:

    Function A:
    ={MATCH($AD$51 & 1,('AMUSA PRICING'!$D$165:$D$1159) & (--NOT(NOT(SEARCH($AD$50,'AMUSA PRICING'!$L$165:$L$1159)))),0)+164}

    Function B:
    ={MATCH($AD$51 & 1,('AMUSA PRICING'!$D$165:$D$1159) & (--NOT(NOT(SEARCH($AD$52,'AMUSA PRICING'!$M$165:$M$1159)))),0)+164}

    Only Function B returns an answer; I get a #N/A for Function A.

    I have tested out the following functions and they return answers with no errors:

    ={MATCH(1,(--NOT(NOT(SEARCH($AD$50,'AMUSA PRICING'!$L$165:$L$1159)))),0)+164}
    ={MATCH($AD$51,'AMUSA PRICING'!$D$165:$D$1159,0)+164}
    ={MATCH(1,(--NOT(NOT(SEARCH($AD$52,'AMUSA PRICING'!M165:M1159)))),0)+164}

    Any thoughts as to what might be causing this issue?

    What I am trying to do is combine a matching function with a searching function, which I seem to be able to do for Function B, but not Function A. The "D" column is for a horsepower value (always a whole number) so I can control entry via data validation. The "M" column contains data listing out different voltages with things like "208/460V" in a cell, so I want to be able to search "208" or "460" and return the same cell each time. Similarly, for the "L" column I have data that's a mixture of five different unique entries, but two entries contain similar terms and both should appear if the proper search term is entered (e.g. I search "V-Belt" and I get values from "V-belt" and "V-belt for special use"). I am able to edit everything, so if changing the way I am setting up my data columns is required instead of the formulas I can do that as well.

    Ultimately I'd like to be able to take some input values for HP (Column D), Voltage (Column M), and Drive Type (Column L) and come up with the row that fits all the criteria using a formula.
    Last edited by Blaise815; 09-30-2016 at 05:20 PM.

  2. #2
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: two similar match/search functions, only one works

    The error that you are getting is one presented when the value isn't available. Are you sure that the value that you are looking for in the first formula is actually in the range being searched?
    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data. (Remove private or sensitive data that shouldn't be published)

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Click on Browse under Upload Files from your Computer and then find the file on your computer using the dialogue that opens. Click on Open then click on Upload. Click on Close this Window. Click on Submit.
    Last edited by newdoverman; 09-30-2016 at 07:31 PM.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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. [SOLVED] VBA which works similar to 'comments'
    By Keibri in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-27-2015, 03:48 PM
  2. [SOLVED] Index, Match and Search functions
    By rogelioperrett in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-13-2014, 10:14 AM
  3. [SOLVED] Using Match/Index/Search Functions
    By fl9805 in forum Excel General
    Replies: 2
    Last Post: 08-10-2014, 09:30 AM
  4. [SOLVED] Using Search and Lookup/Match/Index Functions
    By fl9805 in forum Excel General
    Replies: 14
    Last Post: 08-06-2014, 10:47 AM
  5. index/match search works in some cells, but not others?
    By pythonscript in forum Excel General
    Replies: 2
    Last Post: 07-06-2011, 08:32 PM
  6. Replies: 13
    Last Post: 05-13-2011, 07:53 AM
  7. Replies: 6
    Last Post: 02-27-2010, 05:29 PM

Tags for this Thread

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