Search number within a database

M

Montu

I have some 20000 data for lottery in sheet 1 like :-
Sl No. Application No. Reg. No. Chque No. Name
01 17211 7552 215587 D.Gupta
02 14546 8258 112536 S.Das
Continued ..... to Sl no. 20000
I have some another data for whom has win lottery in sheet 2 like :-
Sl No. Application No. Reg. No. Chque No. Name
01 15311 1252 115327 M.Sharma
02 04836 4128 441562 S.Ghosh
Continued .... to Sl no. 1200.
Now I have to return the amount of the applicant who has not won the lottery.
Is there any formula to extract the application number who has not won the
lottery from sheet 1. help me
 
T

Teethless mama

AppNo -- is a defined name range from sheet 1
winner -- is a defined name range from sheet 2

=IF(ISERR(SMALL(IF(COUNTIF(winners,AppNo)=0,ROW(INDIRECT("1:"&ROWS(AppNo)))),ROWS($1:1))),"",INDEX(AppNo,SMALL(IF(COUNTIF(winners,AppNo)=0,ROW(INDIRECT("1:"&ROWS(AppNo)))),ROWS($1:1))))

ctrl+shift+enter, not just enter
copy down as far as needed
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top