Count and number how many times the same conditions have me

formulasgoogle sheets

I'm trying to see if there is any way to count in Google Sheets how many times conditions in other columns are met. Please see image below. In the example, there are 3 conditions (Car, Color, Status) and they will all be counted as the first case if no conditions are repeated in previous rows. If the same conditions are met in a previous row, the count will go up in one. In the example, only only in the case of Mercedes, red, new is repeated twice, so in the second time it happens, the result will show 2 in the second time.

Image and desired outcome

Best Answer

Use countifs() with three conditions, like this:

=countifs( 
  A$2:A2, A2, 
  B$2:B2, B2, 
  C$2:C2, C2 
)