How can I set up to have a data range, say D5:K5, change color (backround or font) conditional on the result of an equation in cell A5 (the equation returns either a YES or a “”). D5 through K5 already contain other equations.
Thanks
Stephen
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Conditional Format
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Conditional Format
- This topic has 14 replies, 6 voices, and was last updated 24 years, 1 month ago.
AuthorTopicWSepic60sman
AskWoody LoungerMarch 23, 2001 at 6:24 pm #354230Viewing 1 reply threadAuthorReplies-
WSAndrew Cronnolly
AskWoody Lounger -
WSepic60sman
AskWoody LoungerMarch 23, 2001 at 9:11 pm #520078Thanks, Andrew. I was able to set the conditional format for an entire row of my table but now I need to copy it down so that when a “yes” appears in any cell from like A5 to A25
the corresponding row will turn Blue. Since I have 5 or 6 tables to set this up for with each one having up to 40 rows, I need some way of doing it without having to do a row at a time. I tried blocking 20 rows in column B and then opening Conditional Format and it let me create $A$5:$A$25 by dragging down column A but when I entered =$A$5:$A$25=”YES” and set the format, nothing happened.
Any ideas.
Stephen -
WSAndrew Cronnolly
AskWoody Lounger -
WSepic60sman
AskWoody Lounger -
WScapri
AskWoody LoungerMarch 24, 2001 at 10:13 pm #520153That’s interesting about the one $ sign. Are there specific rules around using only one $ sign? eg. before or after the letter
I frequently do a lot of copying of conditional formatting. Usually I have to add or remove the $ signs depending on the effect I want to achieve and the relation to the cell I am referencing.
-
WSAndrew Cronnolly
AskWoody LoungerMarch 24, 2001 at 11:05 pm #520158There are no specific rules other than those that apply to normal formulas and how they are referenced. The default is both $ signs, as it is assumed that the reference is to an absolute cell. If you want the column to be unchanged for cells in the range you put the $ before the A. If you want the row unchanged you put the $ before the number. It is not a question of before or after, the $ sign goes before the element it applies to. The sign might appear as though it is after the letter, but that is only because it is before the number.
The $ means that the element it applies to will not change if the format is copied., i.e. if the column is A, and is preceded by a $, then all cells refer to column A. Similarly with rows.One use for relative (no $ at all) conditional formatting is to use it to highlight duplicate rows in a sorted list. If all cells in the list are highlighted you know you have an exact match.
Hope that clarifies rather than confuses,
Andrew C
-
WSJIMbythebay
AskWoody LoungerMarch 27, 2001 at 12:34 am #520386Hi Folks,
I almost never use conditional formatting except in the following manner:
1) Select one cell in the range-to-be-formatted
2) Set the conditions using the conditional format dialog
3) Selectively getting rid of “absolutes” ($)
4) Copy the formatting to the other cells in the rangeThis simple technique takes much better advantage of the power of conditional formatting, and it took me a while to figure it out.
JIM
-
WSepic60sman
AskWoody LoungerMarch 28, 2001 at 3:04 am #520555Hey Jimbo or is it JimBay?
If you remove the first $ sign when you are using the formula version, then the can’t copy the fomatting across the rows so that the formats are conditional on what appears in the first column. For example, I want the whole row to light up to alert the user to look at what is going on in the first column so they can take the appropriate action. What I don’t get is the following. I have “Yes” appearing, say, in A3, A5, and A9. If I block out A2:A20 (my data range), set conditional formula = $A2=”Yes” and set my Formats, it works great. But if I change it and set
conditional formula = $A3=”Yes”, the formatting totally changes (Black background and Yellow text for the “Yes” cells now becomes Black for cells with no text and nothing for the “Yes” cells. Is the convention that you have to use the top cell in a blocked out range to set the formating conditions for the entire range. Also, I tried dragging over the range to get like =$A2:$A12=”yes” and had no luck at all. -
WSJIMbythebay
AskWoody LoungerMarch 28, 2001 at 6:01 pm #520636Oops. I guess there is a better way to describe what I was trying to describe. Here is “try #2”.
It is easier to think in terms of one cell when it comes to conditional formatting. Therefore, set the conditions for one cell, then Copy, and Paste Special the formats. Then, inspect the conditional format of one of the other cells you copied to, and decide if it is adequate. If not, figure out why not, and why the Copy and Paste Special didn;t work. Usually, it has to do with the absolute notations in teh original conditions. Then, go back to the first one, selectively remove the $, Copy and Paste Special again.
I have difficulty following verbal descriptions of such things, but I could probably help of you could work up a sample and post it here, with a description of what you want to happen, and what is happening isntead that you don’t want.
Jimbo is fine!
-
WSepic60sman
AskWoody LoungerMarch 29, 2001 at 1:42 am #520696Thanks, Jim:
I got it working the way I want now. I just have to remember to go back to this file to see how I did it. I have not yet been able to get it to conditionally format an area in one sheet depending on a value in another sheet but there are many ways around this so I don’t think I will pursue it further. -
WSrory
AskWoody LoungerMarch 29, 2001 at 10:40 am #520739Hi,
This isn’t always very practical but you can use conditional formatting based on the value in a cell in another sheet if you name that cell first. For example, if you define a name ‘test’ that refers to cell A1 on sheet1, then on sheet2 you can add a conditional format =test=4 to a cell and that will work, even though =’sheet1′!A1=4 won’t work.
Hope that helps. -
WSJIMbythebay
AskWoody LoungerMarch 29, 2001 at 10:28 pm #520844True indeed. Because of my typical application of conditional formatting (changing the display of individual cells in a range based on their corresponding cells in another range), using named ranges doesn’t work. I resort to setting the conditions for one cell, with a relative reference, then copying the format to the other cells. It’s an important but subtle distinction, and it goes against my usual strategy of using named ranges whenever possible.
-
WSrory
AskWoody LoungerMarch 30, 2001 at 3:39 pm #520975Jim,
Now that I think more about it, if you define the name as a relative reference (eg ‘test’ =’Sheet1′!A1), then you can use this on a different worksheet and it will refer to the corresponding cell on Sheet1 – i.e. if you use it in cell A2 on sheet2, it refers to cell A2 on sheet1. This does mean that you can use it to conditionally format a range on one sheet based on the values of the same range on another sheet (if you see what I mean)
FWIW.
-
-
-
-
-
WSjlkirk
AskWoody Lounger
Viewing 1 reply thread -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Notice on termination of services of LG Mobile Phone Software Updates
by
Alex5723
9 hours, 30 minutes ago -
Update your Apple Devices Wormable Zero-Click Remote Code Execution in AirPlay..
by
Alex5723
5 hours, 31 minutes ago -
Amazon denies it had plans to be clear about consumer tariff costs
by
Alex5723
11 hours, 56 minutes ago -
Return of the brain dead FF sidebar
by
EricB
2 hours, 33 minutes ago -
windows settings managed by your organization
by
WSDavidO61
6 hours, 38 minutes ago -
Securing Laptop for Trustee Administrattor
by
PeachesP
6 hours, 50 minutes ago -
The local account tax
by
Susan Bradley
2 hours, 41 minutes ago -
Recall is back with KB5055627(OS Build 26100.3915) Preview
by
Alex5723
18 hours, 32 minutes ago -
Digital TV Antenna Recommendation
by
Win7and10
11 hours, 4 minutes ago -
Server 2019 Domain Controllers broken by updates
by
MP Support
1 day, 6 hours ago -
Google won’t remove 3rd party cookies in Chrome as promised
by
Alex5723
1 day, 8 hours ago -
Microsoft Manager Says macOS Is Better Than Windows 11
by
Alex5723
1 day, 11 hours ago -
Outlook (NEW) Getting really Pushy
by
RetiredGeek
13 hours, 41 minutes ago -
Steps to take before updating to 24H2
by
Susan Bradley
4 hours, 30 minutes ago -
Which Web browser is the most secure for 2025?
by
B. Livingston
18 hours, 8 minutes ago -
Replacing Skype
by
Peter Deegan
6 hours, 41 minutes ago -
FileOptimizer — Over 90 tools working together to squish your files
by
Deanna McElveen
1 day, 5 hours ago -
Excel Macro — ask for filename to be saved
by
nhsj
2 hours, 37 minutes ago -
Trying to backup Win 10 computer to iCloud
by
SheltieMom
6 hours, 27 minutes ago -
Windows 11 Insider Preview build 26200.5570 released to DEV
by
joep517
3 days, 11 hours ago -
Windows 11 Insider Preview build 26120.3941 (24H2) released to BETA
by
joep517
3 days, 13 hours ago -
Windows 11 Insider Preview Build 22635.5305 (23H2) released to BETA
by
joep517
3 days, 13 hours ago -
No April cumulative update for Win 11 23H2?
by
Peobody
2 days, 1 hour ago -
AugLoop.All (TEST Augmentation Loop MSIT)
by
LarryK
3 days, 13 hours ago -
Boot Sequence for Dell Optiplex 7070 Tower
by
Serge Carniol
4 days, 4 hours ago -
OTT Upgrade Windows 11 to 24H2 on Unsupported Hardware
by
bbearren
4 days, 8 hours ago -
Inetpub can be tricked
by
Susan Bradley
2 days, 15 hours ago -
How merge Outlook 2016 .pst file w/into newly created Outlook 2024 install .pst?
by
Tex265
3 days, 2 hours ago -
FBI 2024 Internet Crime Report
by
Alex5723
4 days, 11 hours ago -
Perplexity CEO says its browser will track everything users do online
by
Alex5723
1 day, 21 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.