Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 109
Default Help with code or formula

I have the following problem and don't mind which solution is forthcoming:

Sheet1 contains data about claims made to our department (approx 700 rows).

Column A contains the claim reference number (5 digits) - there can be up to
50 rows with the same reference number.

Column D is either 'Adult' or 'Veal'.

Column F is either 'Yes' or 'No' to say if the animal is satisfactory.

What I need is the number of 'Adult' and 'Veal' claims that are
satisfactory. A satisfactory claim is defined as one where all animals in a
claim are 'Yes' in column F.

Thanks in advance.

Gareth




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Help with code or formula

try
=sumproduct((rngA=12345)*(rngD={"Adult","Veal"})*( rngF="Yes"))

"Gareth" wrote in message
...
I have the following problem and don't mind which solution is forthcoming:

Sheet1 contains data about claims made to our department (approx 700

rows).

Column A contains the claim reference number (5 digits) - there can be up

to
50 rows with the same reference number.

Column D is either 'Adult' or 'Veal'.

Column F is either 'Yes' or 'No' to say if the animal is satisfactory.

What I need is the number of 'Adult' and 'Veal' claims that are
satisfactory. A satisfactory claim is defined as one where all animals in

a
claim are 'Yes' in column F.

Thanks in advance.

Gareth






  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 109
Default Help with code or formula

the problem with this is that I don't know the the claim numbers'

Example:

25 animals with the same ref number, they are all Adult and all are Yes -
this would be 1 satisfactory claim.

41 animals with another refernce number (but the same), all Adult but with 2
No's - this shouldn't be counted as a satifacctory claim.

I think what I want to do is count the number of animals in a claim, if all
are yes then count it as 1.

Gareth

"Don Guillett" wrote in message
...
try
=sumproduct((rngA=12345)*(rngD={"Adult","Veal"})*( rngF="Yes"))

"Gareth" wrote in message
...
I have the following problem and don't mind which solution is

forthcoming:

Sheet1 contains data about claims made to our department (approx 700

rows).

Column A contains the claim reference number (5 digits) - there can be

up
to
50 rows with the same reference number.

Column D is either 'Adult' or 'Veal'.

Column F is either 'Yes' or 'No' to say if the animal is satisfactory.

What I need is the number of 'Adult' and 'Veal' claims that are
satisfactory. A satisfactory claim is defined as one where all animals

in
a
claim are 'Yes' in column F.

Thanks in advance.

Gareth








  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Help with code or formula

You need to use IF, AND Function, send me a sample of the
spreadsheet and I'll enter the formula for you.

Jez
-----Original Message-----
the problem with this is that I don't know the the claim

numbers'

Example:

25 animals with the same ref number, they are all Adult

and all are Yes -
this would be 1 satisfactory claim.

41 animals with another refernce number (but the same),

all Adult but with 2
No's - this shouldn't be counted as a satifacctory claim.

I think what I want to do is count the number of animals

in a claim, if all
are yes then count it as 1.

Gareth

"Don Guillett" wrote in message
...
try
=sumproduct((rngA=12345)*(rngD={"Adult","Veal"})*

(rngF="Yes"))

"Gareth" wrote in

message
...
I have the following problem and don't mind which

solution is
forthcoming:

Sheet1 contains data about claims made to our

department (approx 700
rows).

Column A contains the claim reference number (5

digits) - there can be
up
to
50 rows with the same reference number.

Column D is either 'Adult' or 'Veal'.

Column F is either 'Yes' or 'No' to say if the

animal is satisfactory.

What I need is the number of 'Adult' and 'Veal'

claims that are
satisfactory. A satisfactory claim is defined as

one where all animals
in
a
claim are 'Yes' in column F.

Thanks in advance.

Gareth








.

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
formula or vba code Nader Excel Worksheet Functions 14 August 16th 06 10:54 AM
formula code nobbyknownowt Excel Discussion (Misc queries) 5 August 10th 06 05:40 PM
Formula or VBA code help Michael168[_2_] Excel Programming 3 September 15th 03 06:00 PM
SUM Formula using code Sony[_2_] Excel Programming 1 August 27th 03 09:34 AM
Formula or code Jim[_15_] Excel Programming 0 July 9th 03 05:51 PM


All times are GMT +1. The time now is 06:00 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"