 | Member with 66 posts. | | | | 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. | | Distinguished Member with 4,511 posts. | | Join Date: Jul 2004 Location: Oregon, United States Experience: I'ma learnin'! | | Hi there,
Can you provide some specific examples? Or better yet post a sample file? | | Member with 66 posts. | | | | | | | Distinguished Member with 4,511 posts. | | Join Date: Jul 2004 Location: Oregon, United States Experience: I'ma learnin'! | | 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? | | Member with 66 posts. | | | | 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 | | Distinguished Member with 4,511 posts. | | Join Date: Jul 2004 Location: Oregon, United States Experience: I'ma learnin'! | | You could do this with VBA, but I don't know of a way with standard CF. Are you opposed to VBA? | | Member with 66 posts. | | | | 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. | | Distinguished Member with 4,511 posts. | | Join Date: Jul 2004 Location: Oregon, United States Experience: I'ma learnin'! | | 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? | | Member with 66 posts. | | | | 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? | | 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. | | Member with 66 posts. | | |
06-Nov-2009, 11:58 AM
#11 | Thanks. But you just lost me. Would it be better if I send you the worksheet? | | 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. | | Member with 66 posts. | | |
09-Nov-2009, 03:22 PM
#13 | hi here it is, The names are not there yet sunce it is manually entered. | |
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.
| You Are Using: |
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. | |
|