Not long ago, a netizen asked to find out the duplicate data in the Excel worksheet and list it in the cell. I gave an array formula for reference, but not too well, because the array formula finds duplicate data, but if the array formula is copied down beyond the number of duplicate data, an error is displayed in the corresponding cell. Soon, the friend got a better formula. This formula is very good, solves this kind of problem very well, for interested friend's reference.
There is a series of data in columns A and B (the table is just an example, and there may be a lot of data) that requires finding all the training records (that is, the data in column B) for someone (the name in column a). That is, when you enter a person's name in cell E1, the following automatically displays all of the training records for that person.
We know that the functions of the lookup family of Excel can easily implement lookups, but when a lookup returns a series of results, such functions are powerless and can only be implemented in conjunction with other functions.
Here, the index function, the small function, the IF function, and the row function are used in method one, and the new Iferror function in Excel 2007 is used in method two.
Method One:
1, select cell E3;
2. Input formula: =index (B:b,small ($A $ $A $25= $E $1,row ($A $ $A $), 65536), ROW (1-1))) & ", and then press the Ctrl+shift+enter key at the same time, is the input array formula.
3. Select cell E3 and pull down to all cells.
Method Two:
1, select cell F3;
2. Input formula: =iferror ($A $ $B $9,small (IF ($A $ $A $9= $E $1,row ($A $ $A $)-row ($A $) +1,row ($A $) +1), ROW (1:1)), 2), " "), and then press the Ctrl+shift+enter key at the same time, which is the input array formula.
3. Select cell F3 and pull down to all cells.
Note : More wonderful tutorials Please pay attention to the triple computer Tutorials section, triple Office group: 185219299 welcome you to join