Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-05-2011, 01:39 PM
mikenmike0001 mikenmike0001 is offline Need help with sorting a column by most common to least common Windows 7 64bit Need help with sorting a column by most common to least common Office XP
Novice
Need help with sorting a column by most common to least common
 
Join Date: Dec 2011
Posts: 3
mikenmike0001 is on a distinguished road
Default Need help with sorting a column by most common to least common

Hello,

I'm not sure how to do this. I have attached my excel spreadsheet. In the spreadsheet are column titles for categorizing books by title, author, illustrator, publisher company, isbn, etc. I have over 400 records in this spreadsheet. What I want to do is sort the 400+ records by the publisher that comes up the most in the spreadsheet to the publisher that comes up the least in the spreadsheet. So for example, in the first row of the spreadsheet, the publisher for Mickey's Spooky Night Read along book is from "Disney Book Group". If "Disney Book Group" has more than one record result in the 400+ records, I want it along with it's rows of Disney Book Group to be prioritized and placed at the top of the stack.

If you look at row 8, you will see, It's a Great Pumpkin Charlie Brown, with a publisher titled "Peanuts Worldwide". In this sorting algorithm, if this record is the only one within the 400+ records that shows up only once for Peanuts Worldwide, I want this record to be last and at the bottom of the stack.




So can someone explain to me what I have to do in order to make this all work? An excel spreadsheet example would be nice.

Thanks,

Michael
Attached Files
File Type: xls Barnes and Noble Nook Kids.xls (93.0 KB, 11 views)
Reply With Quote
  #2  
Old 12-06-2011, 01:50 AM
macropod's Avatar
macropod macropod is offline Need help with sorting a column by most common to least common Windows 7 64bit Need help with sorting a column by most common to least common Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi Michael,

You can use an array formula (ie a formula entered with Ctrl-Shift-Enter) like:
=SUM(IF(C3=C$1:C$500,1,))
When it's input this way, it'll look like:
{=SUM(IF(C3=C$1:C$500,1,))}
You can then copy the formula down as far as needed. As coded, it's sufficient for 500 rows.

Once you've done that, you can sort the sheet by whatever column you put the formula in. That'll give you a sheet sorted by author frequency.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 12-06-2011, 11:57 AM
mikenmike0001 mikenmike0001 is offline Need help with sorting a column by most common to least common Windows 7 64bit Need help with sorting a column by most common to least common Office XP
Novice
Need help with sorting a column by most common to least common
 
Join Date: Dec 2011
Posts: 3
mikenmike0001 is on a distinguished road
Default

thank you macropod. I will try out that formula and see if I have any problems. My question for you. I'm new to Excel and what what those "$" signs mean and how you use them. What would happen if you left that out of the formula? What results will you get in comparison to using the "$" sign?
Reply With Quote
  #4  
Old 12-06-2011, 12:49 PM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Need help with sorting a column by most common to least common Windows XP Need help with sorting a column by most common to least common Office 2003
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,770
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

The $ signs in cell references make that part of the reference absolute

F I if you drag a formula across containing $F3, the $F part will not change, while the row part might depending on how you drag.

See " absolute and relative references " in XL Help - F1
Reply With Quote
  #5  
Old 12-06-2011, 03:20 PM
macropod's Avatar
macropod macropod is offline Need help with sorting a column by most common to least common Windows 7 64bit Need help with sorting a column by most common to least common Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Basically, if you omit the $ symbol in the formula, the cell references will change when you copy it down. As coded, copying gives:
{=SUM(IF(C3=C$1:C$500,1,))}
{=SUM(IF(C4=C$1:C$500,1,))}
{=SUM(IF(C5=C$1:C$500,1,))}
and so on. Without the $ you'd get:
{=SUM(IF(C3=C1:C500,1,))}
{=SUM(IF(C4=C2:C501,1,))}
{=SUM(IF(C5=C3:C502,1,))}
and this would compromise the formula's validity for what you're trying to achieve.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #6  
Old 12-06-2011, 05:17 PM
mikenmike0001 mikenmike0001 is offline Need help with sorting a column by most common to least common Windows 7 64bit Need help with sorting a column by most common to least common Office XP
Novice
Need help with sorting a column by most common to least common
 
Join Date: Dec 2011
Posts: 3
mikenmike0001 is on a distinguished road
Default

That makes sense now. Thanks for helping out.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with sorting a column by most common to least common Common mailbox analyzer/statistics NoStr0m0 Outlook 3 09-23-2011 05:22 AM
Need help with sorting a column by most common to least common link common slides in multiple presentations robtho PowerPoint 1 06-24-2011 12:55 AM
Need help with sorting a column by most common to least common Need to search a column for a macth and return a result from a third column pdfaust Excel 2 02-03-2011 03:02 PM
Sorting elements in a row Riccardo Excel 2 12-14-2010 10:08 AM
Need help with sorting a column by most common to least common Is there a way to Define a common Table Format as Object? blackduck603 Word Tables 1 02-20-2009 03:25 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:57 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft