Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default Counting Blank cells using evaluate(=sumproduct)

Please somebody, tell me why this doesn't work.
I am using version 2003.

Evaluate("=sumproduct((F25:f136=""abc"")*(j24:j136 =""))")

I have used the below directly in the worksheet and it works fine.
{=sum((F25:f136=""abc"")*(j24:j136=""))}

Please assist.
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 318
Default Counting Blank cells using evaluate(=sumproduct)

Gwen,

There are unequal number of elements in the two arrays. Is that the problem
or is this an error that crept in while posting to the newsgroup?

"Gwen" wrote:

Please somebody, tell me why this doesn't work.
I am using version 2003.

Evaluate("=sumproduct((F25:f136=""abc"")*(j24:j136 =""))")

I have used the below directly in the worksheet and it works fine.
{=sum((F25:f136=""abc"")*(j24:j136=""))}

Please assist.
Thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default Counting Blank cells using evaluate(=sumproduct)

No, that is not the problem.
The array elements are correct in my code. It should be
Evaluate("=sumproduct((F25:f136=""abc"")*(j25:j136 =""))")

Thanks.

"Alok" wrote:

Gwen,

There are unequal number of elements in the two arrays. Is that the problem
or is this an error that crept in while posting to the newsgroup?

"Gwen" wrote:

Please somebody, tell me why this doesn't work.
I am using version 2003.

Evaluate("=sumproduct((F25:f136=""abc"")*(j24:j136 =""))")

I have used the below directly in the worksheet and it works fine.
{=sum((F25:f136=""abc"")*(j24:j136=""))}

Please assist.
Thanks

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 318
Default Counting Blank cells using evaluate(=sumproduct)

I think what you need is
Evaluate("=sumproduct(--(F25:f136=""abc"")*--(j25:j136=""""))")
This is because inside the double quotes, two double quotes become one
double quote.

"Gwen" wrote:

No, that is not the problem.
The array elements are correct in my code. It should be
Evaluate("=sumproduct((F25:f136=""abc"")*(j25:j136 =""))")

Thanks.

"Alok" wrote:

Gwen,

There are unequal number of elements in the two arrays. Is that the problem
or is this an error that crept in while posting to the newsgroup?

"Gwen" wrote:

Please somebody, tell me why this doesn't work.
I am using version 2003.

Evaluate("=sumproduct((F25:f136=""abc"")*(j24:j136 =""))")

I have used the below directly in the worksheet and it works fine.
{=sum((F25:f136=""abc"")*(j24:j136=""))}

Please assist.
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
Counting cells using EVALUATE BB Ivan Excel Discussion (Misc queries) 5 January 29th 09 07:45 PM
Sumproduct counting blank cells, dates, capturing last row Gwen Excel Programming 2 November 28th 06 01:35 PM
=SUMPRODUCT formula is counting the blank cells as well as zero's JR Excel Worksheet Functions 2 March 16th 06 03:39 PM
=SUMPRODUCT formula is counting the blank cells as well as zero's JR Excel Worksheet Functions 1 March 16th 06 02:46 PM
sumproduct--counting--zero--blank cells jeremy via OfficeKB.com Excel Discussion (Misc queries) 4 August 16th 05 03:22 PM


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