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

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
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,215,036
Messages
6,122,796
Members
449,095
Latest member
m_smith_solihull

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