Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Functions
Hi,
Is it possible to do a formula like when cell background (or font color) is red, a certain cell will return some value? Thanks! |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Functions
Possible with a VBA-Function like :
Function cValue(rng As Range, xValue) Application.Volatile If rng.Interior.ColorIndex = 3 Or rng.Font.ColorIndex = 3 Then cValue = xValue End Function in ur sheet type : =cValue(any-cell,any-value) "Tim" skrev: Hi, Is it possible to do a formula like when cell background (or font color) is red, a certain cell will return some value? Thanks! |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Functions
Just a note. Changing a cells background colour does not force a calculation.
So when you first change the background the value will not show up. It will show up as soon as any action is taken that cuases a calculation anywhere in the application. -- HTH... Jim Thomlinson "excelent" wrote: Possible with a VBA-Function like : Function cValue(rng As Range, xValue) Application.Volatile If rng.Interior.ColorIndex = 3 Or rng.Font.ColorIndex = 3 Then cValue = xValue End Function in ur sheet type : =cValue(any-cell,any-value) "Tim" skrev: Hi, Is it possible to do a formula like when cell background (or font color) is red, a certain cell will return some value? Thanks! |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Functions
Can you teach me how to do that? Please in detail... Many thanks in advance! :)
"excelent" wrote: Possible with a VBA-Function like : Function cValue(rng As Range, xValue) Application.Volatile If rng.Interior.ColorIndex = 3 Or rng.Font.ColorIndex = 3 Then cValue = xValue End Function in ur sheet type : =cValue(any-cell,any-value) "Tim" skrev: Hi, Is it possible to do a formula like when cell background (or font color) is red, a certain cell will return some value? Thanks! |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
Functions
Hi
A good and a bad news! I did it! :-) But, the file became 4MB in size... :'( "Tim" wrote: Can you teach me how to do that? Please in detail... Many thanks in advance! :) "excelent" wrote: Possible with a VBA-Function like : Function cValue(rng As Range, xValue) Application.Volatile If rng.Interior.ColorIndex = 3 Or rng.Font.ColorIndex = 3 Then cValue = xValue End Function in ur sheet type : =cValue(any-cell,any-value) "Tim" skrev: Hi, Is it possible to do a formula like when cell background (or font color) is red, a certain cell will return some value? Thanks! |
#6
Posted to microsoft.public.excel.misc
|
|||
|
|||
Functions
Brand new workbook with 3 tabs and a x in A1 : 13,5 KB
Same workbook with my Function : 19,0 KB dono what goes wron in ur case :-) "Tim" skrev: Hi A good and a bad news! I did it! :-) But, the file became 4MB in size... :'( "Tim" wrote: Can you teach me how to do that? Please in detail... Many thanks in advance! :) "excelent" wrote: Possible with a VBA-Function like : Function cValue(rng As Range, xValue) Application.Volatile If rng.Interior.ColorIndex = 3 Or rng.Font.ColorIndex = 3 Then cValue = xValue End Function in ur sheet type : =cValue(any-cell,any-value) "Tim" skrev: Hi, Is it possible to do a formula like when cell background (or font color) is red, a certain cell will return some value? Thanks! |
#7
Posted to microsoft.public.excel.misc
|
|||
|
|||
Functions
Maybe because I copied it to an entire column...
"excelent" wrote: Brand new workbook with 3 tabs and a x in A1 : 13,5 KB Same workbook with my Function : 19,0 KB dono what goes wron in ur case :-) "Tim" skrev: Hi A good and a bad news! I did it! :-) But, the file became 4MB in size... :'( "Tim" wrote: Can you teach me how to do that? Please in detail... Many thanks in advance! :) "excelent" wrote: Possible with a VBA-Function like : Function cValue(rng As Range, xValue) Application.Volatile If rng.Interior.ColorIndex = 3 Or rng.Font.ColorIndex = 3 Then cValue = xValue End Function in ur sheet type : =cValue(any-cell,any-value) "Tim" skrev: Hi, Is it possible to do a formula like when cell background (or font color) is red, a certain cell will return some value? Thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
XL2003 FILTER FUNCTIONS VS. XL2007 FILTER FUNCTIONS | Excel Worksheet Functions | |||
efficiency: database functions vs. math functions vs. array formula | Excel Discussion (Misc queries) | |||
Looking for a site with functions that substitute the ATP functions | Excel Worksheet Functions | |||
functions | Excel Worksheet Functions | |||
Nesting functions in the functions dialog box | Excel Worksheet Functions |