Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
andrew.curley
 
Posts: n/a
Default Counting cells using multiple criteria


I have been counting the occurance of model numbers using multiple
criteria over two or more columns. I've been using SUMIF with multiple
criteria in an array, but my problem is that, because I have 40,000 rows
of data, it takes an age to do the calculation.

Is there an easier/quicker way?

Example:
{=SUM(IF(($K$6:$K$40002=B127)*(LEFT($N$6:$N$40002, 2)="PR")*($L$6:$L$40002="V"),1,0))}

Thanks


--
andrew.curley
------------------------------------------------------------------------
andrew.curley's Profile: http://www.excelforum.com/member.php...o&userid=35326
View this thread: http://www.excelforum.com/showthread...hreadid=550996

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default Counting cells using multiple criteria

Look through this forum for examples of the sumproduct formula, which
isn't an array formula - your case translates to:-

=SUMPRODUCT(--($K$6:$K$40002=B127),--(LEFT($N$6:$N$40002,2)="PR"),--($L$6:$L$40002="V"))

will do it for you
andrew.curley wrote:
I have been counting the occurance of model numbers using multiple
criteria over two or more columns. I've been using SUMIF with multiple
criteria in an array, but my problem is that, because I have 40,000 rows
of data, it takes an age to do the calculation.

Is there an easier/quicker way?

Example:
{=SUM(IF(($K$6:$K$40002=B127)*(LEFT($N$6:$N$40002, 2)="PR")*($L$6:$L$40002="V"),1,0))}

Thanks


--
andrew.curley
------------------------------------------------------------------------
andrew.curley's Profile: http://www.excelforum.com/member.php...o&userid=35326
View this thread: http://www.excelforum.com/showthread...hreadid=550996


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Marcelo
 
Posts: n/a
Default Counting cells using multiple criteria

Hi Andrew,

try to use a SUMPRODUCT as:

SUMPRODUCT(($K$6:$K$40002=B127)*(LEFT(($N$6:$N$400 02),2)="PR")*($L$6:$L$40002="V"))

hope this helps
regards from Brazil
Marcelo

"andrew.curley" escreveu:


I have been counting the occurance of model numbers using multiple
criteria over two or more columns. I've been using SUMIF with multiple
criteria in an array, but my problem is that, because I have 40,000 rows
of data, it takes an age to do the calculation.

Is there an easier/quicker way?

Example:
{=SUM(IF(($K$6:$K$40002=B127)*(LEFT($N$6:$N$40002, 2)="PR")*($L$6:$L$40002="V"),1,0))}

Thanks


--
andrew.curley
------------------------------------------------------------------------
andrew.curley's Profile: http://www.excelforum.com/member.php...o&userid=35326
View this thread: http://www.excelforum.com/showthread...hreadid=550996


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
andrew.curley
 
Posts: n/a
Default Counting cells using multiple criteria


Works a treat - many thanks to both of you.:)

Hope you are keeping well Marcelo - felicidades


--
andrew.curley
------------------------------------------------------------------------
andrew.curley's Profile: http://www.excelforum.com/member.php...o&userid=35326
View this thread: http://www.excelforum.com/showthread...hreadid=550996

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Marcelo
 
Posts: n/a
Default Counting cells using multiple criteria

thanks for the feedback, felicidades para você também

"andrew.curley" escreveu:


Works a treat - many thanks to both of you.:)

Hope you are keeping well Marcelo - felicidades


--
andrew.curley
------------------------------------------------------------------------
andrew.curley's Profile: http://www.excelforum.com/member.php...o&userid=35326
View this thread: http://www.excelforum.com/showthread...hreadid=550996


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 from one range to another range, multiple criteria macamarr Excel Discussion (Misc queries) 3 June 10th 06 11:02 AM
Sum column if multiple criteria are met in adjacent cells GateKeeper Excel Worksheet Functions 5 September 4th 05 05:04 AM
Counting Values that meet another cells criteria Jess Excel Worksheet Functions 1 March 8th 05 01:42 AM
Counting Cells with multiple criteria.One criteria supporting wild Azhar Saleem Excel Worksheet Functions 1 January 12th 05 10:54 AM
counting with a criteria in multiple transactions shafali Excel Worksheet Functions 1 November 29th 04 01:15 AM


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