Link to home
Create AccountLog in
Avatar of asidu
asiduFlag 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
Avatar of redmondb
redmondb
Flag of Afghanistan image

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
Avatar of redmondb
redmondb
Flag of Afghanistan image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of asidu

ASKER

Excellent !
Thanks.
Avatar of asidu

ASKER

Thanks again works perfectly.
Great! Thanks, Asidu.