MrExcel Message Board

Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old May 20th, 2002, 12:17 PM   #1
littlepitz
New Member
 
Join Date: May 2002
Posts: 5
Default

How do I make excel tell me what the top five cell values are? I would like them to be bold and stand out, without me having to look for them.
littlepitz is offline   Reply With Quote
Old May 20th, 2002, 12:28 PM   #2
littlepitz
New Member
 
Join Date: May 2002
Posts: 5
Default

Please find an answer soon, I know you people are looking at my problem, plase reply if you have ANY tips for me.
littlepitz is offline   Reply With Quote
Old May 20th, 2002, 12:32 PM   #3
Asala42
Board Regular
 
Join Date: Feb 2002
Location: Southfield,MI USA
Posts: 1,030
Default

Hey,

You could use Conditional formatting to do this. Select your range, then go to Format/Conditional Formatting/formula:

=RANK($B2,$B$2:$B$20)<=5

(where B2:B20 is your range of data).

Select whatever format you'd like

Hope that helps,
Adam


Asala42 is offline   Reply With Quote
Old May 20th, 2002, 01:04 PM   #4
littlepitz
New Member
 
Join Date: May 2002
Posts: 5
Default

Thanks for your help, but I am still having trouble. I need the formating to go over a bunch of different ranges, I have tried to seperate them with a comma, but it continues to tell me that I have an error. It worked within one range, but just not over a few different ranges.
littlepitz is offline   Reply With Quote
Old May 20th, 2002, 01:12 PM   #5
Nimrod
MrExcel MVP
 
Join Date: Apr 2002
Location: Vancouver BC , Canada
Posts: 6,259
Default

Please give some details on the ranges :
I.E. give some range examples and if you want the top five for each range or the top five for all ranges combined
__________________

<MARQUEE>...........Never be afraid to try something new. Remember, amateurs built the ark, professionals built the Titanic...............The easiest thing to find is fault, don't be easy !.. --Anonymous--...</marquee>
Nimrod is offline   Reply With Quote
Old May 20th, 2002, 01:20 PM   #6
littlepitz
New Member
 
Join Date: May 2002
Posts: 5
Default

This is what I am plugging into the conditional formatting applet:

=RANK($L$3:$L$10,$L$12:$L$21,$L$23:$L$27,$L$33:$L$40,$L$42:$L$51,$L$57:$L$69,$L$71:$L$86)<=5
littlepitz is offline   Reply With Quote
Old May 20th, 2002, 01:33 PM   #7
Jack in the UK
Board Regular
 
Join Date: Feb 2002
Posts: 3,065
Default

Ranking non-contiguous rows of data

http://www.mrexcel.com/board/viewtop...8797&forum=2&4
__________________
Free Excel based Web Toolbar available here.

Jack in the UK
J & R Excel Solutions
"making Excel work for you"
Jack in the UK is offline   Reply With Quote
Old May 20th, 2002, 01:42 PM   #8
littlepitz
New Member
 
Join Date: May 2002
Posts: 5
Default

Thanks, but thats a little to indepth for me. Basically I have a spread sheet that has each of my agents listed with the number of transfers for each agent and I have team totals seperating each total, so I want the top five numbers excluding the team totals.
littlepitz is offline   Reply With Quote
Old May 22nd, 2002, 12:55 PM   #9
Chris Davison
MrExcel MVP
 
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
Default

Hi Littlepitz,

sometimes we *have* to go indepth !

Only because I haven't had time to fully digest the subtelties of Yogi's and Aladin's suggestions on that earlier thread yet, the logic of my suggestion should still hold firm in your case :

1) name your range
2) conditional format using this range

simple, eh ?

so :

1) Name your range :

highlight the following cells - L3:L10,L12:L21,L23:L27,L33:L40,L42:L51,L57:L69,L71:L86

(hold down CNTRL as you click on them, it'll remember where they are non-contiguous)

goto insert, names, define

define a name (in my example I called it "pitz")

the highlighted range should already show up as the "refers to" range

click on add, then OK out

you should now have a named range called "pitz" - double check by going to edit, goto and then type "pitz" in the reference box, or click on "pitz" if it already appears...... when you hit OK it should highlight that range of non-contiguous cells

now select cell L3 and apply your conditional formatting :

format
conditional formatting
change "cell value is" to "formula is"
enter the formula : =RANK(L3,pitz,0)<=5
format
font
font style
bold
ok
ok

you've just told it to bold L3 if it ranks 5th or higher (ie 4th, 2nd etc) within the range called "pitz" (which you defined earlier)

now, because you assigned this formatting to L3 without using any absolute anchoring (those $$ signs), when you paste this formatting to another cell, it will adjust it relatively....

so, we use the format painter icon (the paintbrush) to paste this format in L3 onto the whole column of "L"....

click L3.... click on the paintbrush, click on the column header "L" to apply it to the whole row

Your top five values should now be bolded...

__________________
:: Pharma Z - Family drugstore ::
Chris Davison is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 03:36 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
All contents Copyright 1998-2012 by MrExcel Consulting.
diabetic desserts recipes recipes Diabetic Soups Holiday Pizza Recipes Popcorn Recipes Recipes For Microwave Pasta Recipes Casserole Recipes Chili Recipes Curry Recipes Crockpot Recipes Apples Recipes Bread Recipes Vegetarian Recipes Vegetable recipes Desserts Recipes Appetizers Ethnic Recipes Meat Dishes Barbecue Recipes Sauces Recipes Marinade Recipes Low Fat Recipes Frugal Gourmet Kitchen Classics Recipes On The Grill Cook Books Seafood Recipes Cajun Recipes Breads Low Fat Low Fat Breads Bread Machine Recipes Yeast Breads Quick Breads Fat Free Vegetarian Salad Recipes Eggplant Recipes Radish Recipes Tomato Recipes Jalapeno Recipes Potato Recipes Lettuce Recipes Cabbage Recipes Beans Ambrosia Recipes Biscotti Recipes Desserts Low Fat Cookie Recipes Cheesecake Recipes Cake Recipes Pie Recipes Muffin Recipes Custard Recipes Best Appetizers Appetizers Low Fat Salsa Recipes Dip Recipes International Recipes Afghan Recipes Alaska Recipes French Recipes German Recipes Greek Recipes Italian Recipes Spanish Recipes Thai Recipes Korean Recipes Chinese Recipes Mexican Recipes Indian Recipes Beef Recipes Pork Pork & Ham Pork Butts Pork Chop Recipes Pork Ribs Rulled Pork Poultry Recipes Stews Recipes Ground Beef Barbecue Grill Barbecue Smoker All Purpose Sauce BBQ Sauce Barbecue Sauce Carolina BBQ Sauce Pickle Recipes Marinades Smoking Low Fat Appetizers & Dips Low Fat Breakfast Low Fat Cakes Low Fat Cheesecakes Low Fat Cookies Low Fat Desserts Low Fat Fish & Seafood Low Fat Meats Low Fat Pasta Low Fat Pies Low Fat Salads Low Fat Sandwiches Low Fat Sauces & Condiments Low Fat Sides Low Fat Soups Low Fat Vegetarian Baker's Dozen Taste of Home Recipe Book Bon Appetit Cookbook Blacktie Cookbook Buster Cook Book Cookbook USA Cook Book Cook Book Sara's Cookbook Sara's Cookbook Appetizers and Dips Poultry recipes Diabetic recipes Holiday recipes Miscellaneous recipes 110 recipes 1986 Usenet cookbook 2900 recipes Cyberrealm recipes Great sysops of world Specialty recipes Ceideburg recipes Cheese recipes Chili recipes Fruits recipes Garlic recipes Great chefs of NY Londontowne recipes Raisins recipes Recipes for kids US Food Vegetarian recipes Bread recipes Drinks Meat Dishes Brisket recipes Caribou recipes Chicken recipes Filet mignons recipes Pork recipes Swordfish recipes Turkey recipes Pasta recipes Uncategorized recipes Ethnic recipes Canada recipes English recipes Ethiopia recipes Germany recipes Greece recipes Mexican recipes Philippines recipes Welsh recipes Microwave recipes Soups recipes Vegetable recipes Asparagus recipes Barley recipes Brown rice recipes Lentil recipes Mushrooms recipes Salads recipes Wild rice Desserts recipes Cakes recipes Chocolate recipes Cookies recipes Ice cream recipes