excel - increment a value in a cell if they are the same -
this may little difficult me explain. have 1 column in excel has duplicate entries i.e. more 1 red , more 1 blue. need compare column against , increment each cell same word 1.
for example if there list of 3 reds in column , 2 blues in same column need incremented red1, red2, red3 , blue1, blue 2. i've been searching far have not found works how need to.
i have sorted column , need add number increments 1 same cell entry.
the column have 5000 products (with many random duplicates) , if products have same name need incremented 1.
any appreciated. thank , hope makes sense.
you can use countif
using little trick range.
=countif($a$1:a1, a1)
and if want directly concatenate...
=a1&countif($a$1:a1, a1)
and drag formula down.
adjust range accordingly.
Comments
Post a Comment