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
LVL 12
asiduAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

redmondbCommented:
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
0
redmondbCommented:
asidu,

Small tweak to get rid of the trailing commas...
=SUBSTITUTE(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

Regards,
Brian.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
asiduAuthor Commented:
Excellent !
Thanks.
0
asiduAuthor Commented:
Thanks again works perfectly.
0
redmondbCommented:
Great! Thanks, Asidu.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.