简体   繁体   中英

How to calculate/sum numbers in a single cell in excel?

Example:

In a single cell I want to calculate 10+20+30 and the answer should appear into the next adjacent cell.

Hope this helps in understanding the question.

Thanks In Advance.

The following thread will answer your question.

How to turn a string formula into a "real" formula

Check article pointed to in the answer by @iDevlop (not the accepted answer). EVALUATE function in a 'name' is probably the easiest way to go.

Edit:

Rough directions:

  • Create a new name (Eg. myResult ) and associate its value to evaluating the cell your expression is to by typed in (Eg: assuming your text expression is in cell A1 of stylesheet Sheet1 : =Evaluate(Sheet1!$A$1) )
  • In the next cell (where you wish the result to be displayed), add a formula that simply evaluates the name you created (Eg: =myResult ).

How you create a new name depends en the Excel version. On Excel 2010/2013: Formulas -> Name Manager -> Define Name. For older versions, refer to thread mentioned above.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM