Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Leslie M
 
Posts: n/a
Default How do I make it add a column based on 2 different criteria?

I am trying to add sales gross for individual salespeople, and break it down
by new vehicles vs. used vehicles. I have a column set up for the sales
people, a column set up for the type (N or U), and a column set up for the
gross that I want to add. I can make it add up the gross of new vs. used
using the sumif function, but I don't know how to make it do "if this = this,
and this = this, then add this through this". Does that make sense? I'm sure
it's not as hard as I'm making it out to be. Can anyone help?

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default How do I make it add a column based on 2 different criteria?

=SUMPRODUCT(--(A1:A100="Bob"),--(B1:B100="N"),C1:C100)

Note that SUMPRODUCT doesn't work with complete columns, you have to specify
a range.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Leslie M" <Leslie wrote in message
...
I am trying to add sales gross for individual salespeople, and break it

down
by new vehicles vs. used vehicles. I have a column set up for the sales
people, a column set up for the type (N or U), and a column set up for the
gross that I want to add. I can make it add up the gross of new vs. used
using the sumif function, but I don't know how to make it do "if this =

this,
and this = this, then add this through this". Does that make sense? I'm

sure
it's not as hard as I'm making it out to be. Can anyone help?

Thanks!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Leslie M
 
Posts: n/a
Default How do I make it add a column based on 2 different criteria?

When I type that formula in, it's coming up as $0.00 which isn't right. I'm
probably missing something- any ideas?

"Bob Phillips" wrote:

=SUMPRODUCT(--(A1:A100="Bob"),--(B1:B100="N"),C1:C100)

Note that SUMPRODUCT doesn't work with complete columns, you have to specify
a range.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Leslie M" <Leslie wrote in message
...
I am trying to add sales gross for individual salespeople, and break it

down
by new vehicles vs. used vehicles. I have a column set up for the sales
people, a column set up for the type (N or U), and a column set up for the
gross that I want to add. I can make it add up the gross of new vs. used
using the sumif function, but I don't know how to make it do "if this =

this,
and this = this, then add this through this". Does that make sense? I'm

sure
it's not as hard as I'm making it out to be. Can anyone help?

Thanks!




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Leslie M
 
Posts: n/a
Default How do I make it add a column based on 2 different criteria?

I got it to work... thanks for your help!! :o)

"Bob Phillips" wrote:

=SUMPRODUCT(--(A1:A100="Bob"),--(B1:B100="N"),C1:C100)

Note that SUMPRODUCT doesn't work with complete columns, you have to specify
a range.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Leslie M" <Leslie wrote in message
...
I am trying to add sales gross for individual salespeople, and break it

down
by new vehicles vs. used vehicles. I have a column set up for the sales
people, a column set up for the type (N or U), and a column set up for the
gross that I want to add. I can make it add up the gross of new vs. used
using the sumif function, but I don't know how to make it do "if this =

this,
and this = this, then add this through this". Does that make sense? I'm

sure
it's not as hard as I'm making it out to be. Can anyone help?

Thanks!




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default How do I make it add a column based on 2 different criteria?

Can you tell us what the problem was just in case someone else gets it?

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Leslie M" wrote in message
...
I got it to work... thanks for your help!! :o)

"Bob Phillips" wrote:

=SUMPRODUCT(--(A1:A100="Bob"),--(B1:B100="N"),C1:C100)

Note that SUMPRODUCT doesn't work with complete columns, you have to

specify
a range.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Leslie M" <Leslie wrote in message
...
I am trying to add sales gross for individual salespeople, and break

it
down
by new vehicles vs. used vehicles. I have a column set up for the

sales
people, a column set up for the type (N or U), and a column set up for

the
gross that I want to add. I can make it add up the gross of new vs.

used
using the sumif function, but I don't know how to make it do "if this

=
this,
and this = this, then add this through this". Does that make sense?

I'm
sure
it's not as hard as I'm making it out to be. Can anyone help?

Thanks!








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default How do I make it add a column based on 2 different criteria?

I had the salespeople identified by their sales numbers, not their names, and
therefore the quotes had to be removed around the number

"Bob Phillips" wrote:

Can you tell us what the problem was just in case someone else gets it?

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Leslie M" wrote in message
...
I got it to work... thanks for your help!! :o)

"Bob Phillips" wrote:

=SUMPRODUCT(--(A1:A100="Bob"),--(B1:B100="N"),C1:C100)

Note that SUMPRODUCT doesn't work with complete columns, you have to

specify
a range.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Leslie M" <Leslie wrote in message
...
I am trying to add sales gross for individual salespeople, and break

it
down
by new vehicles vs. used vehicles. I have a column set up for the

sales
people, a column set up for the type (N or U), and a column set up for

the
gross that I want to add. I can make it add up the gross of new vs.

used
using the sumif function, but I don't know how to make it do "if this

=
this,
and this = this, then add this through this". Does that make sense?

I'm
sure
it's not as hard as I'm making it out to be. Can anyone help?

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
Help with copying dynamic column selected based on remote cell value and dynamic formula fill ers Charts and Charting in Excel 0 March 1st 06 01:05 AM
Calculating an average based on 2 and 3 criteria craggergirl Excel Worksheet Functions 2 February 24th 06 02:37 PM
move contents of column C based on criteria related to column A Debra Excel Discussion (Misc queries) 2 December 27th 05 10:25 PM
Return Count for LAST NonBlank Cell in each Row Sam via OfficeKB.com Excel Worksheet Functions 12 April 17th 05 10:36 PM
Count rows based on multiple criteria Murph Excel Worksheet Functions 1 October 28th 04 07:13 AM


All times are GMT +1. The time now is 12:25 PM.

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

About Us

"It's about Microsoft Excel"