Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
False Statement won't show
some of my data has - a, - b
i'm using this to pull out the hyphens, but if the statement is false, the data will not return the original cell if the original cell does not contain a "-" =IF(FIND("-",cell),LEFT(cell,FIND("-",cell)-1,cell) it is, however, pulling the info, minus the ending parts after the "-" beautifully. Any ideas? -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...tions/200806/1 |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
False Statement won't show
You are missing a closing bracket for your Left function
=IF(FIND("-",cell),LEFT(cell,FIND("-",cell)-1),cell) "spiz via OfficeKB.com" wrote: some of my data has - a, - b i'm using this to pull out the hyphens, but if the statement is false, the data will not return the original cell if the original cell does not contain a "-" =IF(FIND("-",cell),LEFT(cell,FIND("-",cell)-1,cell) it is, however, pulling the info, minus the ending parts after the "-" beautifully. Any ideas? -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...tions/200806/1 |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
False Statement won't show
try this to return the data after the "-"
=IF(ISERROR(FIND("-",A1)),A1,LEFT(A1,FIND("-",A1)-1)) On Jun 20, 9:37 am, "spiz via OfficeKB.com" <u34902@uwe wrote: some of my data has - a, - b i'm using this to pull out the hyphens, but if the statement is false, the data will not return the original cell if the original cell does not contain a "-" =IF(FIND("-",cell),LEFT(cell,FIND("-",cell)-1,cell) it is, however, pulling the info, minus the ending parts after the "-" beautifully. Any ideas? -- Message posted via OfficeKB.comhttp://www.officekb.com/Uwe/Forums.aspx/excel-functions/200806/1 |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
False Statement won't show
Assuming the data is TEXT only:
=TRIM(LEFT(A1&"-",FIND("-",A1&"-")-1)) -- Biff Microsoft Excel MVP "spiz via OfficeKB.com" <u34902@uwe wrote in message news:85f54f58fa631@uwe... some of my data has - a, - b i'm using this to pull out the hyphens, but if the statement is false, the data will not return the original cell if the original cell does not contain a "-" =IF(FIND("-",cell),LEFT(cell,FIND("-",cell)-1,cell) it is, however, pulling the info, minus the ending parts after the "-" beautifully. Any ideas? -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...tions/200806/1 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Two TRUE to one FALSE statement | Excel Worksheet Functions | |||
If Statement returns true when false? | Excel Discussion (Misc queries) | |||
If statement that does nothing when false | Excel Discussion (Misc queries) | |||
keep cell blank if IF statement is False | New Users to Excel | |||
keep cell blank when false in IF statement | Excel Discussion (Misc queries) |