Link to home
Start Free TrialLog in
Avatar of VasuSidhu
VasuSidhu

asked on

MS Excel

I Have 4 columns viz. Name, DOB, Class & EmpID.

the first 3 columns have same entry and the last column has different entry.

Is there any formula in excel to get the answer of the 1st or second entry as for last entry lookup will work.

Name      DOB      Class      EmpID
MAX      20-12-1969      3      2
MAX      20-12-1969      3      6
MAX      20-12-1969      3      4


so that if want to get entry for 2nd set, it should come as 6.
Avatar of JACLARO
JACLARO

no
Avatar of ukerandi
can you give me output example i mean what you expect as a out put
ASKER CERTIFIED SOLUTION
Avatar of Patrick Matthews
Patrick Matthews
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of VasuSidhu

ASKER

Thank You All. I got the answer.

=SUMPRODUCT((($D$10:$D$12=D10)*($E$10:$E$12=E10)*($F$10:$F$12=F10)*($G$10:$G$12=LARGE($G$10:$G$12,2)))*$G$10:$G$12)

Name           DOB                           Clas          EmpID
MAX           20-12-1969           3      2
MAX           20-12-1969           3      6
MAX           20-12-1969           3      4


The Data is placed in range(d9:g12)