Skip to content
xlsoffice. All Rights Reserved
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Lookup and Reference Examples

  • Complete List of Excel Lookup and Reference Functions, References and Examples
  • CHOOSE function: Description, Usage, Syntax, Examples and Explanation
  • How to get last column number in range in Excel
  • How to retrieve first match between two ranges in Excel
  • How to get first column number in range in Excel

Data Analysis Examples

  • Calculate Conditional Percentile ‘IF’ in table in Excel
  • Get column name from index in Excel Table
  • How To Filter Data in Excel
  • Conditional Formatting New Rule with Formulas in Excel
  • How to calculate correlation coefficient Correlation in Excel

Data Validation Examples

  • Excel Data validation whole percentage only
  • Excel Data validation only dates between
  • Excel Data validation exists in list
  • How To Create Drop-down List in Excel
  • Excel Data validation specific characters only

Multi-criteria lookup and transpose in Excel

by

This tutorial shows how to  work Multi-criteria lookup and transpose in Excel using the example below;

Formula

{=INDEX(range1,MATCH(1,($A1=range2)*(B$1=range3),0))}

Explanation

To perform a multi-criteria lookup and transpose results into a table, you can use an array formula based on INDEX and MATCH.

In the example shown, the formula in G5 is:

{=INDEX(amount,MATCH(1,($F5=location)*(G$4=date),0))}

Note this formula is an array formula and must be entered with control + shift + enter.

Worked Example:   Position of first partial match in Excel

This formula also uses three named ranges: location = B5:B13, amount = D5:D13, date = C5:C13

How this formula works

The core of this formula is INDEX, which is retrieving a value from the named range “amount” (B5:B13):

=INDEX(amount,row_num)

where row_num is worked out with the MATCH function and some boolean logic:

MATCH(1,($F5=location)*(G$4=date),0)

In this snippet, the location in F5 is compared with all locations, and the date in G4 is compared with all dates. The result in each case is an array of TRUE and FALSE values. When these arrays are multiplies together, the math operation coerces the TRUE and FALSE values to one’s and zeros, so that the lookup array going into MATCH looks like this:

{1;0;0;0;0;0;0;0;0}

MATCH is set up to match 1 as an exact match, and returns the position to INDEX as a row number.

Worked Example:   Categorize text with keywords in Excel

F5 and G4 are entered as mixed references so that the formula can be copied through the table without modification.

Post navigation

Previous Post:

Multiple chained VLOOKUPs in Excel

Next Post:

Multiple matches in comma separated list in Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others
  • How to convert numbers to text using TEXT function in Excel
  • CODE function: Description, Usage, Syntax, Examples and Explanation
  • How to strip html from text or numbers in Excel
  • ASC function: Description, Usage, Syntax, Examples and Explanation
  • How to check if cell contains one of many things in Excel
  • Get age from birthday in Excel
  • How to join date and text together in Excel
  • Basic timesheet formula with breaks in Excel
  • How to get workdays between dates in Excel
  • Generate series of dates by weekends in Excel
  • ODDFYIELD function: Description, Usage, Syntax, Examples and Explanation
  • ACCRINT function: Description, Usage, Syntax, Examples and Explanation
  • IPMT function: Description, Usage, Syntax, Examples and Explanation
  • MDURATION function: Description, Usage, Syntax, Examples and Explanation
  • ACCRINTM function: Description, Usage, Syntax, Examples and Explanation
© 2022 xlsoffice . All Right Reserved. | Teal Smiles