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 Apr 29th, 2002, 12:04 PM   #1
giacomo
Board Regular
 
giacomo's Avatar
 
Join Date: Feb 2002
Posts: 1,802
Default

I am using the following conditional format to bold certain cities that match to 4 specific cities:

=MATCH(A1,CityList,0)

where CityList is a named range that refers to cells $D$3:$D$6, the data contained in those cells are the following 4 city office names:

Bakersfield
Tucson
SonomaMarin
Austin

This is working great with the exception of SonomaMarin, it bolds the other cities but not this one.

I'm using excel 97 on windows NT.

Thanks for your help,
giacomo
giacomo is offline   Reply With Quote
Old Apr 29th, 2002, 12:12 PM   #2
Brian from Maui
Board Regular
 
Brian from Maui's Avatar
 
Join Date: Feb 2002
Posts: 7,743
Default

Try checking for any extra spaces in your list and/or in A1
Brian from Maui is offline   Reply With Quote
Old Apr 29th, 2002, 12:16 PM   #3
giacomo
Board Regular
 
giacomo's Avatar
 
Join Date: Feb 2002
Posts: 1,802
Default

Quote:
On 2002-04-29 11:12, Brian from Maui wrote:
Try checking for any extra spaces in your list and/or in A1
Thanks for your reply, no additional spaces, I should have mentioned that in my post. I even checked the two using the EXACT formula and the result is TRUE.

Also, when I use the MATCH formula in a cell, instead of within Conditional Formatting it gives the right result.

[ This Message was edited by: giacomo on 2002-04-29 11:20 ]
giacomo is offline   Reply With Quote
Old Apr 29th, 2002, 12:22 PM   #4
bergy
Board Regular
 
Join Date: Apr 2002
Posts: 112
Default

It works okay for me. Why don't you re-define your list? Maybe Sonoma\Marin didn't make the list properly.
bergy is offline   Reply With Quote
Old Apr 29th, 2002, 12:36 PM   #5
giacomo
Board Regular
 
giacomo's Avatar
 
Join Date: Feb 2002
Posts: 1,802
Default

Quote:
On 2002-04-29 11:22, bergy wrote:
It works okay for me. Why don't you re-define your list? Maybe Sonoma\Marin didn't make the list properly.
Thanks, I tried your suggestion but it didn't help. I even tried replacing the list with the cell reference instead but that didn't help either.

Thanks,
giacomo
giacomo is offline   Reply With Quote
Old Apr 29th, 2002, 12:41 PM   #6
Brian from Maui
Board Regular
 
Brian from Maui's Avatar
 
Join Date: Feb 2002
Posts: 7,743
Default

How's about

=countif(range,a1)>=1
Brian from Maui is offline   Reply With Quote
Old Apr 29th, 2002, 12:48 PM   #7
bergy
Board Regular
 
Join Date: Apr 2002
Posts: 112
Default

Maybe it's an NT issue. I'm not up on NT, but could the '\' be causing the problem? Maybe NT thinks its a looking for a networked computer and not a string. Could you manually replace the '\' in CityList with a '-' and then do the same replacement in column A and see if it finds it then?
bergy is offline   Reply With Quote
Old Apr 29th, 2002, 12:50 PM   #8
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

Quote:
On 2002-04-29 11:04, giacomo wrote:
I am using the following conditional format to bold certain cities that match to 4 specific cities:

=MATCH(A1,CityList,0)

where CityList is a named range that refers to cells $D$3:$D$6, the data contained in those cells are the following 4 city office names:

Bakersfield
Tucson
SonomaMarin
Austin

This is working great with the exception of SonomaMarin, it bolds the other cities but not this one.

I'm using excel 97 on windows NT.

Thanks for your help,
giacomo

Apply LEN to the target entry in the CityList:

=LEN(D5)

and do the same wrt to the entry in the range where you apply cond format.

Are they equal?

Aladin Akyurek is offline   Reply With Quote
Old Apr 29th, 2002, 12:58 PM   #9
giacomo
Board Regular
 
giacomo's Avatar
 
Join Date: Feb 2002
Posts: 1,802
Default

Brian from Maui & bergy,

Thanks for sticking with me on this. I discovered the problem and it had nothing to do with my MATCH formula. I've been using conditional formatting to highlight every even numbered row in my worksheet, it just so happens that SonomaMarin was my only matching city that was on an even row.

Once I removed the other conditional format it worked fine. Any ideas on how I can get the two to work together?

thanks!
giacomo
giacomo is offline   Reply With Quote
Old Apr 29th, 2002, 01:01 PM   #10
Brian from Maui
Board Regular
 
Brian from Maui's Avatar
 
Join Date: Feb 2002
Posts: 7,743
Default

Aladin can!

What order do you have the formatting?
Brian from Maui 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 11:54 AM.


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