Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
is Error help
Hello,
I'm currently using the following formula: =TRIM(LEFT(A1,FIND("-",A1)-1)) How would I write this so that if the referred to cell is blank then the cell I have the formula in shows blank instead of an error? Thanks Jim |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
is Error help
==IF(A1="","",TRIM(LEFT(A1,FIND("-",A1)-1)))
"Jim" wrote in message ... Hello, I'm currently using the following formula: =TRIM(LEFT(A1,FIND("-",A1)-1)) How would I write this so that if the referred to cell is blank then the cell I have the formula in shows blank instead of an error? Thanks Jim |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
is Error help
=IF(ISERR(FIND("-",A1)),"",LEFT(A1,FIND("-",TRIM(A1))-1)) -- Don Guillett Microsoft MVP Excel SalesAid Software "Jim" wrote in message ... Hello, I'm currently using the following formula: =TRIM(LEFT(A1,FIND("-",A1)-1)) How would I write this so that if the referred to cell is blank then the cell I have the formula in shows blank instead of an error? Thanks Jim |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
is Error help
=IF(A1="","",TRIM(LEFT(A1,FIND("-",A1)-1)))
If you want to trap for cell contents not including a hyphen, you may prefer =IF(ISNUMBER(FIND("-",A1)),TRIM(LEFT(A1,FIND("-",A1)-1)),"") -- David Biddulph "Jim" wrote in message ... Hello, I'm currently using the following formula: =TRIM(LEFT(A1,FIND("-",A1)-1)) How would I write this so that if the referred to cell is blank then the cell I have the formula in shows blank instead of an error? Thanks Jim |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Error: "Excel encountered an error and had to remove some formatti | Excel Discussion (Misc queries) | |||
Counting instances of found text (Excel error? Or user error?) | Excel Worksheet Functions | |||
I have Error 1919 Error Configuring ODBC dataSource Database | Excel Discussion (Misc queries) | |||
Excel 2003 Macro Error - Runtime error 1004 | Excel Discussion (Misc queries) |