vba - excel vb sum & copy range with criteria -
i new excel visual basic, need have been searching thru web , can't figure out right coding.
i want sum daily sales first criteria sales person - robin & ray sheet2 (data range) sheet1. manged , copy on 1/1, unable copy rest of colum b,c,d...(2/1,3/1...)
secondly, if want add second criteria on status, pick 'active' in column c (sheet2), right code use?
can direct me right place or coding? appreciate help.
thanks
in opinion, should avoid using vba code accomplish objective, , use pivot table instead. way present data little messy, but:
- convert range in sheet2 table. make sure include headings.
- from table menu, add pivot table new sheet.
- at right of screen, select sales-person , drag "rows" box.
- then select each of days u want have , drag them "measures" box. change count sum.
you have add new day every time table updated, , i'm assuming it's every day... suggest changing structure of original table, have 1 column date of each transaction, instead of 1 column per date.
Comments
Post a Comment