Forum Discussion

sagarpdl's avatar
sagarpdl
Copper Contributor
Aug 26, 2020

Formula help VLOOKUP?XLOOKUP?

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.

 

3 Replies

  • sagarpdl 

    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 )