?
Solved

Excel 2000 error parsing text in cell

Posted on 2013-01-31
3
Medium Priority
?
269 Views
Last Modified: 2013-01-31
I have a spreadsheet with multiple total lines. I'm looking for a function to remove the word "total" from a cell. I have tried a function like this =LEFT(A1, FIND(" ", A1)-1) but if there is only one word, I get an error. If I try to use ISError, I just get true or false.
What am I missing? I'm using Excel 2000 which may make a difference in the formula.

12192
12192 Total
12514
12514 Total
900000
900000 Total
A1389099
A1389099 Total
0
Comment
Question by:minamina6
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 23

Accepted Solution

by:
NBVC earned 2000 total points
ID: 38840142
Try:

=TRIM(SUBSTITUTE(A1,"Total",""))

or

=LEFT(A1, FIND(" ", A1&" ")-1)  if you only want first word, where other word might not be Total.
0
 
LVL 50

Expert Comment

by:barry houdini
ID: 38840157
Using your original approach but with a slight amendment....

=LEFT(A1, FIND(" ", A1&" ")-1)

regards, barry
0
 

Author Closing Comment

by:minamina6
ID: 38840170
NB_VC,
Thanks for giving me two options. I can use the second one elsewhere.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This article describes a serious pitfall that can happen when deleting shapes using VBA.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

770 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