Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 208
Default Count Multiple Text Entries

Hi,

Following a post I did yesterday 'Count Text to get a Percentage'....my next
post is that I need to count text entries in differing cells to get a result
- Probably Sumproduct is the probably the answer but despite reading up can't
get it.

In Cell A1 (Title Merged across): Have you Carried out a H&S Check?
In Cell A2: Select Job Title
In Cell A3: Is the list (Validation List), Plasterer, Chippy, Brickie
In Cell B3: Answer = Yes or No (Validation)

Q: If I get: Chippy (A3) and Yes (B3)......how can I sum this to get a
figure? to the effect that every Chippy that answers Yes = (a Number) based
on the two answers.......and every Chippy that answers No = (a Number) based
on the two answers?

Q: I will need to get a percentage from this eventually i.e. the total
number of Chippy's that answer Yes = (A Number), Total number of Chippy's
that answer No = (A Number) against the total number of Chippy's...which is I
believe will be:

Total Chippy who answered Yes(divided by)Total Chippy = Answer

Also is it possible to sum more than two Text Answers....having looked at
this discussion group...there only ever seems to be two parts to a
'Sumproduct'...I assume(wrong to assume I know..but) there must be more that
two?

Sorry if my post is too lengthy...got deadline...haven't we all !!!!

Thanks in anticipation

Craig
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 395
Default Count Multiple Text Entries

Sumproduct works over a range of data; my answer will be generic because it
isn't clear whether your have one sheet per "response", or if the values in
A3 and B3 are repeated (for new values) across new columns, or new rows, or
whatever.

Sumproduct works with many conditions. Example:
Sumproduct ((A1:A1000= "Chippy")*1,(B1:B1000="No")*1, (C1:C1000 100)*1)

you will see some people preface the sumproduct statements with a double
negative, others multiply the result of each statement by 1 to force the
returned value to be numeric.

-Make sure that your ranges are all the same size
-I don't recall offhand if sumproduct is one of them, but some formulas
don't play well with a full column reference (C:C) so I tend to use fixed row
numbers by habit (C2:C10000)
-I don't recall offhand how sumproduct interacts with error codes, but my
guess is that it will not return a value if any of the component cells have a
value of DIV#0, #N/A, etc.
-To get your total (your denominator) just remove the component of the
sumproduct that counts that element, e.g.
Sumproduct ((A1:A1000= "Chippy")*1, (C1:C1000 100)*1)

If you want to tally completely separate criteria, use AND, OR statements
Sumproduct (OR(AND((A1:A1000= "Chippy")*1,(B1:B1000="No")*1),AND((A1:A1000=
"Oreo")*1,(B1:B1000="Yes")*1)))

(aircode, I probably don't have the right number of parans, but this gives
the basic idea)

HTH,
Keith


"Craig" wrote:

Hi,

Following a post I did yesterday 'Count Text to get a Percentage'....my next
post is that I need to count text entries in differing cells to get a result
- Probably Sumproduct is the probably the answer but despite reading up can't
get it.

In Cell A1 (Title Merged across): Have you Carried out a H&S Check?
In Cell A2: Select Job Title
In Cell A3: Is the list (Validation List), Plasterer, Chippy, Brickie
In Cell B3: Answer = Yes or No (Validation)

Q: If I get: Chippy (A3) and Yes (B3)......how can I sum this to get a
figure? to the effect that every Chippy that answers Yes = (a Number) based
on the two answers.......and every Chippy that answers No = (a Number) based
on the two answers?

Q: I will need to get a percentage from this eventually i.e. the total
number of Chippy's that answer Yes = (A Number), Total number of Chippy's
that answer No = (A Number) against the total number of Chippy's...which is I
believe will be:

Total Chippy who answered Yes(divided by)Total Chippy = Answer

Also is it possible to sum more than two Text Answers....having looked at
this discussion group...there only ever seems to be two parts to a
'Sumproduct'...I assume(wrong to assume I know..but) there must be more that
two?

Sorry if my post is too lengthy...got deadline...haven't we all !!!!

Thanks in anticipation

Craig

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
Count instances of text in date entries MilusC Excel Worksheet Functions 11 August 2nd 08 05:48 PM
count text entries pja Excel Worksheet Functions 4 May 2nd 08 10:43 PM
Count single Text in cells with multiple text entries WSC Excel Discussion (Misc queries) 6 January 9th 07 04:17 PM
count cells that contain text entries Debi Excel Worksheet Functions 2 October 3rd 05 10:11 PM
how to count unique entries with multiple condition Michael Excel Worksheet Functions 6 June 29th 05 12:38 PM


All times are GMT +1. The time now is 04:23 AM.

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

About Us

"It's about Microsoft Excel"