Solved

Excel 2000 error parsing text in cell

Posted on 2013-01-31
3
267 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 500 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

730 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