[Solved] Simple percentage formula

Discuss the spreadsheet application
Post Reply
jondevault
Posts: 4
Joined: Fri Apr 08, 2016 9:50 pm

[Solved] Simple percentage formula

Post by jondevault »

Very simple but for some reason I can't figure it out. X is my total number, and I want to figure out what percentage Y is of that number, and what percentage Z is.

Example:
Cell A1: 20 (X)
Cell B1: 5 (Y)
Cell C1: 15 (Z)

Cell B2: 25% (of X)
Cell C2: 75% (of X)

I'm sure I'm over complicating it, but i just cant figure it out. Any help would be greatly appreciated.
Last edited by Hagar Delest on Sat Apr 09, 2016 4:54 pm, edited 1 time in total.
Reason: tagged [Solved].
openoffice 4.2.1 on windows 7
FJCC
Moderator
Posts: 9640
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Simple percentage formula HELP!

Post by FJCC »

You can use the formulas

Code: Select all

=B1/A1*100

Code: Select all

=C1/A1*100
to calculate the percentages. Alternatively, you can eliminate the *100 part of each formula and format the cells to display the answer as a percentage. There is a % symbol on the formatting tool bar or you can use the menu Format -> Cells and on the Numbers tab set the Category to Percent.
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
thinman3
Volunteer
Posts: 382
Joined: Sat Jul 11, 2009 8:53 pm

Re: Simple percentage formula HELP!

Post by thinman3 »

formulas in col. C ; note the $ (absolute) indicator referencing A$1 in the formulas.....as you copy the
formula down in col. C , the row # 1 will stay fixed, whereas the row numbers for the numbers you are
wanting as the % of A$1 will change.
Simple % formula.ods
(7.33 KiB) Downloaded 911 times
3.4.1 & 4.1.5 on MS Windows 7 Pro x64
jondevault
Posts: 4
Joined: Fri Apr 08, 2016 9:50 pm

Re: Simple percentage formula HELP!

Post by jondevault »

Excellent, thank you very much!
openoffice 4.2.1 on windows 7
User avatar
Lupp
Volunteer
Posts: 3761
Joined: Sat May 31, 2014 7:05 pm
Location: München, Germany

Re: Simple percentage formula HELP!

Post by Lupp »

FJCC wrote:Alternatively, you can eliminate the *100 part of each formula and format the cells to display the answer as a percentage. There is a % symbol on the formatting tool bar or you can use the menu Format -> Cells and on the Numbers tab set the Category to Percent.

Sorry. This may mislead someone to think the results he is getting both ways are equivalent. Tis is an error by a factor of 100. Reformatting does not change values!

In fact a ratio expressed as "1/8" (one eighth) or as "0.125" or as "12.5%" is exactly the same.
On the other hand the value of a cell containing the formula

Code: Select all

=B1/A1*100
is exactly 100 times the value of a cell containing the formula

Code: Select all

=B1/A1
completely independent of the question in what way it is formatted (if not as 'Text').

Depending on the number format we gave the cell the result of "=1/8" can even be displayed as "03:00:00" or as "30/12/1899" (now suppressing the fractional part) without changing the numeric result of any formula referencing that cell.
On Windows 10: LibreOffice 25.8.4 and older versions, PortableOpenOffice 4.1.7 and older, StarOffice 5.2
---
Lupp from München
Post Reply