Formula help

mtapp2207

New Member
Joined
May 14, 2014
Messages
18
Office Version
  1. 2016
Platform
  1. Windows
I have the formula below and it works great. However I would to be able to also add the following to the formula but can't seem to get it to work. I want to use multiple lookup/match requests in one formula.

=IF($D9="Advanced",INDEX(Sheet2!$B2:$B105,MATCH(Form!$D12,Sheet2!$A2:$A105,0)))

I want to be able to state OR

=IF($D9="Base",INDEX(Sheet2!$B2:$B105,MATCH(Form!$D12,Sheet2!$A2:$A105,0)))

=IF($D9="On Site",INDEX(Sheet2!$B2:$B105,MATCH(Form!$D12,Sheet2!$A2:$A105,0)))
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Is this what you are looking for?
Excel Formula:
=IF(OR($D9="Base",$D9="On Site"),INDEX(Sheet2!$B2:$B105,MATCH(Form!$D12,Sheet2!$A2:$A105,0)))
 
Upvote 0
How about
Excel Formula:
=IF(OR($D9={"Advanced","Base","On Site"}),INDEX(Sheet2!$B2:$B105,MATCH(Form!$D12,Sheet2!$A2:$A105,0)))
 
Upvote 0
No. My mess up Sorry. I apologize

=IF($D9="Advanced",INDEX(Sheet2!$B2:$B105,MATCH(Form!$D12,Sheet2!$A2:$A105,0)))

I want to be able to state OR

=IF($D9="Base",INDEX(Sheet2!$C2:$C105,MATCH(Form!$D12,Sheet2!$A2:$A105,0)))

=IF($D9="On Site",INDEX(Sheet2!$D2:$D105,MATCH(Form!$D12,Sheet2!$A2:$A105,0)))
 
Upvote 0
Maybe this then (a nested IF statement)?
Rich (BB code):
=IF($D9="Base",INDEX(Sheet2!$C2:$C105,MATCH(Form!$D12,Sheet2!$A2:$A105,0)),IF($D9="On Site",INDEX(Sheet2!$D2:$D105,MATCH(Form!$D12,Sheet2!$A2:$A105,0))))
 
Upvote 0
How about
Excel Formula:
=INDEX(Sheet2!$B2:$D105,MATCH(Form!$D12,Sheet2!$A2:$A105,0),MATCH(D9,{"Advanced","Base","On Site"},0))
 
Upvote 0
Solution
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,593
Messages
6,120,435
Members
448,961
Latest member
nzskater

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