vba - counting duplication in a listbox and displaying the number of duplication's -
i have listbox populated me adding equipment it, listbox allowed have duplication when comes equipment may need 2 pieces of same equipment complete job. when listbox has been filled desired equipment loop through contents , put them cells, if there 2 pieces of same equipment want list once have number in cell left of represent how many of particular equipment need.
activesheet.range("e" & rows.count).end(xlup).offset(, 1).value = "number of pieces of equipment"
so need hand loop through listbox check duplication , list out equipment plus numbers associated equipment.
i not use vba. use pivot table count occurrences, use =getpivotdata populate counts in desired location.
Comments
Post a Comment