Data Grouping

Howey

New Member
Joined
Sep 16, 2022
Messages
4
Office Version
  1. 2016
Platform
  1. Windows
Hi,

I have an Excel file which is downloaded from SAP BI strait to an Excel format, the first column is broken down to L1 in multiple rows and a summary row of L0, I want to add a data grouping to the L1 rows, when i select the rows it adds one group for the whole page so i have to manually select for example the first rows of L1 then select Data - Group - Rows which is a pain for over 500 rows of data, example below, Image 2 is what i want to end up with.

1730194137593.png


1730194157646.png
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
First: put headernames above your columns

Then:

VBA Code:
Sub jec()
Cells(1).CurrentRegion.Subtotal 1, xlCount, 1, 1, 0, 1
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top