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

enter image description here

in opinion, should avoid using vba code accomplish objective, , use pivot table instead. way present data little messy, but:

  1. convert range in sheet2 table. make sure include headings.
  2. from table menu, add pivot table new sheet.
  3. at right of screen, select sales-person , drag "rows" box.
  4. 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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -