#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Sumproduct Erro

Why am I not getting the right result with the below formula?

Col/row D E F
2 type hole1 hole2 hole3 hole4
3 par 4 4 3 5
4 0 4 5 4 7

=SUMPRODUCT(--($D$3=D4),--($E$3=E4),--($F$3=$F$4))

My aim is to count how many times I par or birdie a hole in a round of golf.
This result returns zero not 1.

TIA
Bec
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 834
Default Sumproduct Erro

See response in public.excel

--

HTH

Bob

"AussieBec" wrote in message
...
Why am I not getting the right result with the below formula?

Col/row D E F
2 type hole1 hole2 hole3 hole4
3 par 4 4 3 5
4 0 4 5 4 7

=SUMPRODUCT(--($D$3=D4),--($E$3=E4),--($F$3=$F$4))

My aim is to count how many times I par or birdie a hole in a round of
golf.
This result returns zero not 1.

TIA
Bec



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Sumproduct Erro

In your formula E3<E4 and F3<F4 so you are multiplying 1 by 0 by 0, so the
answer is 0.

Perhaps you intended =SUMPRODUCT(--(D3:F3=D4:F4)) ?

But note also that you are counting pars, not birdies. If you want to count
birdies, try =SUMPRODUCT(--(D3:F3=D4:F4+1))
--
David Biddulph


"AussieBec" wrote in message
...
Why am I not getting the right result with the below formula?

Col/row D E F
2 type hole1 hole2 hole3 hole4
3 par 4 4 3 5
4 0 4 5 4 7

=SUMPRODUCT(--($D$3=D4),--($E$3=E4),--($F$3=$F$4))

My aim is to count how many times I par or birdie a hole in a round of
golf.
This result returns zero not 1.

TIA
Bec



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
Erro Msg: Cannot Empty The Clipboard Chris Excel Discussion (Misc queries) 3 December 23rd 08 12:43 PM
Visual Basic Erro 400 Minitman Excel Worksheet Functions 2 August 16th 08 02:13 AM
Macro erro orquidea Excel Discussion (Misc queries) 7 December 16th 07 07:23 PM
Excel Erro Mindie Setting up and Configuration of Excel 1 May 29th 06 02:08 AM
Erro in Formula, Pleas Help? jsc3489 Excel Worksheet Functions 3 July 25th 05 04:39 PM


All times are GMT +1. The time now is 12:37 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"