Formulyo

Excel 365 + Google Sheets · XLOOKUP (2 criteria)

XLOOKUP with two conditions

Multiply the conditions to get 1 where both match, then look for that 1.

The formula

=XLOOKUP(1, (A2:A5="Laura") * (B2:B5="Nov"), C2:C5)

What each part means

Example

Before
ABC
1RepMonthSales
2LauraOct1,100
3JoãoNov980
4LauraNov1,250
5JoãoOct870
6Laura + Nov
After
ABC
1RepMonthSales
2LauraOct1,100
3JoãoNov980
4LauraNov1,250
5JoãoOct870
6Laura + Nov1,250

Step by step

  1. Click cell C6.
  2. Type the formula: =XLOOKUP(1, (A2:A5="Laura") * (B2:B5="Nov"), C2:C5)
  3. Press Enter.
  4. Drag the small square in the bottom-right corner of the cell down to copy it to the other rows.

Where it works

The same formula in other languages

Get 1 formula a day, free

Plus a free weekly planner template for Excel and Google Sheets. Unsubscribe in 1 click.

✓ Done! Check your inbox to confirm.

Want ready-made templates? See the Formulyo pack →

Keep learning