Macro to count the answers in a table
Closed
theinvictus
Posts
2
Registration date
Sunday February 3, 2013
Status
Member
Last seen
February 4, 2013
-
Feb 3, 2013 at 02:11 PM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Feb 5, 2013 at 10:59 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Feb 5, 2013 at 10:59 AM
Related:
- Macro to count the answers in a table
- How to delete part of a table in word - Guide
- School time table software free download full version - Download - Organisation and teamwork
- How to answer call with volume button android - Guide
- Little alchemy answers - Guide
- Spell number in excel without macro - Guide
3 responses
rizvisa1
Posts
4478
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
May 5, 2022
766
Feb 3, 2013 at 06:46 PM
Feb 3, 2013 at 06:46 PM
Is this output on a new sheet. are all groups to be on same sheet ?
theinvictus
Posts
2
Registration date
Sunday February 3, 2013
Status
Member
Last seen
February 4, 2013
Feb 4, 2013 at 05:48 PM
Feb 4, 2013 at 05:48 PM
Hi rizvisa1, it will be good if the output will be on a new sheet. Is it possible to name the sheet as Type A/B/C/D respectively? Thank you very much! :)
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
Feb 5, 2013 at 10:59 AM
Feb 5, 2013 at 10:59 AM
Hi Theinvictus,
This can also be done using array formula's.
Range A1:E12 is used for your example data.
To get Type A Q1 number of T's:
=SUM(($A$2:$A$12="Type A")*($B$2:$B$12="T"))
To get Type A Q1 number of F's:
=SUM(($A$2:$A$12="Type A")*($B$2:$B$12="F"))
To get Type A Q2 number of T's:
=SUM(($A$2:$A$12="Type A")*($C$2:$C$12="T"))
To get Type A Q2 number of F's:
=SOM(($A$2:$A$12="Type A")*($C$2:$C$12="F"))
etc...
Keep in mind that array formula's needs to be confirmed by hitting Ctrl+Shift+Enter.
Best regards,
Trowa
This can also be done using array formula's.
Range A1:E12 is used for your example data.
To get Type A Q1 number of T's:
=SUM(($A$2:$A$12="Type A")*($B$2:$B$12="T"))
To get Type A Q1 number of F's:
=SUM(($A$2:$A$12="Type A")*($B$2:$B$12="F"))
To get Type A Q2 number of T's:
=SUM(($A$2:$A$12="Type A")*($C$2:$C$12="T"))
To get Type A Q2 number of F's:
=SOM(($A$2:$A$12="Type A")*($C$2:$C$12="F"))
etc...
Keep in mind that array formula's needs to be confirmed by hitting Ctrl+Shift+Enter.
Best regards,
Trowa