Avatar of asidu
asidu
Flag for Singapore asked on

How to compare a set of number for a draw in Excel 2007

I would like to compare 6 digit data stored in six columns with a string of data.
The input digits range 1 to 49.

Then matched numbers are then displayed in one column and the number of
digits match in the next.

Any solution which could produce the expected results will be fine with me.
Please see attached excel 2007 file for the details.
ComparesetofNumbers.xlsx
Microsoft Excel

Avatar of undefined
Last Comment
redmondb

8/22/2022 - Mon
redmondb

Hi, asidu.

Please see highlighted cells in the attached.

The formulas are ...
=IF(ISERROR(FIND(","&B8&",",","&H8&",",1)),"",B8&",")
&IF(ISERROR(FIND(","&C8&",",","&H8&",",1)),"",C8&",")
&IF(ISERROR(FIND(","&D8&",",","&H8&",",1)),"",D8&",")
&IF(ISERROR(FIND(","&E8&",",","&H8&",",1)),"",E8&",")
&IF(ISERROR(FIND(","&F8&",",","&H8&",",1)),"",F8&",")
&IF(ISERROR(FIND(","&G8&",",","&H8&",",1)),"",G8&",")

Open in new window

{=SUM(IF(ISERROR(FIND(","&B8:G8&",",","&H8&",",1)),0,1))}

Open in new window


(Please note that the latter formula should be array-entered, i.e. drop the {} and use CTRL-SHIFT-ENTER.

Regards,
Brian.
ComparesetofNumbers-V2.xlsx
ASKER CERTIFIED SOLUTION
redmondb

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
asidu

ASKER
Excellent !
Thanks.
asidu

ASKER
Thanks again works perfectly.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
redmondb

Great! Thanks, Asidu.