PC Review


Reply
Thread Tools Rate Thread

Array Formula Help Needed

 
 
nelly
Guest
Posts: n/a
 
      13th Apr 2010
Hi Guys

I need an array formula which counts the number of instances range Comp1 has
a value greater then zero AND Range Comp2 has a blank value.

Sounds simple but I just can't figure it out.

Also would be helpfull would the same criterior but instead of counting the
instances sums the vales in range Comp1

A B
1 1
3
1 2
1 1
1
4 4

Answer for formula 1 would be 2

and for formula 2 would be 4

Regards
Nelly
 
Reply With Quote
 
 
 
 
Mike H
Guest
Posts: n/a
 
      13th Apr 2010
Hi,

Q1
=SUMPRODUCT((A1:A6>0)*(B1:B6=""))

Q2
=SUMPRODUCT((A1:A6)*(B1:B6=""))

If you are using named ranges then substitute those for my ranges
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"nelly" wrote:

> Hi Guys
>
> I need an array formula which counts the number of instances range Comp1 has
> a value greater then zero AND Range Comp2 has a blank value.
>
> Sounds simple but I just can't figure it out.
>
> Also would be helpfull would the same criterior but instead of counting the
> instances sums the vales in range Comp1
>
> A B
> 1 1
> 3
> 1 2
> 1 1
> 1
> 4 4
>
> Answer for formula 1 would be 2
>
> and for formula 2 would be 4
>
> Regards
> Nelly

 
Reply With Quote
 
Jacob Skaria
Guest
Posts: n/a
 
      13th Apr 2010
Try
'formula1
=SUMPRODUCT((A1:A10>0)*(B1:B10=""))


'formula 2
=SUMPRODUCT((B1:B10="")*(A1:A10))
OR
=SUMIF(B1:B10,"",A1:A10)


--
Jacob (MVP - Excel)


"nelly" wrote:

> Hi Guys
>
> I need an array formula which counts the number of instances range Comp1 has
> a value greater then zero AND Range Comp2 has a blank value.
>
> Sounds simple but I just can't figure it out.
>
> Also would be helpfull would the same criterior but instead of counting the
> instances sums the vales in range Comp1
>
> A B
> 1 1
> 3
> 1 2
> 1 1
> 1
> 4 4
>
> Answer for formula 1 would be 2
>
> and for formula 2 would be 4
>
> Regards
> Nelly

 
Reply With Quote
 
Stefi
Guest
Posts: n/a
 
      13th Apr 2010
No need for array formulae, these are normal ones:

=SUMPRODUCT(--(A2:A7>0),--(ISBLANK(B2:B7)))

=SUMPRODUCT(--(A2:A7>0),--(ISBLANK(B2:B7)),A2:A7)

Adjust ranges!

--
Regards!
Stefi



„nelly” ezt *rta:

> Hi Guys
>
> I need an array formula which counts the number of instances range Comp1 has
> a value greater then zero AND Range Comp2 has a blank value.
>
> Sounds simple but I just can't figure it out.
>
> Also would be helpfull would the same criterior but instead of counting the
> instances sums the vales in range Comp1
>
> A B
> 1 1
> 3
> 1 2
> 1 1
> 1
> 4 4
>
> Answer for formula 1 would be 2
>
> and for formula 2 would be 4
>
> Regards
> Nelly

 
Reply With Quote
 
RonaldoOneNil
Guest
Posts: n/a
 
      13th Apr 2010
Formula 1
=SUMPRODUCT((A1:A6>0)*ISBLANK(B1:B6))

Formula 2
=SUMPRODUCT((A1:A6>0)*ISBLANK(B1:B6)*(A1:A6))

"nelly" wrote:

> Hi Guys
>
> I need an array formula which counts the number of instances range Comp1 has
> a value greater then zero AND Range Comp2 has a blank value.
>
> Sounds simple but I just can't figure it out.
>
> Also would be helpfull would the same criterior but instead of counting the
> instances sums the vales in range Comp1
>
> A B
> 1 1
> 3
> 1 2
> 1 1
> 1
> 4 4
>
> Answer for formula 1 would be 2
>
> and for formula 2 would be 4
>
> Regards
> Nelly

 
Reply With Quote
 
nelly
Guest
Posts: n/a
 
      13th Apr 2010
Thanks for the replies - Many THanks they are all spot on.

Think I was missing the obvious....

"nelly" wrote:

> Hi Guys
>
> I need an array formula which counts the number of instances range Comp1 has
> a value greater then zero AND Range Comp2 has a blank value.
>
> Sounds simple but I just can't figure it out.
>
> Also would be helpfull would the same criterior but instead of counting the
> instances sums the vales in range Comp1
>
> A B
> 1 1
> 3
> 1 2
> 1 1
> 1
> 4 4
>
> Answer for formula 1 would be 2
>
> and for formula 2 would be 4
>
> Regards
> Nelly

 
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
Array formula needed =?Utf-8?B?WmlwQ3Vycw==?= Microsoft Excel Worksheet Functions 4 17th Dec 2005 02:16 PM
Array formula needed Ann Microsoft Excel Worksheet Functions 2 26th Aug 2005 04:23 AM
simplest Array formula needed Mudilo Microsoft Excel Worksheet Functions 8 24th Jun 2004 07:46 PM
Array Formula Needed? Dan M. Marr Microsoft Excel Worksheet Functions 1 29th Aug 2003 06:17 AM
Help needed with array formula Johnny Mansoor Microsoft Excel Worksheet Functions 0 14th Aug 2003 02:55 PM


Features
 

Advertising
 

Newsgroups
 


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