Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Sort worksheet by the number of occurances

Hello:
I would appreciate help with this one.

I have a large worksheet with more than 5000 rows of data (each row
pertaining to one record)
Column F contains account numbers which can occur many times (ie on
many rows) in the worksheet.

I would like to Sort the Worksheet such that the account number that
has occured maximum number of times in column F is all on the top.
Below those rows, will be rows with the second most frequent account
number & so on.

2nd question:
Is there a way to filter the data to show only those rows where the
account numbers have occured more than 10 times in Column F

I really would appreciate any with the above
TIA

Vinay

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Sort worksheet by the number of occurances

Vinay,

In a column to the right of your data, use the formula

=COUNTIF($F$1:$F5000,F1)

Fill this formula down to the end of your data. Then, sort by that column in
descending order.




--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)



wrote in message
ups.com...
Hello:
I would appreciate help with this one.

I have a large worksheet with more than 5000 rows of data (each row
pertaining to one record)
Column F contains account numbers which can occur many times (ie on
many rows) in the worksheet.

I would like to Sort the Worksheet such that the account number that
has occured maximum number of times in column F is all on the top.
Below those rows, will be rows with the second most frequent account
number & so on.

2nd question:
Is there a way to filter the data to show only those rows where the
account numbers have occured more than 10 times in Column F

I really would appreciate any with the above
TIA

Vinay



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Sort worksheet by the number of occurances

For your Filter question, use Advanced Filter and enter 10 for the COUNTIF
Column described in my previous reply.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)

wrote in message
ups.com...
Hello:
I would appreciate help with this one.

I have a large worksheet with more than 5000 rows of data (each row
pertaining to one record)
Column F contains account numbers which can occur many times (ie on
many rows) in the worksheet.

I would like to Sort the Worksheet such that the account number that
has occured maximum number of times in column F is all on the top.
Below those rows, will be rows with the second most frequent account
number & so on.

2nd question:
Is there a way to filter the data to show only those rows where the
account numbers have occured more than 10 times in Column F

I really would appreciate any with the above
TIA

Vinay



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Sort worksheet by the number of occurances

Thanks a lot Chip for your help!
Vinay

Chip Pearson wrote:
For your Filter question, use Advanced Filter and enter 10 for the COUNTIF
Column described in my previous reply.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)

wrote in message
ups.com...
Hello:
I would appreciate help with this one.

I have a large worksheet with more than 5000 rows of data (each row
pertaining to one record)
Column F contains account numbers which can occur many times (ie on
many rows) in the worksheet.

I would like to Sort the Worksheet such that the account number that
has occured maximum number of times in column F is all on the top.
Below those rows, will be rows with the second most frequent account
number & so on.

2nd question:
Is there a way to filter the data to show only those rows where the
account numbers have occured more than 10 times in Column F

I really would appreciate any with the above
TIA

Vinay


Reply
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
count number of occurances between 2 values Peters Excel Worksheet Functions 3 June 12th 09 02:17 AM
help w/ sorting by number of occurances... kmik Excel Discussion (Misc queries) 2 March 17th 09 05:45 AM
Count Number of Duplicate Occurances Scott Halper Excel Worksheet Functions 7 March 30th 07 03:42 PM
countif formula to find the occurances of a number that is greater than one number but less than another steveo Excel Discussion (Misc queries) 3 July 8th 06 02:04 AM
chart the number of occurances kemel Charts and Charting in Excel 1 July 3rd 06 05:10 PM


All times are GMT +1. The time now is 12:09 AM.

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

About Us

"It's about Microsoft Excel"