Need Help EXCEL 2007 INDEX MATCH function:

eskelies

Board Regular
Joined
May 27, 2010
Messages
95
Hello, I have an array of data which has duplicates that exist in this data range. My current formula only looks at the cell below the lookup value. How can I change the following formula to search the entire array and return a "yes" or "NO?"

Code:
=IF(INDEX(C:C,MATCH(C3,C:C,0),0)<>C4,"YES","NO")

Any assistance would be greatly appreciated.
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Is this numerical data or text data?
 
Upvote 0
Hello, I have an array of data which has duplicates that exist in this data range. My current formula only looks at the cell below the lookup value. How can I change the following formula to search the entire array and return a "yes" or "NO?"

Code:
=IF(INDEX(C:C,MATCH(C3,C:C,0),0)<>C4,"YES","NO")

Any assistance would be greatly appreciated.

What are you trying to do?

Note that C3 and C4 are all part of C:C, so the results are necessarily YES...
 
Upvote 0
Try

=IF(FREQUENCY(C:C,C:C)>0,"Yes","No") array entered

George

Hello, I have an array of data which has duplicates that exist in this data range. My current formula only looks at the cell below the lookup value. How can I change the following formula to search the entire array and return a "yes" or "NO?"

Code:
=IF(INDEX(C:C,MATCH(C3,C:C,0),0)<>C4,"YES","NO")
Any assistance would be greatly appreciated.
 
Upvote 0
:) look through C:C for either a single name and return yes or a duplicated name and only return the first match as yes and the rest no.

FAD
KAD
FAD
LAD
JAD
JAD
XAD

The above is in C2:C8.

What do you want to happen with it? One of the following maybe:

a) Check for E2 housing KAD for example. If E2 in C2:C8, return YES in F2, otherwise NO.

b) Check in D, whether A2 (which is FAD) is the first occurrence: If so, give YES, otherwise NO.
 
Upvote 0
FAD
KAD
FAD
LAD
JAD
JAD
XAD
The above is in C2:C8.

What do you want to happen with it? One of the following maybe:

a) Check for E2 housing KAD for example. If E2 in C2:C8, return YES in F2, otherwise NO.

b) Check in D, whether A2 (which is FAD) is the first occurrence: If so, give YES, otherwise NO.


To go a little further:

KAD YES
FAD YES
LAD YES
JAD YES
JAD NO
XAD YES
KAD NO
FAD NO
 
Upvote 0

Forum statistics

Threads
1,224,557
Messages
6,179,504
Members
452,917
Latest member
MrsMSalt

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