+ Reply to Thread
Results 1 to 5 of 5

match formula to add a new criteria

  1. #1
    Registered User
    Join Date
    11-08-2011
    Location
    KSA
    MS-Off Ver
    Excel 2007
    Posts
    93

    match formula to add a new criteria

    I have an existing file with two worksheets. Basically what is does is Lookup sheet contains my source data. Whenever Doctor's name is entered in "Data" sheet, it will match with the source. I have already have the existing function but I added a new column in my data sheet called "group" and I want it to be added in my existing function.

    Also, my current function returns value even if no exact match is found, like if I enter "Mike" which is not found in my lookup sheet, it is giving a result. I want if no exact match is found it returns as "null" or whatever is appropriate..
    Attached Files Attached Files

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: match formula to add a new criteria

    In E2 and copy down and across?

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

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,106

    Re: match formula to add a new criteria

    try
    =IF(A2="","",IF(ISERROR(INDEX(LOOKUP!B:B,MATCH(A2,LOOKUP!A:A,0))),"not in list",INDEX(LOOKUP!B:B,MATCH(A2,LOOKUP!A:A,0))))
    in column E

    then a space will be entered if nothing entered in column A and a "not in list" returned if not found - you can change that to any text you want

    then to get group
    =IF(A2="","",IF(ISERROR(INDEX(LOOKUP!B:B,MATCH(A2,LOOKUP!A:A,0))),"not in list",INDEX(LOOKUP!C:C,MATCH(A2,LOOKUP!A:A,0))))

    see attached
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Registered User
    Join Date
    11-08-2011
    Location
    KSA
    MS-Off Ver
    Excel 2007
    Posts
    93

    Re: match formula to add a new criteria

    it works! thanks so much!!! reps to both of you!!!

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,106

    Re: match formula to add a new criteria

    your welcome, thanks for the rep

+ 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. Replies: 2
    Last Post: 09-27-2014, 04:34 PM
  2. Add a criteria to a match formula
    By nigelog in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-24-2013, 09:47 AM
  3. [SOLVED] Formula with some match criteria
    By pezalmendra in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-27-2013, 06:56 PM
  4. [SOLVED] Formula that counts rows that match 2 criteria, but do not match another
    By VivatMartin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2012, 07:43 AM
  5. Formula to match several criteria
    By Neales in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-27-2008, 10:01 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