ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Adding totals from different columns (https://www.excelbanter.com/excel-worksheet-functions/261404-adding-totals-different-columns.html)

Eskercat

Adding totals from different columns
 
Hi
I have a column called year group, one called total attendance and one
called possible total. I would like to create the total % attendance for the
group year 7 by adding up the total attendances and making this a % of the
possible total:

e.g.

Year 7, 213, 290
Year 8, 214, 290
Year 7, 203, 270
Year 8, 213, 260

So I would like to add only those that relate to year 7, and then create a %.

Is this possible?

Ashish Mathur[_2_]

Adding totals from different columns
 
Hi,

Try this

=sumif($B$2:$B$5,D7,$C$2:$C$5)/sumif($B$2:$B$5,D7,$D$2:$D$5)

D7 has Year 7. I have assumed that the data below is in range B2:D5
--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Eskercat" wrote in message
...
Hi
I have a column called year group, one called total attendance and one
called possible total. I would like to create the total % attendance for
the
group year 7 by adding up the total attendances and making this a % of the
possible total:

e.g.

Year 7, 213, 290
Year 8, 214, 290
Year 7, 203, 270
Year 8, 213, 260

So I would like to add only those that relate to year 7, and then create a
%.

Is this possible?




All times are GMT +1. The time now is 05:39 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com