Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I always seem to find what I need in previous threads without starting my own. I have started a couple but that's it..."

Geography

Where in the world do Tek-Tips members come from?
joel009 (Programmer)
10 May 12 8:15
This problem was presented to me at work. I do not know if it is  even possible. Any input appreciated.

We have data going into the cells with 3 or 4 different colors. Is there a way to use the font color in the cell to base calculations on?

Thanks in advance for looking
Joel

Joel

SkipVought (Programmer)
10 May 12 8:53


Hi,

USER colored cells as DATA is a really BAD policy.  Color pallets are not necessarily consistent from one user to another.

Rather, it is better to use Conditional Formatting to color and format, which is based on data values. VALUES is what you need to calculate.

Of course, it is possible to TRY the color approach, but it is pitfall strewn.

Skip,

glassesJust traded in my old subtlety...
for a NUANCE!tongue

SkipVought (Programmer)
10 May 12 8:56

Example

CODE

select case activecell.interior.color
  case vbblue
     'do blue calc here
  case vbred
     'do red calc here
  case vbgreen
     'do green calc here
end select
 

Skip,

glassesJust traded in my old subtlety...
for a NUANCE!tongue

Deniall (TechnicalUser)
10 May 12 17:34

I'm 101% with Skip on this. Data should drive colour rather than colour driving data.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close