Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 23
Default Counting Question

This is probably a simple solution, but I am drawing a blank.

I need to count based on two criteria.

Count the number of times 'SKU Data'!A:A=B16 and 'SKU Data'!D:D=L23

Help Please
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 125
Default Counting Question

use countif()

-John

"rlee1999" wrote:

This is probably a simple solution, but I am drawing a blank.

I need to count based on two criteria.

Count the number of times 'SKU Data'!A:A=B16 and 'SKU Data'!D:D=L23

Help Please

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 125
Default Counting Question

Add a little to my last post, something like
=countif('SKU Data'!A:A,B16)+countif('SKU Data'!D:D,L23)

-John

"rlee1999" wrote:

This is probably a simple solution, but I am drawing a blank.

I need to count based on two criteria.

Count the number of times 'SKU Data'!A:A=B16 and 'SKU Data'!D:D=L23

Help Please

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,081
Default Counting Question

=SUMPRODUCT(--(A1:A100000=B16),--(B1:B100000=L23))

"rlee1999" wrote:

This is probably a simple solution, but I am drawing a blank.

I need to count based on two criteria.

Count the number of times 'SKU Data'!A:A=B16 and 'SKU Data'!D:D=L23

Help Please

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 23
Default Counting Question

This is giving me a #NAME? Error, any ideas?


"Duke Carey" wrote:

=SUMPRODUCT(--(A1:A100000=B16),--(B1:B100000=L23))

"rlee1999" wrote:

This is probably a simple solution, but I am drawing a blank.

I need to count based on two criteria.

Count the number of times 'SKU Data'!A:A=B16 and 'SKU Data'!D:D=L23

Help Please



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 23
Default Counting Question

Hi John,

This is giving me a value of 64, which is the number of rows that contain
the value in B16 and seems to be ignoring the second countif function.
Otherwise it would be returning a value of 84, which is the 64 it is
returning + the 20 rows that contain the value from L23. Any ideas on how to
count rows where only the two criteria both occur?

"John Bundy" wrote:

Add a little to my last post, something like
=countif('SKU Data'!A:A,B16)+countif('SKU Data'!D:D,L23)

-John

"rlee1999" wrote:

This is probably a simple solution, but I am drawing a blank.

I need to count based on two criteria.

Count the number of times 'SKU Data'!A:A=B16 and 'SKU Data'!D:D=L23

Help Please

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 125
Default Counting Question

Not without a workaround, The formula I gave works fine for me, can you try
to do a countif for one criteria in one column and a countif for the other
criteria in another column? if they both work then you should be able to add
a "+" and paste one on the end of the other

-John


  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,081
Default Counting Question

try

=SUMPRODUCT(--('SKU Data'!A1:A100000=B16),--('SKU Data'!B1:B100000=L23))


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
Excel 2000 Counting occurrances Paul Excel Discussion (Misc queries) 3 August 2nd 06 06:50 PM
Counting Question ingalla Excel Discussion (Misc queries) 3 June 2nd 06 05:09 PM
Counting Question Metalteck Excel Discussion (Misc queries) 1 June 21st 05 09:01 PM
Hints And Tips For New Posters In The Excel Newsgroups Gary Brown Excel Worksheet Functions 0 April 15th 05 05:47 PM
Counting question Carl Excel Discussion (Misc queries) 11 March 11th 05 09:28 PM


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