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 Mar 22nd, 2002, 02:33 PM   #1
shades
Board Regular
 
shades's Avatar
 
Join Date: Mar 2002
Location: Near the Land of Oz
Posts: 1,550
Default

I am using a spreadsheet with 15 columns (seven with numerical data, the others are company names, etc.) and 2500+ rows.

I have set up 11 buttons at the top of the spreadsheet for each of the regions (one of the columns). Also, I have included array formula to sum up the totals for the seven numerical columns. So each regional total for each of the seven categories can be seen.

I also have set up conditional formatting, so that when one of the buttons is selected, the corresponding region items will be highlighted in the table. However, I can get only the regional name to highlight, not the entire row.

Is there any way to highlight the entire row istead of just the one column with conditional formatting?

(I'm using Excel 97 - soon to be 2000.)
__________________
- old, slow, and confused
... but at least I'm inconsistent -

(retired Excel 2003 user, 3.28.2008)
shades is offline   Reply With Quote
Old Mar 22nd, 2002, 02:43 PM   #2
Mark W.
MrExcel MVP
 
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
Default

Yes, have the entire row selected when you apply the Conditional Format. Also, use a Formula Is condition.

[ This Message was edited by: Mark W. on 2002-03-22 13:46 ]
Mark W. is offline   Reply With Quote
Old Mar 22nd, 2002, 02:46 PM   #3
shades
Board Regular
 
shades's Avatar
 
Join Date: Mar 2002
Location: Near the Land of Oz
Posts: 1,550
Default

I tried that. In fact, I had selected the entire table to do that. Then only portions of the table. But still only the one column is highlighted. I must be missing something.
__________________
- old, slow, and confused
... but at least I'm inconsistent -

(retired Excel 2003 user, 3.28.2008)
shades is offline   Reply With Quote
Old Mar 22nd, 2002, 02:47 PM   #4
Mark W.
MrExcel MVP
 
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
Default

Did you use a Formula Is condition? I added that to my 1st reply while you were posting. The cell reference used in the condition must be mixed reference (e.g., $A2).

[ This Message was edited by: Mark W. on 2002-03-22 13:49 ]

[ This Message was edited by: Mark W. on 2002-03-22 13:49 ]
Mark W. is offline   Reply With Quote
Old Mar 22nd, 2002, 02:55 PM   #5
shades
Board Regular
 
shades's Avatar
 
Join Date: Mar 2002
Location: Near the Land of Oz
Posts: 1,550
Default

Maybe a further explanation. Because there are 11 regions, Excel will not allow more than 7 Nested IF statements in one formula. So, I broke the buttons into six regions for one cell reference (C3)- which then dispalys the region name. Then the other five regions I have linked to another cell reference (C5)- which displays the names. Now, the formulas for the regional summaries are in two different rows (3 and 5).

Anyway, now to the question about the Formula Is, in conditional formatting, do I have to reference both cells C3 C5)? Or are you referrring to something else.

Keep in mind I'm self taught on all this, so I may ask dumb questions. But thanks for hanging in there with me.
__________________
- old, slow, and confused
... but at least I'm inconsistent -

(retired Excel 2003 user, 3.28.2008)
shades is offline   Reply With Quote
Old Mar 22nd, 2002, 02:57 PM   #6
Mark W.
MrExcel MVP
 
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
Default

For example...

A2:B5 contains {1,"A";2,"B";3,"C";4,"D"}. Select A2:B5 (with A2 as the active cell) and apply a "Formula Is" condition with the formula =$A2=4 and a yellow cell pattern. The last row will be highlighted in yellow because its column A value is 4.

[ This Message was edited by: Mark W. on 2002-03-22 14:06 ]
Mark W. is offline   Reply With Quote
Old Mar 22nd, 2002, 03:01 PM   #7
Mark W.
MrExcel MVP
 
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
Default

What's the condition that your IFs are testing?
Mark W. is offline   Reply With Quote
Old Mar 22nd, 2002, 03:06 PM   #8
shades
Board Regular
 
shades's Avatar
 
Join Date: Mar 2002
Location: Near the Land of Oz
Posts: 1,550
Default

I was using cell references in the Cell Is. Thus, if C3 = Region 1, then yellow pattern. But because I have another cell reference involved, namely C5, I can't see anyway to make it work.

Here is the formula in C3:

=IF($B$1=1,C8,IF($B$1=2,C9,IF($B$1=3,C10,IF($B$1=4,C11,IF($V$1=5,C12,C13)))))

(I'm using $B$1 as the reference, and C8-C19 is the shortened list of regions)

Now, if you are talking about Formula Is, I'm not sure what reference goes there.

_________________
- old, slow, and confused
... but at least I'm inconsistent -

[ This Message was edited by: shades on 2002-03-22 14:08 ]
shades is offline   Reply With Quote
Old Mar 22nd, 2002, 03:12 PM   #9
Mark W.
MrExcel MVP
 
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
Default

Quote:
On 2002-03-22 13:57, Mark W. wrote:
For example...

A2:B5 contains {1,"A";2,"B";3,"C";4,"D"}. Select A2:B5 (with A2 as the active cell) and apply a "Formula Is" condition with the formula =$A2=4 and a yellow cell pattern. The last row will be highlighted in yellow because its column A value is 4.

[ This Message was edited
by: Mark W. on 2002-03-22 14:06 ]
Consider this extension to my previous example. Enter 4 into cell D1. Select A2:B5 with cell A2 as the active cell. Change the "Formula Is" condition to =$A2=$D$1. Now you can change the value in D1 (between 1 and 4) and see a different row highlighted.

Do you see how this works? Your buttons should change the content of a cell or the value of a defined name and the conditional format should test for that value.
Mark W. is offline   Reply With Quote
Old Mar 22nd, 2002, 03:16 PM   #10
Mark W.
MrExcel MVP
 
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
Default

Quote:
On 2002-03-22 14:12, Mark W. wrote:
Quote:
On 2002-03-22 13:57, Mark W. wrote:
For example...

A2:B5 contains {1,"A";2,"B";3,"C";4,"D"}. Select A2:B5 (with A2 as the active cell) and apply a "Formula Is" condition with the formula =$A2=4 and a yellow cell pattern. The last row will be highlighted in yellow because its column A value is 4.

[ This Message was edited
by: Mark W. on 2002-03-22 14:06 ]
Consider this extension to my previous example. Enter 4 into cell D1. Select A2:B5 with cell A2 as the active cell. Change the "Formula Is" condition to =$A2=$D$1. Now you can change the value in D1 (between 1 and 4) and see a different row highlighted.

Do you see how this works? Your buttons should change the content of a cell or the value of a defined name and the conditional format should test for that value.
Why not use the formula, =INDEX(C8:C19,B1), and reference the results of this formula like I did for D1 in the example above?

[ This Message was edited by: Mark W. on 2002-03-22 14:16 ]
Mark W. 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 05:55 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