+ Reply to Thread
Results 1 to 10 of 10

3 Criteria Lookup in Excel 2021

  1. #1
    Forum Contributor
    Join Date
    12-01-2020
    Location
    Asia
    MS-Off Ver
    MS Office 365/24/21
    Posts
    241

    3 Criteria Lookup in Excel 2021

    Hi,
    I am looking for result in Sheet1B5:C9 lookup with Sheet2.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,090

    Re: 3 Criteria Lookup in Excel 2021

    Try this,

    B5
    =INDEX(Sheet2!$A:$Z,MATCH($D$2,Sheet2!$C$1:$C$14,0),SUMPRODUCT((Sheet2!$D$1:$K$1=B$4)*(Sheet2!$D$2:$K$2=$A5)*(COLUMN(Sheet2!$D$1:$K$1))))

    copied and across to C8

    B9
    =SUM(B5:B8)

    copied to C9
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    12-01-2020
    Location
    Asia
    MS-Off Ver
    MS Office 365/24/21
    Posts
    241

    Re: 3 Criteria Lookup in Excel 2021

    There is #Spill! Issue in C column.

  4. #4
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2404
    Posts
    1,269

    Re: 3 Criteria Lookup in Excel 2021

    I guess you have XLOOKUP in Excel 2021, so maybe you try this in B5 and copy across and down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Good luck!

  5. #5
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,804

    Re: 3 Criteria Lookup in Excel 2021

    B5=SUMPRODUCT((Sheet2!$C$3:$C$14=Sheet1!$D$2)*(Sheet2!$D$2:$K$2=Sheet1!$A5)*(Sheet2!$D$1:$K$1=Sheet1!B$4)*(Sheet2!$D$3:$K$14))

    Copy across and down

    Total

    B9=SUM(B5:B8)

    copy across


    or for total

    B9=SUMPRODUCT((Sheet2!$C$3:$C$14=Sheet1!$D$2)*(ISNUMBER(MATCH(Sheet2!$D$2:$K$2,Sheet1!$A$5:$A$8,0)))*(Sheet2!$D$1:$K$1=Sheet1!B$4)*(Sheet2!$D$3:$K$14))

    Copy across

  6. #6
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2404
    Posts
    1,269

    Re: 3 Criteria Lookup in Excel 2021

    An alternative to post #4, in case you don't have XLOOKUP:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    12-01-2020
    Location
    Asia
    MS-Off Ver
    MS Office 365/24/21
    Posts
    241

    Re: 3 Criteria Lookup in Excel 2021

    There is Filter function as well but couldn't work out.

  8. #8
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,090

    Re: 3 Criteria Lookup in Excel 2021

    Revise my formula

    B2
    =IFERROR(INDEX(Sheet2!$A:$Z,MATCH($D$2,Sheet2!$C$1:$C$14,0),1/(1/(SUMPRODUCT((Sheet2!$D$1:$K$1=B$4)*(Sheet2!$D$2:$K$2=$A5)*(COLUMN(Sheet2!$D$1:$K$1)))))),"")

    copied down and across C8

    B9
    =SUM(B5:B8)

    copied to C9
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,909

    Re: 3 Criteria Lookup in Excel 2021

    In B5:
    =IFERROR(FILTER(FILTER(Sheet2!$D$3:$K$13,Sheet2!$C$3:$C$13=$D$2),(Sheet2!$D$1:$K$1=B$4)*(Sheet2!$D$2:$K$2=$A5)),0)

    copy across and down.

  10. #10
    Forum Contributor
    Join Date
    12-01-2020
    Location
    Asia
    MS-Off Ver
    MS Office 365/24/21
    Posts
    241

    Re: 3 Criteria Lookup in Excel 2021

    Thanx all of you.

+ 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: 26
    Last Post: 10-12-2022, 01:39 AM
  2. [SOLVED] Half Yearly plan Chart with horizontal-axis lables as H1-2021, H2-2021 ...
    By Sum in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 05-17-2022, 02:34 PM
  3. Excel 2021 Scrapbook
    By johnnymargo in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 02-03-2022, 05:06 PM
  4. VBA in the 2021 Excel for Mac compared to 2016 or 2011 versions
    By jvbeaupre0 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-02-2021, 01:51 PM
  5. How to use Regexmatch to filter ranges of Times & Dates (ie, 2021-01-05 08:00 - 2021-01-06
    By rddt in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 9
    Last Post: 01-10-2021, 05:01 PM
  6. Replies: 1
    Last Post: 01-10-2021, 04:32 AM
  7. [SOLVED] Formulating 1/1/2021-1/2/2021, 1/3/2021-1/9/2021 etc through one row.
    By jbposey86 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-24-2020, 08:27 PM

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