Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Using "*" and "#" in If statements
I am trying to write an if statement to return a TRUE for any cell with a
string of text starting with "B". Was thinking something like if(B2="B"&***,B2,"") but I don't know the proper syntax for the B***. Any thoughts are appreciated. Thanks |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Using "*" and "#" in If statements
=if(left(b2,1)="b","starts with B","doesn't start with B")
or =if(countif(b2,"B*")0,"starts with b","doesn't start with b") Eric wrote: I am trying to write an if statement to return a TRUE for any cell with a string of text starting with "B". Was thinking something like if(B2="B"&***,B2,"") but I don't know the proper syntax for the B***. Any thoughts are appreciated. Thanks -- Dave Peterson |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Using "*" and "#" in If statements
=LEFT(B2,1)="B"
-- Kind regards, Niek Otten Microsoft MVP - Excel "Eric" wrote in message ... I am trying to write an if statement to return a TRUE for any cell with a string of text starting with "B". Was thinking something like if(B2="B"&***,B2,"") but I don't know the proper syntax for the B***. Any thoughts are appreciated. Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
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) | |||
change "true" and "false" to "availble" and "out of stock" | Excel Worksheet Functions | |||
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 | |||
Complex if test program possible? If "value" "value", paste "value" in another cell? | Excel Discussion (Misc queries) |