need help with If ,Index and Match

shahdelsol

Active Member
Joined
Jul 21, 2009
Messages
276
Office Version
  1. 365
Platform
  1. Windows
I am not sure what I am trying to do will be resolved by IF and Index and Match. Here is the scenario. I am matching value in B7 with N7:N13, Once found then looking for matching the value of C5 in O7:013, if match found, 1 , if False 2
One caveat is the value in C5 is the name of weekdays like Monday, Tuesday etc. the cells in O7:O13 could have two weekdays in one cell like Monday, Tuesday. So if C5 says Monday but O7 says Monday, Tuesday for me it is a match. I hope someone can help. Thanks


=IF(INDEX(N6:O13,MATCH(B7,N6:N13,0),MATCH(C5,O6:O13)),1,2)
 
This new function worked as well. I am going to use this one so I can use my original code for just in case. Thanks again.
 
Upvote 0

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,215,338
Messages
6,124,356
Members
449,155
Latest member
ravioli44

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