+ Reply to Thread
Results 1 to 4 of 4

How to perform "group by"?

  1. #1
    Registered User
    Join Date
    08-06-2015
    Location
    United States, New Jersey
    MS-Off Ver
    2010
    Posts
    10

    How to perform "group by"?

    Hi all,

    I have a quick question about performing "group by" in excel.
    I currently have to 2 columns named, "name"' and "number" as shown below.

    Name Number
    Balance 2000
    Balance 300
    Balance 200
    Sales Deduction 20
    Sales Deduction 30
    ROI 20
    ROI 10
    Balance 29
    Sales Deduction 1000
    ROI 90
    Sales Deduction 299
    ROI 15

    I would like to change above table into one below.
    I would like to "group" the rows by their names.

    Balance Sales Deduction ROI
    2000 20 20
    300 30 10
    200 1000 90
    29 299 15

    Can you please help me with this?
    This is a very urgent matter.


    Thank you.

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: How to perform "group by"?

    This formula is for Excel 2010 and up.

    Enter formula in D2, copy across and down

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    For Excel prior to 2010 use this array formula
    ***must be entered with ctrl+shift+enter key combination

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    v A B C D E F
    1 Name Number Balance Sales Deduction ROI
    2 Balance 2000 2000 20 20
    3 Balance 300 300 30 10
    4 Balance 200 200 1000 90
    5 Sales Deduction 20 29 299 15
    6 Sales Deduction 30
    7 ROI 20
    8 ROI 10
    9 Balance 29
    10 Sales Deduction 1000
    11 ROI 90
    12 Sales Deduction 299
    13 ROI 15
    Last edited by AlKey; 03-07-2016 at 05:31 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    08-06-2015
    Location
    United States, New Jersey
    MS-Off Ver
    2010
    Posts
    10

    Re: How to perform "group by"?

    Thank you for your help.
    I typed in exactly how you wrote up there, but it just give me "0"....
    Could you please help me with this?
    Could you please kindly explain to me what that formula does?

  4. #4
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: How to perform "group by"?

    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

+ 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] "Read" the column header "Element" and perform calculation
    By dwsf in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-15-2015, 01:41 AM
  2. Replies: 1
    Last Post: 08-10-2014, 01:22 PM
  3. Replies: 1
    Last Post: 01-15-2014, 08:53 AM
  4. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  5. Replies: 2
    Last Post: 01-26-2011, 06:45 AM
  6. Replies: 0
    Last Post: 06-01-2006, 08:10 PM
  7. Replies: 0
    Last Post: 02-01-2006, 03:35 AM

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