Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Help with Count, CountIf, Sum Functions

I am having the worst time trying to wrap my head around this function.
I just can't seem to visualize how to do this. I have a spreadsheet
with the following:

A B C D
1 6 9
2 6 8 8
3 7 3
4 3 5 8


I need to know how many are in A but don't have anything in B. How many
are in C but don't have anything in A or D. Things of this nature but I
just can't seem to find a way of doing it. I am currently using the
functions in this order SUM, COUNTIF, IF but it is returning incorrect
results. Can anyone out there with a better math mind help me to figure
this out.


Thanks so much

Kris

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Help with Count, CountIf, Sum Functions

=sumproduct(--(A1:A10=""),--(C1:C10=""),B1:B10)

as an example.

--
Regards,
Tom Ogilvy


"Kris" wrote:

I am having the worst time trying to wrap my head around this function.
I just can't seem to visualize how to do this. I have a spreadsheet
with the following:

A B C D
1 6 9
2 6 8 8
3 7 3
4 3 5 8


I need to know how many are in A but don't have anything in B. How many
are in C but don't have anything in A or D. Things of this nature but I
just can't seem to find a way of doing it. I am currently using the
functions in this order SUM, COUNTIF, IF but it is returning incorrect
results. Can anyone out there with a better math mind help me to figure
this out.


Thanks so much

Kris


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default Help with Count, CountIf, Sum Functions

Hi Kris,

I need to know how many are in A but don't have anything in B:
=SUMPRODUCT(--ISNUMBER(A1:A4),--ISBLANK(B1:B4))

How many are in C but don't have anything in A or D:
=SUMPRODUCT(--ISNUMBER(C1:C4),--ISBLANK(A1:A4),--ISBLANK(D1:D4))

Regards,
Ivan

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Help with Count, CountIf, Sum Functions

This is great guys thanks for the help. I have been having trouble
modifying this to work in all my situations though, and I think I have
figured out why. I have Text in my main column and dates in the other
two and I don't think SUMPRODUCT is going to let me count it like that.
Perhaps I am wrong. Can you all help again?


Thank you

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Help with Count, CountIf, Sum Functions

I thought I pretty much knew everything about the standard functions in
Excel, but this thread has something I've never encountered. What does
"--" before the function do?

Ivan Raiminius wrote:
Hi Kris,

I need to know how many are in A but don't have anything in B:
=SUMPRODUCT(--ISNUMBER(A1:A4),--ISBLANK(B1:B4))

How many are in C but don't have anything in A or D:
=SUMPRODUCT(--ISNUMBER(C1:C4),--ISBLANK(A1:A4),--ISBLANK(D1:D4))

Regards,
Ivan


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
Countif & AND functions Mick Excel Worksheet Functions 3 January 18th 09 02:49 AM
COUNTIF & AND Functions Iriemon Excel Worksheet Functions 5 January 30th 07 06:54 PM
COUNTIF & AND FUNCTIONS mike_vr Excel Discussion (Misc queries) 7 November 8th 06 12:23 PM
Using COUNTIF and AND functions together Twinkle17 Excel Worksheet Functions 1 May 18th 06 09:34 AM
countif functions bsantona Excel Worksheet Functions 11 December 19th 05 02:45 AM


All times are GMT +1. The time now is 09:04 PM.

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"