+ Reply to Thread
Results 1 to 5 of 5

VB Code to sum repeated values?

  1. #1
    Registered User
    Join Date
    01-09-2007
    Posts
    2

    VB Code to sum repeated values?

    Hi Folks,

    I am new to VB programming and need your help in solving following problem,

    Excel Input,

    Name Qty
    A 1
    A 2
    B 1
    C 5

    Excel OutPut,

    Name Qty
    A 3
    B 1
    C 5

    In other words I would like to sum the corresponding Qty value of all repeated Names (In this case A).

    Any help in this regard will be appreciated.

    Thanks,
    Manish

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    This simple code might help.


    Please Login or Register  to view this content.
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    01-09-2007
    Posts
    2

    Thanks

    Thanks for your reply

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    No problem

    Hope it helped

    VBA Noob

  5. #5
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    No problem

    Hope it helped

    VBA Noob

+ 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