+ Reply to Thread
Results 1 to 5 of 5

populate listbox with sum of unique value form another column

  1. #1
    Registered User
    Join Date
    02-04-2016
    Location
    Philippines
    MS-Off Ver
    2007
    Posts
    18

    populate listbox with sum of unique value form another column

    Hi, I would like to populate my listbox1 with values from a worksheet called "Summary"
    The listbox result should be:
    1st column: Unique Payee names
    2nd column: sum of their gross
    3rd column: sum of their tax
    4th column: sum of their net
    Payee Gross Tax Net
    Person1 10,000 3,000 7,000
    Person2 1,500 500 1,000
    Person1 2,000 300 1,700
    Person2 5,000 1,000 4,000
    Tried:
    Please Login or Register  to view this content.
    Since I only got these codes from somewhere else, I tried messing around with the values inside the q() but I can't seem to get the right column offset.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: populate listbox with sum of unique value form another column

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    02-04-2016
    Location
    Philippines
    MS-Off Ver
    2007
    Posts
    18

    Re: populate listbox with sum of unique value form another column

    Attached is my test file including a sample data and a semi-working userform. Thank you
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: populate listbox with sum of unique value form another column

    Please Login or Register  to view this content.
    Last edited by AlphaFrog; 08-20-2018 at 03:41 AM.

  5. #5
    Registered User
    Join Date
    02-04-2016
    Location
    Philippines
    MS-Off Ver
    2007
    Posts
    18

    Re: populate listbox with sum of unique value form another column

    Yay, thank you very much Mr. Frog!
    Will try to digest your codes for future reference. Have a nice day!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Populate a Listbox with Unique data of filtered range
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-23-2018, 02:35 AM
  2. [SOLVED] populate listbox with unique items based on criteria in column C
    By bqheng in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-23-2017, 06:55 PM
  3. [SOLVED] Populate a listbox with unique values from a range on a worksheet
    By D.Lovell in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-27-2014, 04:18 PM
  4. [SOLVED] populate listbox with unique text
    By mcdermott2 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-02-2013, 03:50 PM
  5. Populate data in listbox in a form
    By fatalcore in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-30-2012, 09:42 AM
  6. How to populate multiple column listbox with unique combinations only
    By shuvajit in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-06-2012, 12:37 AM
  7. Populate Listbox on Form Load
    By Kesey in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-08-2007, 10:52 PM

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