Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 31
Default Array Formula Help Needed

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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Array Formula Help Needed

Hi,

Q1
=SUMPRODUCT((A1:A60)*(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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Array Formula Help Needed

Try
'formula1
=SUMPRODUCT((A1:A100)*(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

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,646
Default Array Formula Help Needed

No need for array formulae, these are normal ones:

=SUMPRODUCT(--(A2:A70),--(ISBLANK(B2:B7)))

=SUMPRODUCT(--(A2:A70),--(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

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 117
Default Array Formula Help Needed

Formula 1
=SUMPRODUCT((A1:A60)*ISBLANK(B1:B6))

Formula 2
=SUMPRODUCT((A1:A60)*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



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 31
Default Array Formula Help Needed

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
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
Array formulas help needed ArthurN Excel Worksheet Functions 3 October 11th 07 10:03 PM
Maybe an array is needed? Arturo Excel Worksheet Functions 1 September 6th 06 01:26 PM
Array formula expertise needed CJ-22 Excel Worksheet Functions 0 February 10th 06 02:56 AM
Array formula needed ZipCurs Excel Worksheet Functions 4 December 17th 05 02:16 PM
Array formula needed Domenic Excel Worksheet Functions 0 August 26th 05 04:23 AM


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