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

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.

Forum statistics

Threads
1,214,581
Messages
6,120,372
Members
448,957
Latest member
BatCoder

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