ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Percentage calculations from an unsorted two column list (https://www.excelbanter.com/excel-discussion-misc-queries/99425-percentage-calculations-unsorted-two-column-list.html)

Rokuro kubi

Percentage calculations from an unsorted two column list
 
A and B columns are both sourced with data from another worksheet - A
is always a 2 letter code, eg. "Re" or "Ca", and B is always a numeric.
I want to keep the workbook macro-free so without using macros to sort
or subtotal the columns first, how can I calculate the percentages of
each code's numerics, so I can present these on another sheet?


Rokuro kubi

Percentage calculations from an unsorted two column list
 

Rokuro kubi wrote:
A and B columns are both sourced with data from another worksheet - A
is always a 2 letter code, eg. "Re" or "Ca", and B is always a numeric.
I want to keep the workbook macro-free so without using macros to sort
or subtotal the columns first, how can I calculate the percentages of
each code's numerics, so I can present these on another sheet?


OK I got it - this is what SUMIF is made for.


Mallycat

Percentage calculations from an unsorted two column list
 

You could try using =sumif to sum all the totals for each type.


--
Mallycat
------------------------------------------------------------------------
Mallycat's Profile: http://www.excelforum.com/member.php...o&userid=35514
View this thread: http://www.excelforum.com/showthread...hreadid=561674


Rokuro kubi

Percentage calculations from an unsorted two column list
 

Mallycat wrote:
You could try using =sumif to sum all the totals for each type.


--
Mallycat
------------------------------------------------------------------------
Mallycat's Profile: http://www.excelforum.com/member.php...o&userid=35514
View this thread: http://www.excelforum.com/showthread...hreadid=561674


I think you must have sent it to me telepathically first LOL

Works perfectly, cheers



All times are GMT +1. The time now is 07:58 PM.

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