Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() Hi I am wondering if it is possible to change the number format of a column of values depending on a cell that says true or false. I would like to be able to specify it like a conditional fromat. I know you can do something in custom number format but as far as I know this will only evaluate the condition on the current cell value. Any help would be most appreciated. -- tmbo ------------------------------------------------------------------------ tmbo's Profile: http://www.excelforum.com/member.php...o&userid=37214 View this thread: http://www.excelforum.com/showthread...hreadid=574469 |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
write small code in a particular worksheet module:
Private Sub Worksheet_Change(ByVal Target As Range) If Target.Address = "$D$10" And Target.Value = 20 Then Target.NumberFormat = "00.00" Else Target.NumberFormat = "00" End If End Sub 'Target.Address = "$D$10" And Target.Value = 20 - example cell address $D$10 and value 10 'example format: Target.NumberFormat = "00.00" "tmbo" wrote: Hi I am wondering if it is possible to change the number format of a column of values depending on a cell that says true or false. I would like to be able to specify it like a conditional fromat. I know you can do something in custom number format but as far as I know this will only evaluate the condition on the current cell value. Any help would be most appreciated. -- tmbo ------------------------------------------------------------------------ tmbo's Profile: http://www.excelforum.com/member.php...o&userid=37214 View this thread: http://www.excelforum.com/showthread...hreadid=574469 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
" / " Changing Decimal number format to Fraction on Protected Cell | Excel Worksheet Functions | |||
how to create conditional format linked to date | Excel Discussion (Misc queries) | |||
Conditional format of minimum number | Excel Worksheet Functions | |||
How do I create a number format mm:ss:th (tenths and hundreths) | Excel Worksheet Functions | |||
how do I create conditional format | Excel Discussion (Misc queries) |