Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I'm trying to enter a formula similar to
=IF(B1=0,"0")+IF(B1=1,A1*1)+IF(B1=2,A1*2) but instead of A1*1 or 2 etc. I want the result to return a text response such as =IF(B1="Hi","Hello")+IF(B1="Bye","Good bye") but this results in an error. What am I doing wrong? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=IF(B1="Hi","Hello","Good bye")
This assumes that the only two possible values in B1 are "hi" or "bye". Dave -- A hint to posters: Specific, detailed questions are more likely to be answered than questions that provide no detail about your problem. "Nater" wrote: I'm trying to enter a formula similar to =IF(B1=0,"0")+IF(B1=1,A1*1)+IF(B1=2,A1*2) but instead of A1*1 or 2 etc. I want the result to return a text response such as =IF(B1="Hi","Hello")+IF(B1="Bye","Good bye") but this results in an error. What am I doing wrong? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You can't add two text strings together - use & instead of + between
the two If statements. Hope this helps. Pete On Feb 14, 3:22 pm, Nater wrote: I'm trying to enter a formula similar to =IF(B1=0,"0")+IF(B1=1,A1*1)+IF(B1=2,A1*2) but instead of A1*1 or 2 etc. I want the result to return a text response such as =IF(B1="Hi","Hello")+IF(B1="Bye","Good bye") but this results in an error. What am I doing wrong? |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() try this idea =if(b1=0,"joe","")&if(b2=1," played","") but maybe you just want to nest em if(b1=0,dothis,if(b1=1,dothat,"")) -- Don Guillett SalesAid Software "Nater" wrote in message ... I'm trying to enter a formula similar to =IF(B1=0,"0")+IF(B1=1,A1*1)+IF(B1=2,A1*2) but instead of A1*1 or 2 etc. I want the result to return a text response such as =IF(B1="Hi","Hello")+IF(B1="Bye","Good bye") but this results in an error. What am I doing wrong? |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
Maybe this is what you're looking for: =IF(B1="Hi","Hello",IF(B1="Bye","Good Bye","")) HTH Jean-Guy "Nater" wrote: I'm trying to enter a formula similar to =IF(B1=0,"0")+IF(B1=1,A1*1)+IF(B1=2,A1*2) but instead of A1*1 or 2 etc. I want the result to return a text response such as =IF(B1="Hi","Hello")+IF(B1="Bye","Good bye") but this results in an error. What am I doing wrong? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
HELP on "left","right","find","len","substitute" functions | Excel Discussion (Misc queries) | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel | |||
create links to check boxes marked "good" fair"and "bad" | Excel Worksheet Functions | |||
Complex if test program possible? If "value" "value", paste "value" in another cell? | Excel Discussion (Misc queries) | |||
Insert "-" in text "1234567890" to have a output like this"123-456-7890" | Excel Discussion (Misc queries) |