VLOOKUP using two criteria

DC_C2C

New Member
Joined
Nov 25, 2022
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Is there a way to use a VLOOKUP formula that looks at two criteria to return avalue?

I have data from a Microsoft Form in a row from A:O which includes a name, month and a series of scores. From a dashboard page on another sheet, I can select my name from a dropdown and use a VLOOKUP to query the table and return certain values from columns I:O. The formula runs on another six lines each looking at a different Column on Sheet 1. This works as expected using the formula below (cell B4 is my name)

Excel Formula:
=IFNA(VLOOKUP(B4,Sheet1!A:O,9,FALSE),"Not Found")

The issue comes that next month a new line of data is created that has my name, a different month and a different set of scores. I need to display the values from this month on the dashboard. Ideally, I select my name from cell B4 and text from cell B5 “May 2024” and have it display the data from the columns of the row that matches it.

The dashboard will have two sections both showing the same data but with different periods shown, top section May 2024, lower section June 2024.

Is this possible with a VLOOKUP?

Cheers
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
is month column B

=Index($I:$I , match( B4&B5, $A:$A&$B:$B,0))

just change the I to the column you want to return

also the formatting is it a real DATE
or just text
 
Upvote 0
Thank for the response.
On the Microsoft Form data sheet my name is Col G, the date is Col H and the other data are Cols are I:O

The date is text field and not a real date
 
Upvote 0
=Index($I:$I , match( B4&B5, $G:$G&$H:$H,0))
BUT
if the date is TEXT in both sheets , then should be OK
so TEXT
MAY 2024
but if one is a real date , then it wont
SO B4 and B5 are joined together
JOHN BLOGGSMAY 24
and the columns would be joined together
JOHN BLOGGSJAN 24
JOHN BLOGGSFEB 24
JOHN BLOGGSMAY 24 - so this will match and return the value in I

=Index($J:$J , match( B4&B5, $G:$G&$H:$H,0))
returns J

shown here

Book4
ABCDEFGHI
1
2
3
4John Bloggsthis is the row
5may 24J blogJan 2024
6B blogJan 2025
7John BloggsJan 2026
8J blogMay 24
9B blogMay 24
10John BloggsMay 24this is the row
11
Sheet1
Cell Formulas
RangeFormula
C4C4=INDEX($I:$I, MATCH( B4&B5, $G:$G&$H:$H,0))
 
Upvote 0

Forum statistics

Threads
1,223,703
Messages
6,173,977
Members
452,540
Latest member
haasro02

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top