+ Reply to Thread
Results 1 to 4 of 4

Code to Filter, Sum and return a value from data set

  1. #1
    Registered User
    Join Date
    11-10-2008
    Location
    AB
    Posts
    16

    Code to Filter, Sum and return a value from data set

    I've been working at my current job for a year and have pretty much tapped out the Excel resources. I'm at the point where I need to learn VBA, so any suggestions/tutoring would be appreciated.

    I deal with large amounts of data. For a score card I need find a way to filter data based on two constraints, sum it and display the output in a table. The two constraints are: Business Unit and Maintenance Type

    I played around with recording filters, but the code becomes very unwieldy. From past experience with this site, where I used 10 lines, there's a way to do it in 2.

    Please take a look at the attached example book, a truncated data set and the output.


    Thanks,

    Example Book.xls
    Last edited by chiz; 12-01-2008 at 09:50 PM.

  2. #2
    Registered User
    Join Date
    02-04-2008
    Posts
    17
    hi chiz,

    I've tried writing a macro base on the spreadsheet you provided. see if this is what you're looking for.

    do let me know if this is the solution you're looking for. Your explanation on what you required wasn't quite clear so I had to guess what you required.

    Cheers,
    yeaster
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    re: Code to Filter, Sum and return a value from data set

    The code works. I just added the equivalent workbook functions.
    Attached Files Attached Files
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

  4. #4
    Registered User
    Join Date
    11-10-2008
    Location
    AB
    Posts
    16
    Apologies for the open thread, I havn't been able to access the site.

    Thanks for the input. I appreciate the time spent, but it's not quite what i'm looking for. I'll go collect my thoughts and try again

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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