Sir, this code is not producing any output. can you recheck once. Regards, Narsing Rao
Sir, Thanks a ton , the formulas are working perfectly. i had a great difficulty in finding the formula...
Hi, Hope you need a Dynamic Excel Formula to Count the Current Month and Quarter using CountIfs Formula: Excel Formula...
Hi, Here is the Example Macro: vba to run macro in another workbook. 'Main' Procedure in the Book2.xlsm will Open Book1.xlsm...
PNRao Garu, Thank you for your response... I modified it as follows and it is working and doing what I...
Hi, Here is the VBA code to insert blank rows/records every at alternative row from bottom. [code] Sub VBAF1_InsertBlankRows() intStartRow...
Hi, You can use the Match and Offset Formulas for your requirement. [img alt_text='Excel Formula Select Score based on...
Hi, Here is the VBA code to insert rows as required: [code] Sub VBF1_FindSpecificHeaderInsertRows() Dim lStartCol, lEndColCol, lCntr As Long...
I need to group rows based on repeated text cell in column A , no. of columns are dynamic
then sum total of each group and hide the groups showing only the totals
As start point try this code
Dim AsteriskPositions(1 To 1500) As Long
Dim counter As Long, I As Long
For I = 1 To Range("A" & Rows.Count).End(xlUp).Row
If Cells(I, 1).Value <> Cells(I + 1, 1).Value Then
counter = counter + 1
AsteriskPositions(counter) = Cells(I, 1).Row
For I = 1 To counter
If I = counter Then
Range("A" & AsteriskPositions(I) + 1 & ":A" & AsteriskPositions(I + 1) - 1).Rows.Group
Can you show us sample of your workbook to see what we can do with totals?
Thanks for the assistance, tried with above code, its grouping only for few texts not for all the unique texts in Column A, there are more than 3000 rows, month on month it keeps increasing.
Also let me know where to send the sample workbook attachments??? any email ID??
Please share using the share button above.
If you found the answer is best answer for your question, Please mark as 'best answer' by clicking on the right tick mark icon at the left side of the answer.
Found the answer useful and wants to credit the user, then vote the answer (vote up).