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. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
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, 2 months 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
-
Perplexity Pro free for 12 mos for Samsung Galaxy phones
by
Patricia Grace
6 hours, 22 minutes ago -
June KB5060842 update broke DHCP server service
by
Alex5723
4 hours, 54 minutes ago -
AMD Ryzen™ Chipset Driver Release Notes 7.06.02.123
by
Alex5723
8 hours, 56 minutes ago -
Excessive security alerts
by
WSSebastian42
4 hours, 37 minutes ago -
* CrystalDiskMark may shorten SSD/USB Memory life
by
Alex5723
18 hours, 25 minutes ago -
Ben’s excellent adventure with Linux
by
Ben Myers
25 minutes ago -
Seconds are back in Windows 10!
by
Susan Bradley
5 hours, 33 minutes ago -
WebBrowserPassView — Take inventory of your stored passwords
by
Deanna McElveen
15 hours, 28 minutes ago -
OS news from WWDC 2025
by
Will Fastie
19 hours, 39 minutes ago -
Need help with graphics…
by
WSBatBytes
2 hours, 55 minutes ago -
AMD : Out of Bounds (OOB) read vulnerability in TPM 2.0 CVE-2025-2884
by
Alex5723
1 day, 9 hours ago -
Totally remove or disable BitLocker
by
CWBillow
9 hours ago -
Windows 10 gets 6 years of ESU?
by
n0ads
12 hours, 15 minutes ago -
Apple, Google stores still offer China-based VPNs, report says
by
Nibbled To Death By Ducks
1 day, 20 hours ago -
Search Forums only bring up my posts?
by
Deo
23 minutes ago -
Windows Spotlight broken on Enterprise and Pro for Workstations?
by
steeviebops
2 days, 8 hours ago -
Denmark wants to dump Microsoft for Linux + LibreOffice
by
Alex5723
2 days ago -
How to get Microsoft Defender to honor Group Policy Setting
by
Ralph
2 days, 8 hours ago -
Apple : Paragon’s iOS Mercenary Spyware Finds Journalists Target
by
Alex5723
2 days, 19 hours ago -
Music : The Rose Room – It’s Been A Long, Long Time album
by
Alex5723
2 days, 20 hours ago -
Disengage Bitlocker
by
CWBillow
2 days, 10 hours ago -
Mac Mini M2 Service Program for No Power Issue
by
Alex5723
2 days, 22 hours ago -
New Win 11 Pro Geekom Setup questions
by
Deo
17 minutes ago -
Windows 11 Insider Preview build 26200.5651 released to DEV
by
joep517
3 days, 5 hours ago -
Windows 11 Insider Preview build 26120.4441 (24H2) released to BETA
by
joep517
3 days, 5 hours ago -
iOS 26,, MacOS 26 : Create your own AI chatbot
by
Alex5723
3 days, 9 hours ago -
New PC transfer program recommendations?
by
DaveBoston
1 day, 14 hours ago -
Windows 11 Insider Preview Build 22631.5545 (23H2) released to Release Preview
by
joep517
3 days, 13 hours ago -
Windows 10 Build 19045.6029 (22H2) to Release Preview Channel
by
joep517
3 days, 13 hours ago -
Best tools for upgrading a Windows 10 to an 11
by
Susan Bradley
3 days, 1 hour ago
Recent blog posts
- Ben’s excellent adventure with Linux
- Seconds are back in Windows 10!
- WebBrowserPassView — Take inventory of your stored passwords
- OS news from WWDC 2025
- Best tools for upgrading a Windows 10 to an 11
- Master patch listing for June 10, 2025
- 24H2 may not be offered June updates
- June 2025 updates are out
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.