Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cell Value based on Colour of Cell

Status
Not open for further replies.

binaryfingers

Technical User
Joined
Jul 26, 2002
Messages
118
Is there a way of being able to look up a value in a cell by the background colour of the cell?

We use a spreadsheet that has several different product codes in column c, and each product code has mulitple values with diferent colour backgrounds on the same line(each colour representing a different division) and I would like to use the background colour of the cell to locate the correct value..

Can this be done?

Thanks,
 
Hi there,

You would need a UDF for that (which should be asked in the VBA forum707).

Regards,
Zack Barresse

Simplicity is the ultimate sophistication. What is a MS MVP? PODA
- Leonardo da Vinci
 
If the position of the value in the row (ie are all divisons in the same column?) can be used to determine the division then this would probably be a better route to take than the VBA one.

Regards
Ken..........

----------------------------------------------------------------------------
[peace]It's easier to beg forgiveness than ask permission[2thumbsup]
----------------------------------------------------------------------------
 


Ken,

Could you elaborate on "...then this would probably be a better route to take..." emphasis added by poster

Skip,

[glasses] [red][/red]
[tongue]
 
hi Mintjulep

They are applied by formatting the background colour by another member in a remote office.

Thanks,

 
I'm having trouble understanding

several different product codes in column c, and each product code has mulitple values with diferent colour backgrounds on the same line
 
Hi

Is there a way of being able to cut a section of my spreadsheet for all to be able to fully understand?

Thanks,
 
LOL - What I meant was that if there was a logic behind the colouring that could be built into a formula then that would be a better option to take rather than use VBA :-)

Regards
Ken.............

----------------------------------------------------------------------------
[peace]It's easier to beg forgiveness than ask permission[2thumbsup]
----------------------------------------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top