Jump to content

Recommended Posts

Hi all,

 

 

I need some help learning doing math calculation, hopefully you guys here can help me out.

 

How do you make a TOTAL percentage correctly calculated if the TOTAL percentage is based on lets say 5 other average percentage.

 

Example:

 

I have five (5) tables, lets call the T1 through T5.

In each table, I have five (5) rows, lets call these R1 through R5.

Each row, states only TRUE or FALSE.

 

So, it could look like this:

 

T1: R1=FALSE, R2=TRUE, R3=TRUE, R4=FALSE, R5=TRUE

 

So in order to calculate the percentage of HOW many are in status TRUE, the calculation would be made like this: 3 ROWS have value TRUE. So, 3 divided by 5 (number of total ROWS) will equal 0,6, which is 60%.

 

Now, for the rest of the tables it could look like this:

T1 = 60%

T2 = 60%

T3 = 80%

T4 = 20%

T5 = 0%

 

If I now want to give an overall percentage for all the tables percentage values, HOW do I do the math for that?

 

Is it as simple as (60+60+80+20+0)/5 ??

 

Anyone got some feedback about this?

 

Thanks in advance,

 

Andreas

 

Link to comment
https://forums.phpfreaks.com/topic/143778-help-with-math/
Share on other sites

As in:

 

A)  1/5 = 20%

B)  20 /100 = 20%

 

They both equal 20% but B would have a higher weight.  Even if they're the same numbers you can have one section weighted higher than the next.

 

In your case it seems that you don't want weighted percentages, your all have the same numbers.

 

Link to comment
https://forums.phpfreaks.com/topic/143778-help-with-math/#findComment-755938
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.