Aug 26 2020 10:56 PM
Hi, Could you please help me on this?
There are names of students in first column and their age in second column. There are many same name, same age students, only few same name students have different age.
I would like to know which same name students have same age and which does not. If same age, it should display 1 in the next column and 0 if different.
Aug 26 2020 11:08 PM
I made a column combining Name and Age then used a count if formula
Hope it solves the problem
Aug 26 2020 11:29 PM
@sagarpdl, as entered in C2 in the attached file, the formula to determine whether or not a student has the same name and age as another is:
=--(SUMPRODUCT(--(A:A&B:B=A2&B2))>1)
Aug 27 2020 01:50 AM
My vote would go to the IFS family of functions which are several times faster than normal array formulas. With modern dynamic arrays, a single spilt range would be given by
= SIGN( COUNTIFS(Name, Name, Age, Age) > 1 )
or, within an Excel Table, the column formula should return a single cell at a time, so
= SIGN( COUNTIFS([Name], [@Name], [Age], [@Age]) > 1 )