Array formula to search table with matching fields

datamster

Board Regular
Joined
Jan 25, 2016
Messages
58
Hello,

I have a table and I'm trying to make another column with an array formula that shows if fields in that row match other criteria found elsewhere in the specified columns. Here is the formula I'm attempting to use, {=IF(AND(C11=[call_sign],F11=[registration],I11=[origin]),TRUE,FALSE)}. In the array everything shows as FALSE and without the array everything shows as TRUE. Please let me know if my description needs clarification. Thank you for any help.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
You cant use AND in an array formula. What is it you are trying to do?
 
Upvote 0
You cant use AND in an array formula. What is it you are trying to do?

Hi Steve, thanks for the reply. I'm trying to determine if each row in the table is a duplicate based on columns C, F and I. I'd like the result to show either true or false for filtering in a pivot table. This is all part of an automated report so any manual intervention should be avoided. Below is a sample of the data.
BCDEFGHI
12/10/2016 16:26ARL1410ARL AirlineN923ANInboundB738LGA
12/10/2016 16:29ARL994ARL AirlineN838NNInboundB738MGA
12/10/2016 16:30ARL994ARL AirlineN838NNInboundB738MGA
12/10/2016 16:30ARL994ARL AirlineN838NNInboundB738MGA
12/10/2016 16:35ARL1498ARL AirlineN865NNInboundB738MEX
12/10/2016 16:40ARL1350ARL AirlineN951AAInboundB738STT
12/10/2016 16:41ARL373ARL AirlineN996NNInboundB738EWR
12/10/2016 16:41ARL994ARL AirlineN838NNInboundB738MGA
12/10/2016 16:43ARL1274ARL AirlineN910ANInboundB738BOS
12/10/2016 16:46ARL2282ARL AirlineN136ANInboundA321POS
12/10/2016 16:57ARL2449ARL AirlineN12028InboundA319FLL

<tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
Try:

=IF(COUNTIFS($C$2:C2,C2,$F$2:F2,F2,$I$2:I2,I2)>1,"Duplicate","OK")
 
Upvote 0
Try:

=IF(COUNTIFS($C$2:C2,C2,$F$2:F2,F2,$I$2:I2,I2)>1,"Duplicate","OK")

Perfect! I had to add offset to keep from counting itself so. Thanks for the help. Here's the formula I used,
=IF(COUNTIFS(OFFSET(C11:C269,1,),C11,OFFSET(F11:F269,1,),F11,OFFSET(I11:I269,1,),I11),"Duplicate","OK")
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

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