+ Reply to Thread
Results 1 to 4 of 4

Lookup/Match multiple variables

Hybrid View

  1. #1
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Lookup/Match multiple variables

    Hi,

    On your voters sheet, insert a new column E and populate with this formula

    =IF(MOD(C2,2),"O","E")

    copy down.

    Then use in F2

    =INDEX(Streets!$E$1:$E$1000,MATCH(1,(--(Streets!$A$1:$A$1000=D2)*(Streets!$B$1:$B$1000<=C2)*(Streets!$C$1:$C$1000>=C2)*(IF(Streets!$D$1:$D$1000="B",1,(Streets!$D$1:$D$1000=E2)))),0))
    This is an array formula and must be confirmed with Ctrl-Shift-Enter. Adjust ranges to suit.

    Then copy down.

    see attached for working example.
    Attached Files Attached Files

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Lookup/Match multiple variables

    A single cell non-array alternative might be:

    E2:
    =LOOKUP(2,1/((Streets!$A$2:$A$9=$D2)*ISNUMBER(SEARCH(Streets!$D$2:$D$9,IF(MOD($C2,2),"BO","BE")))*(Streets!$B$2:$B$9<=$C2)*(Streets!$C$2:$C$9>=$C2)),Streets!$E$2:$E$9)
    copied down

+ 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