I want to trim the data inside the cell so that i have eveything before the hyphen
For example, if a cell contains:
'Net Operating Loss - All Pre-1990 Carryforwards'
i want to trim it in such a way that i only have:
'Net Operating Loss'
Any suggestions on how to do this
Like this?
BTW Do you need to do this in VBA. The above can be achieved using Excel Formulas as well.
Let’s say you have “Net Operating Loss – All Pre-1990 Carryforwards” in Cell A1 then put this in Cell B1
EXCEL 2003
EXCEL 2007 Onwards