Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Using cell color as criteria
Hi, I'd like to write a formula with IF function, using a cell color as a
criteria. Is this possible? Like, =IF([cell.fill.color]=red,[dothis],[dothat]) Thanks. |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Using cell color as criteria
if range("a1").interior.ColorIndex=3 then msgbox "hi"
-- Don Guillett SalesAid Software "Susan" wrote in message ... Hi, I'd like to write a formula with IF function, using a cell color as a criteria. Is this possible? Like, =IF([cell.fill.color]=red,[dothis],[dothat]) Thanks. |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Using cell color as criteria
Susan,
Before you pursue this, check out Formatting as data (sorting on color, etc.) at http://www.smokeylake.com/excel/excel_truths.htm. -- Earl Kiosterud www.smokeylake.com Note: The norm in these groups is to top-post. Some folks prefer bottom-posting. But if you bottom-post to a reply that's already top-posted, the thread gets messy. When in Rome... ----------------------------------------------------------------------- "Susan" wrote in message ... Hi, I'd like to write a formula with IF function, using a cell color as a criteria. Is this possible? Like, =IF([cell.fill.color]=red,[dothis],[dothat]) Thanks. |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Using cell color as criteria
Hi Susan,
It looks like you are trying to do this with a spreadsheet function - you can't, you need to use VBA. You can either create a custom VBA FUNCTION depending on what you mean by "do this" or a VBA subroutine, which is what Don is alluding to . -- Thanks, Shane Devenshire "Susan" wrote: Hi, I'd like to write a formula with IF function, using a cell color as a criteria. Is this possible? Like, =IF([cell.fill.color]=red,[dothis],[dothat]) Thanks. |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
Using cell color as criteria
Yeah, I didn't think I could do it with a simple spreadsheet function.
Thanks all for responses! I will look into the VBA solution. "ShaneDevenshire" wrote: Hi Susan, It looks like you are trying to do this with a spreadsheet function - you can't, you need to use VBA. You can either create a custom VBA FUNCTION depending on what you mean by "do this" or a VBA subroutine, which is what Don is alluding to . -- Thanks, Shane Devenshire "Susan" wrote: Hi, I'd like to write a formula with IF function, using a cell color as a criteria. Is this possible? Like, =IF([cell.fill.color]=red,[dothis],[dothat]) Thanks. |
#6
Posted to microsoft.public.excel.misc
|
|||
|
|||
Using cell color as criteria
See http://www.xldynamic.com/source/xld.ColourCounter.html for a working
solution -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Susan" wrote in message ... Hi, I'd like to write a formula with IF function, using a cell color as a criteria. Is this possible? Like, =IF([cell.fill.color]=red,[dothis],[dothat]) Thanks. |
#7
Posted to microsoft.public.excel.misc
|
|||
|
|||
Using cell color as criteria
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel: Syntax to change cell color based on color of another cell | Excel Worksheet Functions | |||
Can I color a cell if a certain criteria is met? | Excel Discussion (Misc queries) | |||
Can criteria in countif statement be a color? | Excel Worksheet Functions | |||
I am trying to color fill a cell based on specific criteria | Excel Discussion (Misc queries) | |||
color cells when criteria is met | Excel Discussion (Misc queries) |