PC Review


Reply
Thread Tools Rate Thread

Another SUMPRODUCT Query

 
 
=?Utf-8?B?ZW5uYTQ5?=
Guest
Posts: n/a
 
      29th Jun 2007
I have searched through this forum and thought I had found my answer, but I
get #NUM returned - Excel 2003

Formula I have is this:

=SUMPRODUCT(--(TravelArranger=A4),--(TranType="ORIGINAL"),--(Class="Economy"),--(Online="OffLine"))

The data is coming from another sheet in the workbook:
I have setup named ranges in my workbook:
What I am trying to achieve is:
The number of bookings made throughout a month with the following criteria
If the Travel Arranger = A4 (name in A4) AND the TranType = "ORIGINAL" AND
the Class = "Economy" and the Online = "Offline"
I want the number of times this has occurred. I did have another field for
this to take the count from but gave up on that.

Thanks in advance

Anne

 
Reply With Quote
 
 
 
 
T. Valko
Guest
Posts: n/a
 
      29th Jun 2007
Do you have #NUM! errors in *any* of your ranges?

Are your ranges dynamic ranges? If so, are you sure they are being
calculated correctly?

Biff

"enna49" <(E-Mail Removed)> wrote in message
news:7B735EE1-5157-4DB5-B98B-(E-Mail Removed)...
>I have searched through this forum and thought I had found my answer, but I
> get #NUM returned - Excel 2003
>
> Formula I have is this:
>
> =SUMPRODUCT(--(TravelArranger=A4),--(TranType="ORIGINAL"),--(Class="Economy"),--(Online="OffLine"))
>
> The data is coming from another sheet in the workbook:
> I have setup named ranges in my workbook:
> What I am trying to achieve is:
> The number of bookings made throughout a month with the following criteria
> If the Travel Arranger = A4 (name in A4) AND the TranType = "ORIGINAL" AND
> the Class = "Economy" and the Online = "Offline"
> I want the number of times this has occurred. I did have another field
> for
> this to take the count from but gave up on that.
>
> Thanks in advance
>
> Anne
>



 
Reply With Quote
 
=?Utf-8?B?ZW5uYTQ5?=
Guest
Posts: n/a
 
      29th Jun 2007
Hi

No there is no #NUM in any ranges, but have found my error. One of the
ranges was set to a different no of rows. Sorry, once I set off the query
and walked away for a while and had yet another check, I found the error.
Changed this and all works perfectly thanks.
Can I now ask another question, I want to SUM according to this exact
criteria but use a another column called "PaidFare"

I thought just adding the field would work. Please can you confirm if this
is correct.

=SUMPRODUCT(--(TravelArranger=A4),--(TranType="ORIGINAL"),--(Class="Economy"),--(Online="OffLine"),PaidFare)
Thanks
Anne

"T. Valko" wrote:

> Do you have #NUM! errors in *any* of your ranges?
>
> Are your ranges dynamic ranges? If so, are you sure they are being
> calculated correctly?
>
> Biff
>
> "enna49" <(E-Mail Removed)> wrote in message
> news:7B735EE1-5157-4DB5-B98B-(E-Mail Removed)...
> >I have searched through this forum and thought I had found my answer, but I
> > get #NUM returned - Excel 2003
> >
> > Formula I have is this:
> >
> > =SUMPRODUCT(--(TravelArranger=A4),--(TranType="ORIGINAL"),--(Class="Economy"),--(Online="OffLine"))
> >
> > The data is coming from another sheet in the workbook:
> > I have setup named ranges in my workbook:
> > What I am trying to achieve is:
> > The number of bookings made throughout a month with the following criteria
> > If the Travel Arranger = A4 (name in A4) AND the TranType = "ORIGINAL" AND
> > the Class = "Economy" and the Online = "Offline"
> > I want the number of times this has occurred. I did have another field
> > for
> > this to take the count from but gave up on that.
> >
> > Thanks in advance
> >
> > Anne
> >

>
>
>

 
Reply With Quote
 
=?Utf-8?B?VGVldGhsZXNzIG1hbWE=?=
Guest
Posts: n/a
 
      29th Jun 2007
You get the right Syntax. I think, it should work


"enna49" wrote:

> Hi
>
> No there is no #NUM in any ranges, but have found my error. One of the
> ranges was set to a different no of rows. Sorry, once I set off the query
> and walked away for a while and had yet another check, I found the error.
> Changed this and all works perfectly thanks.
> Can I now ask another question, I want to SUM according to this exact
> criteria but use a another column called "PaidFare"
>
> I thought just adding the field would work. Please can you confirm if this
> is correct.
>
> =SUMPRODUCT(--(TravelArranger=A4),--(TranType="ORIGINAL"),--(Class="Economy"),--(Online="OffLine"),PaidFare)
> Thanks
> Anne
>
> "T. Valko" wrote:
>
> > Do you have #NUM! errors in *any* of your ranges?
> >
> > Are your ranges dynamic ranges? If so, are you sure they are being
> > calculated correctly?
> >
> > Biff
> >
> > "enna49" <(E-Mail Removed)> wrote in message
> > news:7B735EE1-5157-4DB5-B98B-(E-Mail Removed)...
> > >I have searched through this forum and thought I had found my answer, but I
> > > get #NUM returned - Excel 2003
> > >
> > > Formula I have is this:
> > >
> > > =SUMPRODUCT(--(TravelArranger=A4),--(TranType="ORIGINAL"),--(Class="Economy"),--(Online="OffLine"))
> > >
> > > The data is coming from another sheet in the workbook:
> > > I have setup named ranges in my workbook:
> > > What I am trying to achieve is:
> > > The number of bookings made throughout a month with the following criteria
> > > If the Travel Arranger = A4 (name in A4) AND the TranType = "ORIGINAL" AND
> > > the Class = "Economy" and the Online = "Offline"
> > > I want the number of times this has occurred. I did have another field
> > > for
> > > this to take the count from but gave up on that.
> > >
> > > Thanks in advance
> > >
> > > Anne
> > >

> >
> >
> >

 
Reply With Quote
 
Harlan Grove
Guest
Posts: n/a
 
      29th Jun 2007
"enna49" <(E-Mail Removed)> wrote...
>No there is no #NUM in any ranges, but have found my error. One of the
>ranges was set to a different no of rows. . . .

....

Then you would have had a #N/A error rather than a #NUM! error. Accuracy in
what YOU post affects the answers you'll receive.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: SumProduct Query JoeU2004 Microsoft Excel Worksheet Functions 0 14th Jun 2009 10:04 AM
Sumproduct query Marc T Microsoft Excel Worksheet Functions 4 1st Jun 2009 04:46 PM
SUMPRODUCT query Terry Bennett Microsoft Excel Worksheet Functions 3 23rd Jan 2009 02:07 PM
SUMPRODUCT Query =?Utf-8?B?Qm9SZWQ=?= Microsoft Excel Discussion 4 16th May 2007 10:04 PM
Sumproduct query Jack Schitt Microsoft Excel Misc 4 8th Sep 2004 01:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:31 AM.