PC Review


Reply
Thread Tools Rate Thread

Add up a value that meets 2 criteria

 
 
Lee
Guest
Posts: n/a
 
      18th Nov 2008
I have an inventory list where different people check out certain products.
I need to be able to have a formula that adds the value of a certain product
for a certain salesman. This is an example of what I have.

Date Product Amount salesperson
10-Oct Pencil 5 Jacob
15-Oct Pen 10 Brian
16-Oct Paper 2 Brian
20-Oct Pencil 11 Jacob
25-Oct Pencil 7 Brian

and i want it to show that for this month Jacob sold a total of 16 pencils.
 
Reply With Quote
 
 
 
 
PCLIVE
Guest
Posts: n/a
 
      18th Nov 2008
Use SUMPRODUCT:

=SUMPRODUCT(--(D110="Jacob"),--(B1:B10="Pencil"),C1:C10)

HTH,
Paul

--

"Lee" <(E-Mail Removed)> wrote in message
news:582E71C7-A604-44B7-8700-(E-Mail Removed)...
>I have an inventory list where different people check out certain products.
> I need to be able to have a formula that adds the value of a certain
> product
> for a certain salesman. This is an example of what I have.
>
> Date Product Amount salesperson
> 10-Oct Pencil 5 Jacob
> 15-Oct Pen 10 Brian
> 16-Oct Paper 2 Brian
> 20-Oct Pencil 11 Jacob
> 25-Oct Pencil 7 Brian
>
> and i want it to show that for this month Jacob sold a total of 16
> pencils.



 
Reply With Quote
 
Bernard Liengme
Guest
Posts: n/a
 
      18th Nov 2008
=sumproduct(--(B1:B100=Pencil"),--(D1100="Jacob"),C1:C100)
For more details on SUMPRODUCT
Bob Phillips
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
J.E McGimpsey
http://mcgimpsey.com/excel/formulae/doubleneg.html
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Lee" <(E-Mail Removed)> wrote in message
news:582E71C7-A604-44B7-8700-(E-Mail Removed)...
>I have an inventory list where different people check out certain products.
> I need to be able to have a formula that adds the value of a certain
> product
> for a certain salesman. This is an example of what I have.
>
> Date Product Amount salesperson
> 10-Oct Pencil 5 Jacob
> 15-Oct Pen 10 Brian
> 16-Oct Paper 2 Brian
> 20-Oct Pencil 11 Jacob
> 25-Oct Pencil 7 Brian
>
> and i want it to show that for this month Jacob sold a total of 16
> pencils.



 
Reply With Quote
 
John C
Guest
Posts: n/a
 
      18th Nov 2008
Assume Dates (for multiple months) in cells A2:A500, product in cells
B2:B500, amount in cells C2:C500, and salesperson in cells D2500
Criteria would be in cells F2 for date (entered as mm/1/yy), F3 for product,
and F4 for salesperon.
=SUMPRODUCT(--(YEAR(A2:A500)=YEAR(F2)),--(MONTH(A2:A500)=MONTH(F2)),--(B2:B500=F3),--(D2500=F4),(C2:C500))
--
** John C **

"PCLIVE" wrote:

> Use SUMPRODUCT:
>
> =SUMPRODUCT(--(D110="Jacob"),--(B1:B10="Pencil"),C1:C10)
>
> HTH,
> Paul
>
> --
>
> "Lee" <(E-Mail Removed)> wrote in message
> news:582E71C7-A604-44B7-8700-(E-Mail Removed)...
> >I have an inventory list where different people check out certain products.
> > I need to be able to have a formula that adds the value of a certain
> > product
> > for a certain salesman. This is an example of what I have.
> >
> > Date Product Amount salesperson
> > 10-Oct Pencil 5 Jacob
> > 15-Oct Pen 10 Brian
> > 16-Oct Paper 2 Brian
> > 20-Oct Pencil 11 Jacob
> > 25-Oct Pencil 7 Brian
> >
> > and i want it to show that for this month Jacob sold a total of 16
> > pencils.

>
>
>

 
Reply With Quote
 
Lee
Guest
Posts: n/a
 
      18th Nov 2008
It is showing a "#VALUE!"

"John C" wrote:

> Assume Dates (for multiple months) in cells A2:A500, product in cells
> B2:B500, amount in cells C2:C500, and salesperson in cells D2500
> Criteria would be in cells F2 for date (entered as mm/1/yy), F3 for product,
> and F4 for salesperon.
> =SUMPRODUCT(--(YEAR(A2:A500)=YEAR(F2)),--(MONTH(A2:A500)=MONTH(F2)),--(B2:B500=F3),--(D2500=F4),(C2:C500))
> --
> ** John C **
>
> "PCLIVE" wrote:
>
> > Use SUMPRODUCT:
> >
> > =SUMPRODUCT(--(D110="Jacob"),--(B1:B10="Pencil"),C1:C10)
> >
> > HTH,
> > Paul
> >
> > --
> >
> > "Lee" <(E-Mail Removed)> wrote in message
> > news:582E71C7-A604-44B7-8700-(E-Mail Removed)...
> > >I have an inventory list where different people check out certain products.
> > > I need to be able to have a formula that adds the value of a certain
> > > product
> > > for a certain salesman. This is an example of what I have.
> > >
> > > Date Product Amount salesperson
> > > 10-Oct Pencil 5 Jacob
> > > 15-Oct Pen 10 Brian
> > > 16-Oct Paper 2 Brian
> > > 20-Oct Pencil 11 Jacob
> > > 25-Oct Pencil 7 Brian
> > >
> > > and i want it to show that for this month Jacob sold a total of 16
> > > pencils.

> >
> >
> >

 
Reply With Quote
 
John C
Guest
Posts: n/a
 
      18th Nov 2008
Can you copy/paste your exact formula?
Also, have you verified that all dates are actually entered as dates?
--
** John C **

"Lee" wrote:

> It is showing a "#VALUE!"
>
> "John C" wrote:
>
> > Assume Dates (for multiple months) in cells A2:A500, product in cells
> > B2:B500, amount in cells C2:C500, and salesperson in cells D2500
> > Criteria would be in cells F2 for date (entered as mm/1/yy), F3 for product,
> > and F4 for salesperon.
> > =SUMPRODUCT(--(YEAR(A2:A500)=YEAR(F2)),--(MONTH(A2:A500)=MONTH(F2)),--(B2:B500=F3),--(D2500=F4),(C2:C500))
> > --
> > ** John C **
> >
> > "PCLIVE" wrote:
> >
> > > Use SUMPRODUCT:
> > >
> > > =SUMPRODUCT(--(D110="Jacob"),--(B1:B10="Pencil"),C1:C10)
> > >
> > > HTH,
> > > Paul
> > >
> > > --
> > >
> > > "Lee" <(E-Mail Removed)> wrote in message
> > > news:582E71C7-A604-44B7-8700-(E-Mail Removed)...
> > > >I have an inventory list where different people check out certain products.
> > > > I need to be able to have a formula that adds the value of a certain
> > > > product
> > > > for a certain salesman. This is an example of what I have.
> > > >
> > > > Date Product Amount salesperson
> > > > 10-Oct Pencil 5 Jacob
> > > > 15-Oct Pen 10 Brian
> > > > 16-Oct Paper 2 Brian
> > > > 20-Oct Pencil 11 Jacob
> > > > 25-Oct Pencil 7 Brian
> > > >
> > > > and i want it to show that for this month Jacob sold a total of 16
> > > > pencils.
> > >
> > >
> > >

 
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
if meets criteria add 1 r2rcode Microsoft Excel Worksheet Functions 2 1st Dec 2009 09:38 PM
Do Nothing If Meets Criteria =?Utf-8?B?a213aGl0dA==?= Microsoft Excel Misc 2 20th Sep 2006 05:49 PM
Max value that meets a criteria David Burr Microsoft Excel Worksheet Functions 6 16th Feb 2005 01:31 PM
Sum If Meets Criteria halem2 Microsoft Excel Worksheet Functions 6 8th Jun 2004 01:35 PM
HELP! Change color of a control if criteria meets criteria in an unbound box Aileen Microsoft Access Forms 1 26th Sep 2003 07:49 PM


Features
 

Advertising
 

Newsgroups
 


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