Mourning the loss of our friend, WhitPhil.
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Business Applications
Tag Cloud
access audio black screen blue screen boot bsod connection crash dell desktop driver drivers dvd email error excel firefox hard drive hardware hijackthis internet keyboard laptop malware monitor motherboard network networking outlook problem processor recovery router safe mode screen slow sound spyware tdlwsp.dll trojan upgrade video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Software & Hardware > Business Applications >
Conditional formatting excel 2007

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

 
Thread Tools
simplepa's Avatar
Member with 66 posts.
 
Join Date: Mar 2009
03-Nov-2009, 03:37 PM #1
Question Conditional formatting excel 2007
i have a spreadsheet and basically what I want to do is if a certain cells equals to a name, then I want that that row to change to a color thatI assigned to that name, which is blue. I already have done done but what I need help with is that if the other on that row doesnt have a value, then I want it to stay white color but if I add a value to a cell within that row, then I want it to turn blue. Please keep in mind that I have 7 names that I've assigned a color to that name.
Zack Barresse's Avatar
Computer Specs
Distinguished Member with 4,511 posts.
 
Join Date: Jul 2004
Location: Oregon, United States
Experience: I'ma learnin'!
03-Nov-2009, 09:48 PM #2
Hi there,

Can you provide some specific examples? Or better yet post a sample file?
simplepa's Avatar
Member with 66 posts.
 
Join Date: Mar 2009
04-Nov-2009, 11:05 AM #3
here is the sample
Attached Files
File Type: xlsx sample1.xlsx (8.6 KB, 6 views)
Zack Barresse's Avatar
Computer Specs
Distinguished Member with 4,511 posts.
 
Join Date: Jul 2004
Location: Oregon, United States
Experience: I'ma learnin'!
04-Nov-2009, 11:38 AM #4
So for your blank cells, if you want them blue with any value, select those cells, goto your CF (Conditional Formatting) on the Home tab, New Rule, Cells That Contain, change Between to Equal To, in the box on the right put in the asterisk (*) character, change the format to what you want.

Is that what you're looking for?
simplepa's Avatar
Member with 66 posts.
 
Join Date: Mar 2009
04-Nov-2009, 04:28 PM #5
yes something like that. however, I would have several names in the "name" column, and each name will correspondond to whatever color is assigned to their name. So in my example, Don has blue and John has green and Trishia has orang. So in the row where their name is listed I want the cell to change to their assigned color when a value entered
Zack Barresse's Avatar
Computer Specs
Distinguished Member with 4,511 posts.
 
Join Date: Jul 2004
Location: Oregon, United States
Experience: I'ma learnin'!
04-Nov-2009, 06:32 PM #6
You could do this with VBA, but I don't know of a way with standard CF. Are you opposed to VBA?
simplepa's Avatar
Member with 66 posts.
 
Join Date: Mar 2009
05-Nov-2009, 10:19 AM #7
No I am not opposed to using VBA. But quite honestly, I dont know anything about VBA. If you can help me with that, that would be great.
Zack Barresse's Avatar
Computer Specs
Distinguished Member with 4,511 posts.
 
Join Date: Jul 2004
Location: Oregon, United States
Experience: I'ma learnin'!
05-Nov-2009, 07:30 PM #8
Sure, np. Can you define the entire range where you would want this to apply to? Also, is your workbook going to contain that list somewhere, which has the name associated with it's respective color?
simplepa's Avatar
Member with 66 posts.
 
Join Date: Mar 2009
06-Nov-2009, 09:52 AM #9
well the ranges vary. it would have about columns and the row expanda as I add more info. As far as the names, it is not listed anywhere. It is manual input but i have about 7 names. Is there a ways where you can write the vba code for me and maybe a can just copy it and maybe deit it with the correcy names and or add the ranges?
Zack Barresse's Avatar
Computer Specs
Distinguished Member with 4,511 posts.
 
Join Date: Jul 2004
Location: Oregon, United States
Experience: I'ma learnin'!
06-Nov-2009, 11:31 AM #10
Well somebody might, but I won't. Don't take this the wrong way, but it would be the same as if you told me and I wrote it, but I would have more information. I could write some general code to do what you're asking, but I would need more details still. It's too non-specific. I can point you in the right direction if you want.

You'd need a worksheet change event
I'd start with testing the range, ensuring it's in the right location
Test the number of cells selected, decide if you want code to run on all cells or not
Test the value of the cell being changed, if it matters or not
Call code, or have in same routine, to check some range for some name for some color and make it the same

I know it's not direct, but neither are the details, but those are the lines of thought I had.
simplepa's Avatar
Member with 66 posts.
 
Join Date: Mar 2009
06-Nov-2009, 11:58 AM #11
Thanks. But you just lost me. Would it be better if I send you the worksheet?
Zack Barresse's Avatar
Computer Specs
Distinguished Member with 4,511 posts.
 
Join Date: Jul 2004
Location: Oregon, United States
Experience: I'ma learnin'!
06-Nov-2009, 01:06 PM #12
Don't email me, just attach the file to your post here.
simplepa's Avatar
Member with 66 posts.
 
Join Date: Mar 2009
09-Nov-2009, 03:22 PM #13
hi
here it is, The names are not there yet sunce it is manually entered.
Attached Files
File Type: xlsx Spreadsheet.xlsx (31.9 KB, 6 views)
Reply Bookmark and Share

Smart Search

Find your solution!



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.

Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 01:47 PM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.