Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default counting entries in 2 columns

This should be simple but I can't figure it out. I have created a table to
tabulate the number of guests to a party. Some are adults, some are
children, some are teens. Some are invited to only the morning event, some
to both morning and evening. Columns are "age category" (adult, child, teen
are entries), "coming to morning" (yes, no are entries), "coming to evening"
(yes, no are entries). Some have responded, many have not yet. All are text
entries. How do I create formulas to sum the adults attending morning,
adults attending evening and the same for children and teens? I've tried
using the IF, COUNT and COUNTIF functions, but none seem to work for text
data in more than one column. Thanks
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default counting entries in 2 columns

Thanks very much. You solved my problem.

"Sandy Mann" wrote:

Column B = "Adult"
Column C = "Child"
Column D = "Tean"
Column E = "Morning"
Column F = "Evening"

Count of Adults coming to Morning:

=SUMPRODUCT((B2:B100="Yes")*(E2:E100="Yes"))

Count of Tean comin to both:

=SUMPRODUCT((D2:D100="Yes")*(E2:E100="Yes")*(F2:F1 00="Yes"))

and so on

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"lippbj" wrote in message
...
This should be simple but I can't figure it out. I have created a table
to
tabulate the number of guests to a party. Some are adults, some are
children, some are teens. Some are invited to only the morning event,
some
to both morning and evening. Columns are "age category" (adult, child,
teen
are entries), "coming to morning" (yes, no are entries), "coming to
evening"
(yes, no are entries). Some have responded, many have not yet. All are
text
entries. How do I create formulas to sum the adults attending morning,
adults attending evening and the same for children and teens? I've tried
using the IF, COUNT and COUNTIF functions, but none seem to work for text
data in more than one column. Thanks




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,345
Default counting entries in 2 columns

Glad that it worked for you.

--
Regards,

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"lippbj" wrote in message
...
Thanks very much. You solved my problem.

"Sandy Mann" wrote:

Column B = "Adult"
Column C = "Child"
Column D = "Tean"
Column E = "Morning"
Column F = "Evening"

Count of Adults coming to Morning:

=SUMPRODUCT((B2:B100="Yes")*(E2:E100="Yes"))

Count of Tean comin to both:

=SUMPRODUCT((D2:D100="Yes")*(E2:E100="Yes")*(F2:F1 00="Yes"))

and so on

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"lippbj" wrote in message
...
This should be simple but I can't figure it out. I have created a
table
to
tabulate the number of guests to a party. Some are adults, some are
children, some are teens. Some are invited to only the morning event,
some
to both morning and evening. Columns are "age category" (adult, child,
teen
are entries), "coming to morning" (yes, no are entries), "coming to
evening"
(yes, no are entries). Some have responded, many have not yet. All
are
text
entries. How do I create formulas to sum the adults attending morning,
adults attending evening and the same for children and teens? I've
tried
using the IF, COUNT and COUNTIF functions, but none seem to work for
text
data in more than one column. Thanks







  #5   Report Post  
Posted to microsoft.public.excel.misc
Ag Ag is offline
external usenet poster
 
Posts: 16
Default counting entries in 2 columns

Use an array formulae as shown below ( the formulae gives the list of
adults who will not come in the evening )


Guest name Age Category coming to morning coming to evening
a1 adult yes no
a2 teen yes no
a3 child yes no
a4 adult yes yes
a6 child no no


=SUM((B2:B6="adult")*(D2:D6="no"))

Please ctrl+shift+enter to enter the array formulae


HTH
Regards
Anirudh

On Jan 13, 10:13*pm, lippbj wrote:
This should be simple but I can't figure it out. *I have created a table to
tabulate the number of guests to a party. *Some are adults, some are
children, some are teens. *Some are invited to only the morning event, some
to both morning and evening. *Columns are "age category" (adult, child, teen
are entries), "coming to morning" (yes, no are entries), "coming to evening"
(yes, no are entries). *Some have responded, many have not yet. *All are text
entries. *How do I create formulas to sum the adults attending morning,
adults attending evening and the same for children and teens? *I've tried
using the IF, COUNT and COUNTIF functions, but none seem to work for text
data in more than one column. *Thanks




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default counting entries in 2 columns

Thanks, but this was a little too advanced for me. I went with the simpler
solution posted above. I appreciate your help however.

"Ag" wrote:

Use an array formulae as shown below ( the formulae gives the list of
adults who will not come in the evening )


Guest name Age Category coming to morning coming to evening
a1 adult yes no
a2 teen yes no
a3 child yes no
a4 adult yes yes
a6 child no no


=SUM((B2:B6="adult")*(D2:D6="no"))

Please ctrl+shift+enter to enter the array formulae


HTH
Regards
Anirudh

On Jan 13, 10:13 pm, lippbj wrote:
This should be simple but I can't figure it out. I have created a table to
tabulate the number of guests to a party. Some are adults, some are
children, some are teens. Some are invited to only the morning event, some
to both morning and evening. Columns are "age category" (adult, child, teen
are entries), "coming to morning" (yes, no are entries), "coming to evening"
(yes, no are entries). Some have responded, many have not yet. All are text
entries. How do I create formulas to sum the adults attending morning,
adults attending evening and the same for children and teens? I've tried
using the IF, COUNT and COUNTIF functions, but none seem to work for text
data in more than one column. Thanks



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting entries and copying pcor New Users to Excel 2 March 19th 07 03:33 PM
Counting entries Dos Equis Excel Worksheet Functions 4 November 20th 06 03:24 AM
Counting entries in 2+ columns petess Excel Discussion (Misc queries) 6 April 4th 06 03:42 PM
Counting Entries Jimbo Excel Worksheet Functions 6 April 29th 05 08:27 PM
Counting unique entries in column A but only if specific values appear in columns B and C markx Excel Worksheet Functions 1 February 10th 05 11:52 AM


All times are GMT +1. The time now is 02:43 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"