+ Reply to Thread
Results 1 to 4 of 4

SUMIF with a list of unkown criteria

  1. #1
    Registered User
    Join Date
    10-12-2011
    Location
    Vancouver BC
    MS-Off Ver
    Excel 2003
    Posts
    6

    SUMIF with a list of unkown criteria

    I need to write some code to look through a list and sum all the values of the same names i.e.

    Item a
    Item b
    Item c
    Item b
    item d
    Item a
    Item a


    Total value for all item a =
    Total value for all Item b =
    etc.

    Is there an easy way to do this. I started by creating many variables but this makes the code very long and slow.

    Any help would be appreciated.
    Last edited by londbrit; 10-18-2011 at 05:46 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,440

    Re: SUMIF with a list of unkown criteria

    Try using a Pivot Table

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    10-12-2011
    Location
    Vancouver BC
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: SUMIF with a list of unkown criteria

    Thanks The format may be not what I was looking for but it will do thanks.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,440

    Re: SUMIF with a list of unkown criteria

    Depends how much effort you want to put into it.

    You could, for example, use an Advanced Filter to extract unique item references and then use SUMIF to calculate the totals. Clearly, you could do what you want with the formatting.

    Regards

+ 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