Could you perhaps conditionally format the cell so that the number zero is the same colour as the background, so becomes invisible. Regards -- Geoff Culbertson Petersfield, UK -----Original Message----- From: mso-bounce@xxxxxxxxxxxxx [mailto:mso-bounce@xxxxxxxxxxxxx] On Behalf Of Tomoko_Okayasu@xxxxxxxxxxxxxxxxxxxxx Sent: 24 March 2008 07:23 To: mso@xxxxxxxxxxxxx Subject: [mso] Re: Question on SUMPRODUCT formula Dear David, Thank you for your advice. Entering bigger numbers did work. I will settle with this method for now. I suppose there isn't any alternative formula that you don't need to type in row/column numbers? Regards, Tomoko "David Smart" <smartware@xxxxxxxxxxxxxxx> Sent by: mso-bounce@xxxxxxxxxxxxx 2008/03/24 11:59 Please respond to mso@xxxxxxxxxxxxx To <mso@xxxxxxxxxxxxx> cc Subject [mso] Re: Question on SUMPRODUCT formula Why not just make the numbers bigger than they are ever likely to need to be? Regards, Dave S ----- Original Message ----- From: <Tomoko_Okayasu@xxxxxxxxxxxxxxxxxxxxx> To: <mso@xxxxxxxxxxxxx> Sent: Monday, March 24, 2008 1:42 PM Subject: [mso] Question on SUMPRODUCT formula >I was using SUMIF on a monthly report using Excel 2003. > ex. > Column A: Month > Column B: Name > Column C: Amount > Column D: Target > > =SUMIF(A:A,Data!B1,C:C) > > Another condition was added, so I changed SUMIF to SUMPRODUCT > =SUMPRODUCT((A:A=Data!B1)*((B:B=Data!C1))*(D:D)) > > And this returned a #NUM error. > > However, when I entered specific number to rows, correct data appeared on > the cell. > e.g., =SUMPRODUCT((A1:A20=Data!B1)*((B1:B20=Data!C1))*(D1:D20)) > > I cannot enter specific row numbers, as they change each month. > > Is there any way of adding multiple conditions without specifying row > numbers? > > Thank you for your help. > Tomoko Okayasu > +=========================================================+ > This message may contain confidential and/or privileged > information. If you are not the addressee or authorized to > receive this for the addressee, you must not use, copy, > disclose or take any action based on this message or any > information herein. If you have received this message in > error, please advise the sender immediately by reply e-mail > and delete this message. Thank you for your cooperation. > +=========================================================+ > > > ************************************************************* > You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or > MicrosoftOffice@xxxxxxxxxxxxxxxx > > To send mail to the group, simply address it to mso@xxxxxxxxxxxxx > > To Unsubscribe from this group, visit the group's homepage and use the > dropdown menu at the top. This will allow you to unsubscribe your email > address or change your email settings to digest or vacation (no mail). > //www.freelists.org/webpage/mso > > To be able to share files with the group, you must join our Yahoo sister > group. This group will not allow for posting of emails, but will allow > you to join and share problem files, templates, etc.: > http://tech.groups.yahoo.com/group/MicrosoftOffice . This group is for > FILE SHARING ONLY. > > If you are using Outlook and you see a lot of unnecessary code in your > email messages, read these instructions that explain why and how to fix > it: > http://personal-computer-tutor.com/abc3/v28/greg28.htm > ************************************************************* ************************************************************* You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or MicrosoftOffice@xxxxxxxxxxxxxxxx To send mail to the group, simply address it to mso@xxxxxxxxxxxxx To Unsubscribe from this group, visit the group's homepage and use the dropdown menu at the top. This will allow you to unsubscribe your email address or change your email settings to digest or vacation (no mail). //www.freelists.org/webpage/mso To be able to share files with the group, you must join our Yahoo sister group. This group will not allow for posting of emails, but will allow you to join and share problem files, templates, etc.: http://tech.groups.yahoo.com/group/MicrosoftOffice . This group is for FILE SHARING ONLY. If you are using Outlook and you see a lot of unnecessary code in your email messages, read these instructions that explain why and how to fix it: http://personal-computer-tutor.com/abc3/v28/greg28.htm ************************************************************* +=========================================================+ This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation. +=========================================================+ ************************************************************* You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or MicrosoftOffice@xxxxxxxxxxxxxxxx To send mail to the group, simply address it to mso@xxxxxxxxxxxxx To Unsubscribe from this group, visit the group's homepage and use the dropdown menu at the top. This will allow you to unsubscribe your email address or change your email settings to digest or vacation (no mail). //www.freelists.org/webpage/mso To be able to share files with the group, you must join our Yahoo sister group. This group will not allow for posting of emails, but will allow you to join and share problem files, templates, etc.: http://tech.groups.yahoo.com/group/MicrosoftOffice . This group is for FILE SHARING ONLY. If you are using Outlook and you see a lot of unnecessary code in your email messages, read these instructions that explain why and how to fix it: http://personal-computer-tutor.com/abc3/v28/greg28.htm ************************************************************* ************************************************************* You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or MicrosoftOffice@xxxxxxxxxxxxxxxx To send mail to the group, simply address it to mso@xxxxxxxxxxxxx To Unsubscribe from this group, visit the group's homepage and use the dropdown menu at the top. This will allow you to unsubscribe your email address or change your email settings to digest or vacation (no mail). //www.freelists.org/webpage/mso To be able to share files with the group, you must join our Yahoo sister group. This group will not allow for posting of emails, but will allow you to join and share problem files, templates, etc.: http://tech.groups.yahoo.com/group/MicrosoftOffice . This group is for FILE SHARING ONLY. If you are using Outlook and you see a lot of unnecessary code in your email messages, read these instructions that explain why and how to fix it: http://personal-computer-tutor.com/abc3/v28/greg28.htm *************************************************************