PC Review


Reply
Thread Tools Rate Thread

Countif/SumProduct

 
 
excelllllllll
Guest
Posts: n/a
 
      14th Apr 2010
Hi,
ok i have 2 columns....



Column A Column B

32 -

54 20

45 -

65 76

75 75



I need to add the number of times Column A and Column B both have values.
SO in this case its 3 times.

I'm not sure if i use count if or sumproduct and how. I tried:
=SUMPRODUCT(--(G5:G15<>""),--(H5:H15<>"")) but its giving the wrong value.
value.



 
Reply With Quote
 
 
 
 
T. Valko
Guest
Posts: n/a
 
      14th Apr 2010
>=SUMPRODUCT(--(G5:G15<>""),--(H5:H15<>""))

That should work.

See if this works:

=SUMPRODUCT(--(ISNUMBER(G5:G15)),--(ISNUMBER(H5:H15)))

--
Biff
Microsoft Excel MVP


"excelllllllll" <(E-Mail Removed)> wrote in message
news95104B6-3A61-4E2C-9A82-(E-Mail Removed)...
> Hi,
> ok i have 2 columns....
>
>
>
> Column A Column B
>
> 32 -
>
> 54 20
>
> 45 -
>
> 65 76
>
> 75 75
>
>
>
> I need to add the number of times Column A and Column B both have values.
> SO in this case its 3 times.
>
> I'm not sure if i use count if or sumproduct and how. I tried:
> =SUMPRODUCT(--(G5:G15<>""),--(H5:H15<>"")) but its giving the wrong value.
> value.
>
>
>
>



 
Reply With Quote
 
Max
Guest
Posts: n/a
 
      14th Apr 2010
You could try using ISNUMBER, eg:
=SUMPRODUCT((ISNUMBER(A5:A15))*(ISNUMBER(B5:B15)))
Success? hit the YES below
--
Max
Singapore
---
"excelllllllll" wrote:
> Column A Column B
>
> 32 -
>
> 54 20
>
> 45 -
>
> 65 76
>
> 75 75
>
>
>
> I need to add the number of times Column A and Column B both have values.
> SO in this case its 3 times.
>
> I'm not sure if i use count if or sumproduct and how. I tried:
> =SUMPRODUCT(--(G5:G15<>""),--(H5:H15<>"")) but its giving the wrong value.
> value.
>
>
>

 
Reply With Quote
 
excelllllllll
Guest
Posts: n/a
 
      15th Apr 2010
Hey I tried that and it still doesnt work. it counts all th numbers in
column A only.

I need so it only counts when numbers appear in both columns only.

"Max" wrote:

> You could try using ISNUMBER, eg:
> =SUMPRODUCT((ISNUMBER(A5:A15))*(ISNUMBER(B5:B15)))
> Success? hit the YES below
> --
> Max
> Singapore
> ---
> "excelllllllll" wrote:
> > Column A Column B
> >
> > 32 -
> >
> > 54 20
> >
> > 45 -
> >
> > 65 76
> >
> > 75 75
> >
> >
> >
> > I need to add the number of times Column A and Column B both have values.
> > SO in this case its 3 times.
> >
> > I'm not sure if i use count if or sumproduct and how. I tried:
> > =SUMPRODUCT(--(G5:G15<>""),--(H5:H15<>"")) but its giving the wrong value.
> > value.
> >
> >
> >

 
Reply With Quote
 
excelllllllll
Guest
Posts: n/a
 
      15th Apr 2010
Nevermind my previous post!
it totally worked!!!

thanks!

"Max" wrote:

> You could try using ISNUMBER, eg:
> =SUMPRODUCT((ISNUMBER(A5:A15))*(ISNUMBER(B5:B15)))
> Success? hit the YES below
> --
> Max
> Singapore
> ---
> "excelllllllll" wrote:
> > Column A Column B
> >
> > 32 -
> >
> > 54 20
> >
> > 45 -
> >
> > 65 76
> >
> > 75 75
> >
> >
> >
> > I need to add the number of times Column A and Column B both have values.
> > SO in this case its 3 times.
> >
> > I'm not sure if i use count if or sumproduct and how. I tried:
> > =SUMPRODUCT(--(G5:G15<>""),--(H5:H15<>"")) but its giving the wrong value.
> > value.
> >
> >
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
COUNTIF or SUMPRODUCT Jimmy1982 Microsoft Excel Misc 1 16th Oct 2008 01:55 AM
Countif and Sumproduct Sandy Microsoft Excel Worksheet Functions 4 18th Aug 2007 10:08 PM
sumproduct or countif =?Utf-8?B?ZHIzNTB4?= Microsoft Excel Misc 7 16th Jun 2007 03:27 PM
Sumproduct and Countif lindsey1975@googlemail.com Microsoft Excel Misc 0 2nd Apr 2007 02:51 PM
Sumproduct or Countif? =?Utf-8?B?UmVuZWUn?= Microsoft Excel Misc 7 29th Oct 2004 04:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:03 PM.