+ Reply to Thread
Results 1 to 10 of 10

Sum then filter by condition and arrange alphabetically

  1. #1
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 365
    Posts
    1,267

    Sum then filter by condition and arrange alphabetically

    Hi,

    I want to extract data by doing sum C data based on unique list from B column and then filter by condition met in E1 and arranged alphabetically ultimately.

    I have done by Pivot but I expect vba so that in a single click it can get the job done rather than following series of steps in pivot.

    I have enclosed the file.
    Attached Files Attached Files

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Sum then filter by condition and arrange alphabetically

    You don't say where the data needs to go. So this will be a start. Its just a modified Macro from a Recorded Macro

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 365
    Posts
    1,267

    Re: Sum then filter by condition and arrange alphabetically

    It did not worked.In B column there are duplicates which should have been unique.

    The output should be in a separate sheet.Also the last row which is simply the total of a "C" column should be ignored

    I have attached again the file with sample output what it should have been.
    Attached Files Attached Files

  4. #4
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Sum then filter by condition and arrange alphabetically

    Give this a try. See notes on data sheet.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 365
    Posts
    1,267

    Re: Sum then filter by condition and arrange alphabetically

    I think the output seems to be wrong.Have you match the sample output in "Output" sheet.Also the formula is displaying should not exist.

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

    Re: Sum then filter by condition and arrange alphabetically

    Try
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 365
    Posts
    1,267

    Re: Sum then filter by condition and arrange alphabetically

    Thanx for the kind response.But this is not I want.I want to extract data by doing sum C data based on unique list from B column and then filter by condition met in E1 and arranged alphabetically ultimately.Kindly read the post #1.

    It will help you to comprehand and I know you can do it as most of the problems you have sought out and eased me which I have faced in my day to day work previously.

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

    Re: Sum then filter by condition and arrange alphabetically

    Ah 2003...
    Try the attached, Scari doesn't allow me to post my code.
    Attached Files Attached Files

  9. #9
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Sum then filter by condition and arrange alphabetically

    Quote Originally Posted by paradise2sr View Post
    I think the output seems to be wrong.Have you match the sample output in "Output" sheet.Also the formula is displaying should not exist.
    No the output is correct to me. I think you may need to check your example output sheet again. Nepal, Lakune and United Kingdom in your example output do not have values >=100000

    As far as the formula goes just .value = .value under the .formula

    Please Login or Register  to view this content.

  10. #10
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 365
    Posts
    1,267

    Re: Sum then filter by condition and arrange alphabetically

    Thanx Jindon,

    Your code has done it.
    Last edited by paradise2sr; 03-03-2017 at 06:34 AM.

+ 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. formula auto arrange the markings with condition
    By felixpanganiban in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-10-2015, 02:26 PM
  2. [SOLVED] Alphabetically arrange content in a single cell
    By SASIURFREND in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-11-2014, 12:18 PM
  3. VBA code to sort range alphabetically once run an advanced filter
    By chrisjames25 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-04-2014, 07:33 PM
  4. How to arrange Name Lines Alphabetically !!!
    By jacksonmathews in forum Excel General
    Replies: 4
    Last Post: 07-11-2008, 06:23 AM
  5. [SOLVED] arrange excel worksheets Alphabetically
    By F Naroo in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-08-2006, 05:30 AM
  6. [SOLVED] arrange columns alphabetically in Excel
    By tellytubbie in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 06-08-2005, 11:05 AM
  7. How do I arrange entries in a column alphabetically
    By ferrymaster77 in forum Excel General
    Replies: 1
    Last Post: 01-21-2005, 08:06 AM

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