[Solved] Text with Formula in same cell

Discuss the spreadsheet application
Post Reply
Bill1426
Posts: 14
Joined: Sat Sep 11, 2010 11:01 am

[Solved] Text with Formula in same cell

Post by Bill1426 »

I am looking to add text to a calculation in the same cell...

Ex. This is the final number: (this is where the total of the calculation would be)

Is this possible ??
Last edited by Bill1426 on Sun Oct 03, 2010 11:46 pm, edited 3 times in total.
OpenOffice 3.4.1 on Windows Vista [32-bit]
User avatar
Zizi64
Volunteer
Posts: 11511
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Text with Formula in same cell

Post by Zizi64 »

I am looking to add text to a calculation in the same cell...
Try this:
=(A1*B1)&"Ex"
Tibor Kovacs, Hungary; LO7.5.8/25.8.5.2 /Win7-10-11 x64Prof.
PortableApps: LO3.3.0-25.8.5.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
Bill1426
Posts: 14
Joined: Sat Sep 11, 2010 11:01 am

Re: Text with Formula in same cell

Post by Bill1426 »

That works if the calculation is before the text... I need it after.
OpenOffice 3.4.1 on Windows Vista [32-bit]
User avatar
Zizi64
Volunteer
Posts: 11511
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Text with Formula in same cell

Post by Zizi64 »

="Ex"&(A1*B1)

it works for me too (on Go-OO based OxygenOffice3.2.1 on WindowsXPprof.SP3)
Tibor Kovacs, Hungary; LO7.5.8/25.8.5.2 /Win7-10-11 x64Prof.
PortableApps: LO3.3.0-25.8.5.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
Bill1426
Posts: 14
Joined: Sat Sep 11, 2010 11:01 am

Re: Text with Formula in same cell

Post by Bill1426 »

I keep getting the #Value error..

="Total Calories (Max 1379):"&(B271:B279)
OpenOffice 3.4.1 on Windows Vista [32-bit]
User avatar
Zizi64
Volunteer
Posts: 11511
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Text with Formula in same cell

Post by Zizi64 »

Missing function name. SUM or other...

="Total Calories (Max 1379):"&(SUM(B271:B279))
Tibor Kovacs, Hungary; LO7.5.8/25.8.5.2 /Win7-10-11 x64Prof.
PortableApps: LO3.3.0-25.8.5.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
Bill1426
Posts: 14
Joined: Sat Sep 11, 2010 11:01 am

Re: Text with Formula in same cell

Post by Bill1426 »

Perfect... Thank you so much...
OpenOffice 3.4.1 on Windows Vista [32-bit]
Bill1426
Posts: 14
Joined: Sat Sep 11, 2010 11:01 am

Re: [Solved] Text with Formula in same cell

Post by Bill1426 »

Thanks, but to complicated... Zizi64's answer worked perfectly...
OpenOffice 3.4.1 on Windows Vista [32-bit]
xroox
Posts: 2
Joined: Thu May 06, 2010 6:52 pm

Re: [Solved] Text with Formula in same cell

Post by xroox »

I got an issue using ZiZi's method.

I was dividing numbers, and now I can't control the number of decimal places it shows... I have about 10 decimal places now and it won't fit into my cell!
Thanks! OpenOffice 3.2 on Mac OS 10.5.8
Bill1426
Posts: 14
Joined: Sat Sep 11, 2010 11:01 am

Re: [Solved] Text with Formula in same cell

Post by Bill1426 »

Just extent the cell width...
OpenOffice 3.4.1 on Windows Vista [32-bit]
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: [Solved] Text with Formula in same cell

Post by acknak »

Use the TEXT function to display a value according to a given format; for example, format "0" produces a number with no decimal digits.

="Total Calories (Max 1379):"&TEXT(SUM(B271:B279);"0")
AOO4/LO5 • Linux • Fedora 23
suren
Posts: 1
Joined: Tue Nov 18, 2014 2:13 pm

Re: [Solved] Text with Formula in same cell

Post by suren »

Try CONCATENATE(text1, text2) i.e. CONCATENATE("The total sum is: ",ROUND(SUM(G2:G20),2))
text1 = "The total sum is: "
text2 = ROUND(SUM(G2:G20),2)
Round(number,2) - restricts the answer to 2 decimal places
OpenOffice 4.1 on Windows 7
Post Reply