Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is there any way to write a formula that will examine the cell contents, and
return one of three different values? I want the formula to look at column A, and if column A value is less than 100, return "50", if it's 100 or more, to return "100", and if it's null or 0, to return "0." I'm using Office 2003 Thanks, |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
you can use another if statement as one of your arguments in your if statement
eg =if( [logicaltest1] , "test 1 true" , if ( [logicaltest2] , "test 2 true" , "neither true" ) ) In your case: =if(A1=100,100,if(A1="",0,50)) "Patience" wrote: Is there any way to write a formula that will examine the cell contents, and return one of three different values? I want the formula to look at column A, and if column A value is less than 100, return "50", if it's 100 or more, to return "100", and if it's null or 0, to return "0." I'm using Office 2003 Thanks, |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Type this into Cell B1:
=IF(A1=0, 0, IF(A1<100, 50, IF(A1=100, 100, 0))) |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Tue, 14 Jun 2005 05:49:01 -0700, "Patience"
wrote: Is there any way to write a formula that will examine the cell contents, and return one of three different values? I want the formula to look at column A, and if column A value is less than 100, return "50", if it's 100 or more, to return "100", and if it's null or 0, to return "0." I'm using Office 2003 Thanks, =IF(A1=0,0,IF(A1<100,50,100)) --ron |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
embedding "ISERROR" function into an "IF" statement | Excel Worksheet Functions | |||
Complex if test program possible? If "value" "value", paste "value" in another cell? | Excel Discussion (Misc queries) | |||
vba: How do I write a "For Each Statement" nested in a "With Statement"? | Excel Programming | |||
vba: How do I write a "For Each Statement" nested in a "With Statement"? | Excel Programming |