![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Posts: 1,802
|
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 |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Posts: 7,743
|
Try checking for any extra spaces in your list and/or in A1
|
|
|
|
|
|
#3 | |
|
Board Regular
Join Date: Feb 2002
Posts: 1,802
|
Quote:
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 ] |
|
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Apr 2002
Posts: 112
|
It works okay for me. Why don't you re-define your list? Maybe Sonoma\Marin didn't make the list properly.
|
|
|
|
|
|
#5 | |
|
Board Regular
Join Date: Feb 2002
Posts: 1,802
|
Quote:
Thanks, giacomo |
|
|
|
|
|
|
#6 |
|
Board Regular
Join Date: Feb 2002
Posts: 7,743
|
How's about
=countif(range,a1)>=1 |
|
|
|
|
|
#7 |
|
Board Regular
Join Date: Apr 2002
Posts: 112
|
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?
|
|
|
|
|
|
#8 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
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? |
|
|
|
|
|
|
#9 |
|
Board Regular
Join Date: Feb 2002
Posts: 1,802
|
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 |
|
|
|
|
|
#10 |
|
Board Regular
Join Date: Feb 2002
Posts: 7,743
|
Aladin can!
What order do you have the formatting? |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|