Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMP JMP is offline
external usenet poster
 
Posts: 3
Default Creating a formula

Hi,

I need to create a formula that will look in 2 different colums and return a
count.

Column A will contain data (usually numbers) relating to reference codes to
areas (ie Bristol will be 039, Stroud will be 038 etc)

Column G contains a decision relating to that particular row (eg Delete,
Compliant, For Validation)

I want to be able to create a formula that will count the positive results
if A=039 & G=Delete (and like wise if A=039 & G=Compliant etc.)

I can do get the formula to do the first bit (ie =countif(A2:A500,039)) but
I don't know who to get the second half of the formula in the same cell.

I'm not as knowledgable on complex formulas (well it's complex to me
anyway!) as the ones I use usually are the basic versions. It's probably very
simple, but I just can't seam to get my head around it.

Can anyone help?
--
Your advice is appreciated
:-)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Creating a formula

Try this:

=SUMPRODUCT((A1:A10="039")*(G1:G10="Delete"))

Adjust range references to suit your situation

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"JMP" wrote:

Hi,

I need to create a formula that will look in 2 different colums and return a
count.

Column A will contain data (usually numbers) relating to reference codes to
areas (ie Bristol will be 039, Stroud will be 038 etc)

Column G contains a decision relating to that particular row (eg Delete,
Compliant, For Validation)

I want to be able to create a formula that will count the positive results
if A=039 & G=Delete (and like wise if A=039 & G=Compliant etc.)

I can do get the formula to do the first bit (ie =countif(A2:A500,039)) but
I don't know who to get the second half of the formula in the same cell.

I'm not as knowledgable on complex formulas (well it's complex to me
anyway!) as the ones I use usually are the basic versions. It's probably very
simple, but I just can't seam to get my head around it.

Can anyone help?
--
Your advice is appreciated
:-)

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,173
Default Creating a formula

Try something like

=SUMPRODUCT(--($A$1:$A$8="039"),--($G$1:$G$8="Delete"))

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"JMP" wrote in message
...
Hi,

I need to create a formula that will look in 2 different colums and return
a
count.

Column A will contain data (usually numbers) relating to reference codes
to
areas (ie Bristol will be 039, Stroud will be 038 etc)

Column G contains a decision relating to that particular row (eg Delete,
Compliant, For Validation)

I want to be able to create a formula that will count the positive results
if A=039 & G=Delete (and like wise if A=039 & G=Compliant etc.)

I can do get the formula to do the first bit (ie =countif(A2:A500,039))
but
I don't know who to get the second half of the formula in the same cell.

I'm not as knowledgable on complex formulas (well it's complex to me
anyway!) as the ones I use usually are the basic versions. It's probably
very
simple, but I just can't seam to get my head around it.

Can anyone help?
--
Your advice is appreciated
:-)


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
Is it possible? DakotaNJ Excel Worksheet Functions 25 September 18th 06 09:30 PM
Creating a complicated formula Cheryl Excel Worksheet Functions 3 July 19th 06 12:50 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
need help creating formula based on cell value Brad Excel Discussion (Misc queries) 3 April 1st 05 07:51 PM
Creating a specific formula booroni New Users to Excel 3 March 26th 05 10:05 AM


All times are GMT +1. The time now is 09:00 AM.

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"