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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -