+ Reply to Thread
Results 1 to 5 of 5

Add a criteria to a match formula

Hybrid View

  1. #1
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,293

    Add a criteria to a match formula

    The following formula looks for the last instance of an entry containg the letter "A" in a small range or return "NoData" (supplied by daddylonglegs of this site)

    How can I adapt the formula to select the last entry in the range containing the letter "A" OR "vc" and if neither return "NoData"
    Any help appreciated

    Rgds Nigel

    =IFERROR(LOOKUP(2,1/(LEFT(INDEX(total,MATCH($A$26,total1,0),0))="A"),INDEX(total,MATCH($A$26,total1,0),0)),"NoData")

  2. #2
    Valued Forum Contributor Lemice's Avatar
    Join Date
    04-13-2013
    Location
    Somewhere.
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Add a criteria to a match formula

    Hello,

    This will be a rough guess, but the formula should turn to be something like this
    =IFERROR(LOOKUP(2,1/((LEFT(INDEX(total,MATCH($A$26,total1,0),0))="A")+(LEFT(INDEX(total,MATCH($A$26,total1,0),0))="vc")),INDEX(total,MATCH($A$26,total1,0),0)),"NoData")
    (copy pasta from Ford)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools

    Regards,
    Lem

  3. #3
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,293

    Re: Add a criteria to a match formula

    Thamks Lem,

    Yor adaption works for "A" and "NoData" on those instances but doesn't pick up "vc"

  4. #4
    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: Add a criteria to a match formula

    Perhaps a small sample workbook? Just to see how your data looks like?
    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.

  5. #5
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,293

    Re: Add a criteria to a match formula

    test file attached

    one instance of each criteria in yellow on schedule . search range highlighted in green

    formula i3:i6 PRIORITY SHEET
    Attached Files Attached Files

+ 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