# Multiple Lookup and Return Value

#### WILDFLOWER92

##### New Member
Hello All, its been a long time since I needed your help. I confess, I haven't been using excel like I use to!

I need to do a multiple lookup and return a value. The lookup needs to have to different types, one being one type of variable and the other being multiple variables.

Example: 1st lookup: ABCDE = ABCDE and XYC = 1, 2, 3..ect, then return the # in a cell based on the match of the two items above.

Hope this makes sense.

M

### Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

#### WILDFLOWER92

##### New Member
I've tried 3 different things and cant seem to get a response:

=SUMPRODUCT(('Agcy Data'!X4:X509="E702NYC-LAXQ2")*('Agcy Data'!AC3:AN3=\$I\$2)*('Agcy Data'!AN4:AN511))

=LOOKUP(2,1/(('Agcy Data'!X4:X509=CONCATENATE(\$H\$5,A6,"Q2"))*('Agcy Data'!AC3:AN3=\$I\$2)),'Agcy Data'!AN4:AN512)

=INDEX('Agcy Data'!AN4:AN512,MATCH('Agcy Data'!X4:X509&CONCATENATE(\$H\$5,A6,"Q2"),'Agcy Data'!AC3:AN3=\$I\$2,FALSE))

Have any clue why?

#### GlennUK

##### Well-known Member
Explain the relationship between 'Agcy Data'!AC3:AN3 and 'Agcy Data'!AN4:AN511?

#### WILDFLOWER92

##### New Member

OOPS, that was a typo, it should be AN instead of AC

#### WILDFLOWER92

##### New Member
The first is the column where the data is, the second being the row, and the third being what I want to return.

##### MrExcel MVP

Hello All, its been a long time since I needed your help. I confess, I haven't been using excel like I use to!

I need to do a multiple lookup and return a value. The lookup needs to have to different types, one being one type of variable and the other being multiple variables.

Example: 1st lookup: ABCDE = ABCDE and XYC = 1, 2, 3..ect, then return the # in a cell based on the match of the two items above.

Hope this makes sense.

M

Looks like you want...

=INDEX(ReturnRange,MATCH(1,IF(Range1=Var1,IF(Range2=Var2,1)),0))

which needs to be confirmed with control+shift+enter, not with enter.

If the foregoing is not what you are looking for, provide a samll sample along with the desired result.

#### WILDFLOWER92

##### New Member
Excellent!!! You guys are so smart and I brag about this board just so know. The last one worked like a charm!! I like the dynamics of arrays; however they can sometimes slow down the process.

Have a great day!

#### WILDFLOWER92

##### New Member
If I wanted to add multiple ranges without having to repeat the "if (range, can I use {xxx, xxxx, xxx } some where?

Replies
4
Views
83
Replies
10
Views
512
Replies
4
Views
85
Replies
12
Views
243
Replies
8
Views
224

1,136,369
Messages
5,675,360
Members
419,565
Latest member
Phil57

### 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.

### Which adblocker are you using?

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

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