Compare values in 2 arrays and return true if any of the values match

Tiger858
Tiger858 used Ask the Experts™
on
Want to compare the two highlighted arrays and return true if any of the cells match
Capture.PNG
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
ShumsManaging Director/Excel VBA Developer
Distinguished Expert 2018

Commented:
Can you please explain more. Cell reference, Rows, Columns. Or Sample Workbook would be helpful

Author

Commented:
I have attached a picture to help
ShumsManaging Director/Excel VBA Developer
Distinguished Expert 2018

Commented:
Return where?
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
to where ever the formula is located
ShumsManaging Director/Excel VBA Developer
Distinguished Expert 2018

Commented:
You can name the range for Opens and use below formula Assuming your Close list is from row 15 in Column A
=COUNTIF(Opens,A15)>0

Open in new window

Compare-Values.xlsx

Author

Commented:
Sorry i would like the formula to be able to tell using only one formula. i have attached an example of this
Book1.xlsx
Managing Director/Excel VBA Developer
Distinguished Expert 2018
Commented:
If you are comparing two range, all the cell value would be same to give you True or False, It can count, how many matches you have comparing other range.
If you just want count then you can use below formula:
=SUMPRODUCT(COUNTIF(Opens,Close))
And i you want result True or False even a single value matches then use below formula:
=IF(SUMPRODUCT(COUNTIF(Opens,Close))>=1,"True","No Match")
Count-Two-Ranges.xlsx

Author

Commented:
Exactly what i was after thank you
ShumsManaging Director/Excel VBA Developer
Distinguished Expert 2018

Commented:
You're Welcome Tiger858! Glad I was able to help.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial