Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Sumproduct or Countif

Inventory spreadhseet with Column A = multiple product models and column c =
Date received

Need formula to count each criteria in column A if column b is blank.
Need second formula if column B is non-blank.

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Sumproduct or Countif

Corrected (sorry)

Inventory spreadhseet with Column A = multiple product models and column c =
Date received

Need formula to count each criteria in column A if column c is blank.
Need second formula if column c is non-blank.

Thanks!
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 694
Default Sumproduct or Countif

for counting blanks try countblank(range)
for non-blanks try counta(range) or totalcells -countblank(range)

--
Hope this helps
Martin Fishlock


"mhmra" wrote:

Corrected (sorry)

Inventory spreadhseet with Column A = multiple product models and column c =
Date received

Need formula to count each criteria in column A if column c is blank.
Need second formula if column c is non-blank.

Thanks!

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,726
Default Sumproduct or Countif

=SUM(--(FREQUENCY(IF($C$1:$C$10<"",MATCH($A$1:$A$10,$A$1 :$A$10,0)),ROW(INDI
RECT("1:"&ROWS($A$1:$A$10))))0))

and

=SUM(--(FREQUENCY(IF($C$1:$C$10="",MATCH($A$1:$A$10,$A$1: $A$10,0)),ROW(INDIR
ECT("1:"&ROWS($A$1:$A$10))))0))

which arearray formulae, it should be committed with Ctrl-Shift-Enter, not
just Enter.

Note the second will fail if you have blanks in column A

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"mhmra" wrote in message
...
Corrected (sorry)

Inventory spreadhseet with Column A = multiple product models and column c

=
Date received

Need formula to count each criteria in column A if column c is blank.
Need second formula if column c is non-blank.

Thanks!



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Sumproduct or Countif

Bob,

Thank you for your response. I was attempting to use a range of $A2:$A9999
(which would include blanks) in order to capture new information as it was
entered. Do array formulas update automatically? Is there a way to alter
the formula to handle blanks in column A?

Thanks!

"Bob Phillips" wrote:

=SUM(--(FREQUENCY(IF($C$1:$C$10<"",MATCH($A$1:$A$10,$A$1 :$A$10,0)),ROW(INDI
RECT("1:"&ROWS($A$1:$A$10))))0))

and

=SUM(--(FREQUENCY(IF($C$1:$C$10="",MATCH($A$1:$A$10,$A$1: $A$10,0)),ROW(INDIR
ECT("1:"&ROWS($A$1:$A$10))))0))

which arearray formulae, it should be committed with Ctrl-Shift-Enter, not
just Enter.

Note the second will fail if you have blanks in column A

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"mhmra" wrote in message
...
Corrected (sorry)

Inventory spreadhseet with Column A = multiple product models and column c

=
Date received

Need formula to count each criteria in column A if column c is blank.
Need second formula if column c is non-blank.

Thanks!






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Sumproduct or Countif

Martin,

I've included a data sample below. I need a count of column A by each
unique entry when Column C is populated and a separate count when Column C is
blank.

Data sample:

Column A Column C
5100 11/27/06
5100
5100 11/28/06
2420 11/26/06
2420
2420 11/28/06

How would you conditionally nest your formulae together (countblank and
CountA)?

Thanks!

"Martin Fishlock" wrote:

for counting blanks try countblank(range)
for non-blanks try counta(range) or totalcells -countblank(range)

--
Hope this helps
Martin Fishlock


"mhmra" wrote:

Corrected (sorry)

Inventory spreadhseet with Column A = multiple product models and column c =
Date received

Need formula to count each criteria in column A if column c is blank.
Need second formula if column c is non-blank.

Thanks!

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 208
Default Sumproduct or Countif

Try these array formulas:

=COUNT( 1 / ( MATCH( $A$1:$A$10, IF( ( $A$1:$A$10 < "" ) * ( $C$1:$C$10 <
"" ), $A$1:$A$10, #N/A ), 0 ) = ( ROW( $A$1:$A$10 ) - ROW( $A$1 ) + 1 ) ) )

and

=COUNT( 1 / ( MATCH( $A$1:$A$10, IF( ( $A$1:$A$10 < "" ) * ( $C$1:$C$10 =
"" ), $A$1:$A$10, #N/A ), 0 ) = ( ROW( $A$1:$A$10 ) - ROW( $A$1 ) + 1 ) ) )

--
Regards,
Luc.

"Festina Lente"


"mhmra" wrote:

Inventory spreadhseet with Column A = multiple product models and column c =
Date received

Need formula to count each criteria in column A if column b is blank.
Need second formula if column B is non-blank.

Thanks!

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
SUMPRODUCT, COUNTIF and wildcard Epinn Excel Worksheet Functions 3 November 2nd 06 03:16 AM
sumproduct vs. countif Coal Miner Excel Discussion (Misc queries) 1 June 15th 06 09:34 PM
countif more than one sheet/tab and sumproduct BSantos Excel Worksheet Functions 1 February 23rd 06 06:20 PM
Using COUNTIF with 2 criteria - SUMPRODUCT? Mike R. Excel Worksheet Functions 2 February 24th 05 05:57 AM
SUMPRODUCT & COUNTIF Connie Martin Excel Worksheet Functions 2 December 16th 04 06:53 PM


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