LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 527
Default Sorting and filtering HELP!!!!!

Yossy
Insert a column in A and fill a list of number from 1 to the last row. Then
sort your data and use only the non blank rows.

Alternatively you could just hide the blank rows in the PT using a Macro

Sub hideZeros()
'select the Total column
For Each c In Selection
If c = "" Then
c.EntireRow.Hidden = True
End If
Next
End Sub

And to show all the rows again use:

Sub showAllRows()
LastRow = Cells.SpecialCells(xlCellTypeLastCell).Row
' Make sure that the Pivot table begins at row 5
' change A5 if necesary
Range("A5:", Cells(LastRow, 1)).Select
Selection.EntireRow.Hidden = False
Range("a5").Select
End Sub


Peter

"Yossy" wrote:

I created a pivot table but the end result has many empty blanks and
unecessary totals, please does anyone know how I can sort and or filter the
columns without messing up my data. I need just clean rows and of data
without the spaces and the total. I have 20 columns and thousands of rows

All help will be greatly appreciated. Thanks

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorting/Filtering Brandy Excel Discussion (Misc queries) 5 February 11th 08 09:02 PM
Sorting and Filtering by font drob77777 Excel Discussion (Misc queries) 1 December 4th 05 02:57 AM
sorting and filtering Duncan McDowell Excel Worksheet Functions 1 June 28th 05 03:02 PM
HELP! Filtering and sorting lists. [email protected] Excel Worksheet Functions 3 March 25th 05 01:31 PM
Sorting and filtering dsbiloxi Excel Worksheet Functions 7 March 10th 05 11:55 PM


All times are GMT +1. The time now is 02:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"