Google Answers Logo
View Question
 
Q: Microsoft Excel -- Convert all + and - to SUM Function ( No Answer,   2 Comments )
Question  
Subject: Microsoft Excel -- Convert all + and - to SUM Function
Category: Computers > Software
Asked by: adamx-ga
List Price: $10.00
Posted: 07 Sep 2005 08:33 PDT
Expires: 07 Oct 2005 08:33 PDT
Question ID: 565214
I'm working with a complicated Excel workbook that includes many
formulas. Some of them use + and - for adding and subtracting, and
some of them use the SUM function.

I need them all to use the SUM function. Is there a macro out there or
other tool that will convert all the formulas to use the SUM function?

The reason I need to do this is that Excel handles errors differently
for SUM than for +. If I get a #VALUE! error because of a non-numeric
data input, it won't go away on fixing the data input if the formulas
use + instead of SUM.

Please ask for clarification if you need it.

Thanks!
Answer  
There is no answer at this time.

Comments  
Subject: Re: Microsoft Excel -- Convert all + and - to SUM Function
From: 09091977-ga on 07 Sep 2005 12:41 PDT
 
Hi

Here is the Process to Change ur +'s and -'s to Sum Function.

1) Open the Excel Sheet
2) Press the Crtl + ~ Key
3) Excel would show the Formulas instead of the Result Numbers like it
normally used to
4) Press Crtl + H or Find Replace, REPLACE Window Opens
5) In the FIND WHAT key in " =+ " and in the REPLACE WITH " =SUM( "
(dont use the Double Quotes)
6) Press the REPLACE ALL Button on the Replace Window
7) Again, Press Crtl + H or Find Replace, REPLACE Window Opens
8) In the FIND WHAT key in " + " (Plus Symbol or Addition) and in the
REPLACE WITH " , " (Comma) (dont use the Double Quotes)
9) Press the REPLACE ALL Button on the Replace Window
10) Press the Crtl + ~ Key again and your results will show normally as usual

Note : 
1) Your can select particluar cells and do the Process or cant do it
for the Entire Sheet. But suggest you to Sellect the Cells in which
the Formulas are to be replaced from +'s to SUM Functions.
2) You cannot replace a -'s to SUM Function. Suggest you to retain the
formulas as is.

Hope this helps
Subject: Re: Microsoft Excel -- Convert all + and - to SUM Function
From: rak1-ga on 08 Sep 2005 16:00 PDT
 
To supplement 09091977-ga's comments, you can replace the minus signs too.  

First search and replace "=-" with "=sum(-".  Then search and replace
"-" with ",-".  This will put the right text into your sum formulas,
except for any negatives that come first in the formula.  These will
now say "sum(,-".  Search and replace this string with "sum(-" and
you're all set.

Incidentally, I can't replicate the problem you're trying to solve. 
Using simple + and - formulas, I don't get a #VALUE! error after
correcting a non-text input.  (I'm using Excel 2002)

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy