Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • How to Create Column Chart in Excel
  • Chart Axes in Excel
  • Conditional Formatting Rules in Excel
  • How to count table columns in Excel
  • Move chart to a separate worksheet in Excel

References

  • How to create dynamic named range with OFFSET in Excel
  • Get nth match with INDEX / MATCH in Excel
  • How to get first row number in range in Excel
  • Find closest match in Excel
  • Convert text string to valid reference in Excel using Indirect function

Data Validations

  • Data validation must not exist in list
  • Excel Data validation allow uppercase only
  • Excel Data validation date in next 30 days
  • Excel Data validation number multiple 100
  • Excel Data validation only dates between

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.

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.

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

Post navigation

Previous Post:

How to use Excel CHOOSE Function

Next Post:

Customize Ribbon 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

Logical Functions

  • NOT function: Description, Usage, Syntax, Examples and Explanation
  • Excel If, Nested If, And/Or Criteria Examples
  • Not Equal To ‘<>‘ operator in Excel
  • XOR function: Description, Usage, Syntax, Examples and Explanation
  • FALSE function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • HOUR function: Description, Usage, Syntax, Examples and Explanation
  • Count day of week between dates in Excel
  • Get month name from date in Excel
  • DATE function: Description, Usage, Syntax, Examples and Explanation
  • Display Date is workday in Excel

Grouping

  • Group numbers at uneven intervals in Excel
  • Map inputs to arbitrary values in Excel
  • How to randomly assign data to groups in Excel
  • If cell contains one of many things in Excel
  • Running count group by n size in Excel

General

  • How to get original price from percentage discount in Excel
  • How to get original number from percent change in Excel
  • How to fill cell ranges with random text values in Excel
  • 3D SUMIF for multiple worksheets in Excel
  • How to get amount with percentage in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning