Hi all.
May I be as bold as to resurrect this post again (more than two years later), because I'd like to modify NARAYANK991's excellent formula in post #11 to include another additional criterion and haven't been able to get it to work as required myself.
I've incorporated the formula into my attached spreadsheet (in column D), where it has served me well for the last two years, but I would now like to extend its usefulness further (see dropbox link
https://www.dropbox.com/s/pau3wgi0ps8cfgc/Sample.xlsx?dl=0 for the spreadsheet).
To explain what I need: The three yellow columns (B, F and L) are the ones that the formula in the blue column (D) must address. At present what the formula does is to look for a name in column B, compare it with the competition name in column L (there are three different ones) and determine whether or not it is the first time that that name appears in combination with the competition indicated in column L. If so, the formula must return the "debut" wording together with the competition name in column D. In other words, in the first row that a given name appears in the Two-Day competition, column D reflects "Two-Day Debut" in that row. Any subsequent Two-Day appearances by that same column B name in the same competition only get a dash in column D thereafter. The same would apply to the first row in which that name appears for the other two competitions - "Limited Overs" and "AMA20/20".
The existing formula in column D works perfectly for this purpose. However, I would like it slightly adapted in as far as it now must also consider the match number in column F. It should thus continue doing the same thing, but with the added proviso that for every row containing the same name (column B), same match number (column F) and same competition (column L) combination, the wording "(competition name) Debut" should now appear. In other words, the "Debut" wording should no longer just be restricted to the first row in which a given name appears next to a given competition, but should now rather appear in every other row for that name if it has the same column F match number as the initial row.
By way of example, the name of player "Davidson, Richard E" first appears in the Two-Day competition in row 2, so cell D2 correctly indicates that row as his "Two-Day Debut". However, he appears again in row 24, which is still part of match number 1 and thus is another performance that still forms part of his Two-Day debut. Cell D24 should thus also indicate "Two-Day Debut", and no longer a dash, as the column F match number hasn't changed - even though row 24 is now no longer the first time that that player name/competition name combination now appears.
My need for the change is that I need to be able to combine the results of multiple performances in someone's debut match, and not just the first performance if there is more than one. Can anyone please make that change to the formula for me?
Thanks!