+ Reply to Thread
Results 1 to 5 of 5

How to write the VBA code with the highest sales sorted to the smallest

  1. #1
    Registered User
    Join Date
    08-31-2020
    Location
    Japan
    MS-Off Ver
    2016
    Posts
    88

    How to write the VBA code with the highest sales sorted to the smallest

    The data source is in column A and B, and the result is placed in column G and H
    The highest sales are sorted to the lowest sales and the product names are not repeated
    The product name is the same, and the sales amount is added together

    Can someone please help me . It would be much appreciated . Thanks in advance
    Attached Files Attached Files
    Last edited by Sakurayuki; 11-03-2020 at 10:26 PM.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: How to write the VBA code with the highest sales sorted to the smallest

    Is there a reason you want to use VBA? You could easily do this with a pivot table.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    08-31-2020
    Location
    Japan
    MS-Off Ver
    2016
    Posts
    88

    Re: How to write the VBA code with the highest sales sorted to the smallest

    Thanks Norie GURU for quick reply

    Knowing that pivot table can easily solve the above problems, I want to learn how to write this VBA code to do it

    Is it difficult or simple to write this code?
    Last edited by Sakurayuki; 11-03-2020 at 10:14 PM.

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,560

    Re: How to write the VBA code with the highest sales sorted to the smallest

    VBA
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    08-31-2020
    Location
    Japan
    MS-Off Ver
    2016
    Posts
    88

    Re: How to write the VBA code with the highest sales sorted to the smallest

    Excellent solution. Thank you both, Thank you jindon GURU very much for the solution.

    I don't know what happened to the forum today, I can't ADD Reputation, Click but no response

    If it really doesn't work today , I will add another day
    Last edited by Sakurayuki; 11-03-2020 at 10:32 PM.

+ 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. Select the highest/lowest n values from a sorted column
    By ShannayR in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-25-2020, 01:55 PM
  2. [SOLVED] detect the smallest with the highest number in each sector, forming two pairs
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 32
    Last Post: 04-12-2020, 02:56 PM
  3. Replies: 4
    Last Post: 07-06-2013, 04:44 PM
  4. Replies: 9
    Last Post: 09-01-2012, 07:25 AM
  5. Replies: 6
    Last Post: 01-11-2012, 12:06 PM
  6. how list highest to smallest values?
    By jgomez in forum Excel General
    Replies: 4
    Last Post: 11-04-2011, 04:23 PM

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