Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

general question about formula 2

Status
Not open for further replies.

eHanSolo

Technical User
May 24, 2004
260
GB
hi there,

I've seen people enter the following. Can anyone tell me why they add the '+' bit?? I can't seem to figure out the significance of this.

so a cell would contain something like:

=+A1

thanks for looking/helping!

e
 
Is this in a macro, or just in a worksheet?

Notice that you have posted in the VBA Visual Basic for Applications (Microsoft) Forum.

[tt]_____
[blue]-John[/blue][/tt]
[tab][red]The plural of anecdote is not data[/red]

Help us help you. Please read FAQ181-2886 before posting.
 
why they add the '+' bit
Probably to force a numeric evaluation of A1 ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
when you type +A1+A2 in the formula bar, Excel will automatically add the = in front to make sure you are writing an expression and not only text....

even tho the + will suffice, Excel still adds the =

have fun!

Daren J. Lahey
Programmer Analyst
FAQ183-874 contains Suggestions for Getting Quick and Appropriate Answers to your questions.
 
It is a legacy from Lotus123

In Lotus, the prefix for a formula was +
In excel it is =
But MS decided to allow either so that ex Lotus users would still be able to work in the same way (and so that Lotus spreadsheets could be loaded into excel and still work)

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
Some also do it as a coercion factor, such as when dealing with boolean (true/false) values, as True will evaluate to 1 and False will evaluate to 0 (in the worksheet environment, not so in the VBA environment).

You can also think of it as stating an implication, as the number (reference) is assumed to be positive (unless otherwise shown by the specific referenced value), meaning it's not coerced into being a negative (or reversed positive, whichever the case may be).

Regards,
Zack Barresse

Simplicity is the ultimate sophistication. What is a MS MVP? PODA
- Leonardo da Vinci
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top