Consulting

Results 1 to 5 of 5

Thread: sort and paste macro

  1. #1
    VBAX Tutor
    Joined
    Sep 2008
    Posts
    213
    Location

    sort and paste macro

    I recieve a list of data daily that I need to sort and paste to a specific format.

    Anyone seen a similar thread that they can point me too with an example of what needs to be done?

    I have attached a simple example of what I am aiming to achieve
    This example sorts units of products sold by staff by product, staff and color


    1. Data is pasted into "Daily Data" sheet
    2. Staff info in "Daily Data" sheet is listed as code (staff code) only, referenced in Column A in "Results"
    2. Data needs to be sorted and pasted to populate "Results" page
    3. No data in Daily Data = No Product sold
    4. This example includes 2 products, but my actual excel will require 15-20

    Any push in the right direction would be much appreciated.

    Thanks in advance!!
    Attached Files Attached Files

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Apart from not knowing how it aligns to the people, looks like a perfect job for a pivot table to me.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Tutor
    Joined
    Sep 2008
    Posts
    213
    Location
    Sorry Xld, what do you mean, "How it aligns to the people", each person is represented by their code in the Daily Data sheet ( only actual sales data is recieved, no sales means no data for a staff)

    Im not sure if a pivot table will help as the data wont contain data for every person everyday, but I still need to post their daily results in the results sheet (I have just started looking at pivot tables so I may very well be able to do this )
    Last edited by maninjapan; 08-18-2011 at 01:43 AM.

  4. #4
    VBAX Expert CatDaddy's Avatar
    Joined
    Jun 2011
    Posts
    581
    Location
    this is what yo uwant your pivottable to look like maybe
    Attached Files Attached Files
    ------------------------------------------------
    Happy Coding my friends

  5. #5
    VBAX Expert CatDaddy's Avatar
    Joined
    Jun 2011
    Posts
    581
    Location
    my bad, instead of count of product, you probably want count of No (in the sum collumn)
    ------------------------------------------------
    Happy Coding my friends

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •