?
Solved

excel trim requird

Posted on 2015-02-02
1
Medium Priority
?
49 Views
Last Modified: 2015-02-02
folks

need to remove all characters in a formula on value in column A after the full word on the left i.e.

test-
test
test-bckup
test-b1
test-b23

should only show test

trial-
trial-bkuo
trial-12345

should only show trial

car
car-12
car-ss

should only show car

all help will do
0
Comment
Question by:rutgermons
1 Comment
 
LVL 18

Accepted Solution

by:
Simon earned 2000 total points
ID: 40584967
If your data is in column "A", put this in B1.

=IFERROR(LEFT(A1,FIND("-",A1)-1),A1)
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
Windows Explorer let you handle zip folders nearly as any other folder: Copy, move, change, and delete, etc. In VBA you can also handle normal files and folders, but zip folders takes a little more - and that you'll find here.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question