Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default SUMPRODUCT PROBLEM

Assistance much appreciated
My worksheet as follows

col A col B col C col D col E
Name Club Age Group Place Points
Fred aaa 16 1 5
Harry bbb 25 2 4

Col E is a result of =IF($D2=1,€5€, IF($D2=2,€4€, IF($D2=3,€3€,
IF($D2=4,€2€, IF($D2=5,€1€,€€)))))

Using =SUMPRODUCT(--($B$2:$B$25=€aaa€)*($E$2:$E25)) in H5 I get a #Value#
error if any cell in col E is blank within the range.

Need to sum by club the total number of points. My range would include
people with no placing leaving the result in col E blank.

Many Thanks

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default SUMPRODUCT PROBLEM

First, results in E will be text not numbers as a result of your formula -
removw "" arounf results

=IF($D2=1,5, IF($D2=2,4, IF($D2=3,3, IF($D2=4,2, IF($D2=5,1€€€)))))

which can be simplified to

=6-D2

Or

=if(D2="","",6-D2)

SUMPRODUCTworks OK or you could try

=SUMIF(B2:B25,"aaa",E2:E25)

HTH

"laurie g" wrote:

Assistance much appreciated
My worksheet as follows

col A col B col C col D col E
Name Club Age Group Place Points
Fred aaa 16 1 5
Harry bbb 25 2 4

Col E is a result of =IF($D2=1,€5€, IF($D2=2,€4€, IF($D2=3,€3€,
IF($D2=4,€2€, IF($D2=5,€1€,€€)))))

Using =SUMPRODUCT(--($B$2:$B$25=€aaa€)*($E$2:$E25)) in H5 I get a #Value#
error if any cell in col E is blank within the range.

Need to sum by club the total number of points. My range would include
people with no placing leaving the result in col E blank.

Many Thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default SUMPRODUCT PROBLEM

Hi Laurie

Unless there is any reason why you are wanting the numbers in column E
to be text, you don't need " " around the numbers, but that isn't your
real problem.
Change the final "" (null) to a zero
=IF($D2=1,5, IF($D2=2,4, IF($D2=3,3,IF($D2=4,2, IF($D2=5,1,0)))))
or this might be able to be simplified to
=IF($D2="",0,IF(D25,0,6-$D2))

The Sumproduct seems to work fine.
If you don't want the zero's to show on the empty lines, then
ToolsOptionsGeneraluntick Zero values

--
Regards

Roger Govier


"laurie g" wrote in message
...
Assistance much appreciated
My worksheet as follows

col A col B col C col D col E
Name Club Age Group Place Points
Fred aaa 16 1 5
Harry bbb 25 2 4

Col E is a result of =IF($D2=1,"5", IF($D2=2,"4", IF($D2=3,"3",
IF($D2=4,"2", IF($D2=5,"1","")))))

Using =SUMPRODUCT(--($B$2:$B$25="aaa")*($E$2:$E25)) in H5 I get a
#Value#
error if any cell in col E is blank within the range.

Need to sum by club the total number of points. My range would include
people with no placing leaving the result in col E blank.

Many Thanks



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default SUMPRODUCT PROBLEM

Thanks Roger your info has resolved my problem, However to make my SUMPRODUCT
cell more efficient to my needs I would like to do the following:-

For cell G5,G6,G7 etc to return a unique name from col B so my SUMPRODUCT
function in H5,H6,H7 etc can ref G5 etc this would allow me to automate the
result without have to edit my formula as it would be referencing the result
in G5,G6,G7 etc.

Thankyou
Laurie g


"Roger Govier" wrote:

Hi Laurie

Unless there is any reason why you are wanting the numbers in column E
to be text, you don't need " " around the numbers, but that isn't your
real problem.
Change the final "" (null) to a zero
=IF($D2=1,5, IF($D2=2,4, IF($D2=3,3,IF($D2=4,2, IF($D2=5,1,0)))))
or this might be able to be simplified to
=IF($D2="",0,IF(D25,0,6-$D2))

The Sumproduct seems to work fine.
If you don't want the zero's to show on the empty lines, then
ToolsOptionsGeneraluntick Zero values

--
Regards

Roger Govier


"laurie g" wrote in message
...
Assistance much appreciated
My worksheet as follows

col A col B col C col D col E
Name Club Age Group Place Points
Fred aaa 16 1 5
Harry bbb 25 2 4

Col E is a result of =IF($D2=1,"5", IF($D2=2,"4", IF($D2=3,"3",
IF($D2=4,"2", IF($D2=5,"1","")))))

Using =SUMPRODUCT(--($B$2:$B$25="aaa")*($E$2:$E25)) in H5 I get a
#Value#
error if any cell in col E is blank within the range.

Need to sum by club the total number of points. My range would include
people with no placing leaving the result in col E blank.

Many 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
Problem using ADDRESS() in SUMPRODUCT() rmellison Excel Discussion (Misc queries) 2 January 9th 06 11:14 AM
Frustrating SUMPRODUCT problem. rmellison Excel Discussion (Misc queries) 1 January 6th 06 01:58 PM
SUMPRODUCT Problem Mestrella31 Excel Discussion (Misc queries) 2 December 21st 04 07:01 PM
Sumproduct function not working Scott Summerlin Excel Worksheet Functions 12 December 4th 04 05:15 AM
SUMPRODUCT problem Jane Excel Worksheet Functions 3 November 8th 04 11:58 PM


All times are GMT +1. The time now is 06:26 PM.

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"