![]() |
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 |
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 |
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 |
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 |
All times are GMT +1. The time now is 05:03 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com