+ Reply to Thread
Results 1 to 4 of 4

Car Manufacturer Auto Filter Macro Problem

  1. #1
    Registered User
    Join Date
    01-07-2011
    Location
    asdasd
    MS-Off Ver
    Excel 2003
    Posts
    2

    Lightbulb Car Manufacturer Auto Filter Macro Problem

    Hey Guys,

    I'm sitting here at work and due to my very limited VBA knowledge i cannot seem to solve the following problem:

    I'm in the purchasing department of a car manufacturer, were buying different parts from different suppliers, from most suppliers we buy more than one part. This is represented in a list: every part we buy is a row which contains the information of which supplier we buy it and what the turnover for that part is.

    Now i select a supplier by autofilter, so the table shows all parts that are bought from this supplier and the corresponding turnovers. Underneath the all the different turnovers, i calculate the sum via Subtotals(9,...).

    What i need now is a macro, which writes the name of the supplier i select by filter and the calculated sum of the turnovers of all parts that are bought from this supplier in another sheet, and does so for every supplier that's selectable in the filter if possible. The purpose is that i can see with which of the suppliers our company has the biggest turnovers with, so i can make a ranking which ones are the most important.

    I hope you got what I want to do, I'd greatly appreciate your help!

    P.s.: I'm sorry i don't attach any files, but some of the data should not be accessible to the public.

  2. #2
    Registered User
    Join Date
    12-21-2007
    Location
    Szeged, HUNGARY
    MS-Off Ver
    2013
    Posts
    43

    Re: Car Manufacturer Auto Filter Macro Problem

    Hi,
    I think a sample file would help. Before making it public you may replace the original names and item names to meaningless words, and of course reduce the whole to a smaller number of rows and columns.
    I write because I don't comletely understand the task.

    Kaus Borealis

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Car Manufacturer Auto Filter Macro Problem

    Wouldn't a Pivottable be simpler?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Registered User
    Join Date
    01-07-2011
    Location
    asdasd
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Car Manufacturer Auto Filter Macro Problem

    Thank you two for responding, a pivot table was exactly what i needed, i had never used it before.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1