Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Pete Petersen
 
Posts: n/a
Default calcuate sales by date and segments

I am trying to add all sales for four given Market Segments on a refreshable
spreadsheet into a static sheet.

Commissions Sheet (refreshable)
Date Sold Sell Market Seg
1/3/05 $11,672.00 Professional Photogr
1/3/05 $4,425.00 Digital Printer
1/1/05 $300.00 Fine Art Repro
12/31/04 $124.00 Professional Photographer

I want to add all sales for January that equal the following keywords in the
Market Segment Column:
Professional Photographer
Professional Photogr
Fine Art
And add them to a field on the static sheet (Dashboard).

Then I also want to be able to do the same for all others that are not
included in the first lookup and display them another field on Dashboard.

Here is the formula I am using to calculate all sales in January. I am
trying to figure out how to add the second part to the equation.

=SUMPRODUCT(--(MONTH(Commissions!$B$2:$B$3) = 1), Commissions!$E$2:$E$3)

Thank you for any help that can be given,
PETE
  #2   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

=SUMPRODUCT(--(TEXT(Commissions!$B$2:$B$5,"mmm-yy")
="Jan-05"),--ISNUMBER(MATCH(Commissions!$C$2:$C$5,$E$2:$H$2,0)) ,
Commissions!$E$2:$E$3)

where E2:H2 houses the conditions Professional Photographer,
Professional Photogr, and Fine Art.

Pete Petersen wrote:
I am trying to add all sales for four given Market Segments on a refreshable
spreadsheet into a static sheet.

Commissions Sheet (refreshable)
Date Sold Sell Market Seg
1/3/05 $11,672.00 Professional Photogr
1/3/05 $4,425.00 Digital Printer
1/1/05 $300.00 Fine Art Repro
12/31/04 $124.00 Professional Photographer

I want to add all sales for January that equal the following keywords in the
Market Segment Column:
Professional Photographer
Professional Photogr
Fine Art
And add them to a field on the static sheet (Dashboard).

Then I also want to be able to do the same for all others that are not
included in the first lookup and display them another field on Dashboard.

Here is the formula I am using to calculate all sales in January. I am
trying to figure out how to add the second part to the equation.

=SUMPRODUCT(--(MONTH(Commissions!$B$2:$B$3) = 1), Commissions!$E$2:$E$3)

Thank you for any help that can be given,
PETE

  #3   Report Post  
Pete Petersen
 
Posts: n/a
Default

Thank you for the help...it works.

"Aladin Akyurek" wrote:

=SUMPRODUCT(--(TEXT(Commissions!$B$2:$B$5,"mmm-yy")
="Jan-05"),--ISNUMBER(MATCH(Commissions!$C$2:$C$5,$E$2:$H$2,0)) ,
Commissions!$E$2:$E$3)

where E2:H2 houses the conditions Professional Photographer,
Professional Photogr, and Fine Art.

Pete Petersen wrote:
I am trying to add all sales for four given Market Segments on a refreshable
spreadsheet into a static sheet.

Commissions Sheet (refreshable)
Date Sold Sell Market Seg
1/3/05 $11,672.00 Professional Photogr
1/3/05 $4,425.00 Digital Printer
1/1/05 $300.00 Fine Art Repro
12/31/04 $124.00 Professional Photographer

I want to add all sales for January that equal the following keywords in the
Market Segment Column:
Professional Photographer
Professional Photogr
Fine Art
And add them to a field on the static sheet (Dashboard).

Then I also want to be able to do the same for all others that are not
included in the first lookup and display them another field on Dashboard.

Here is the formula I am using to calculate all sales in January. I am
trying to figure out how to add the second part to the equation.

=SUMPRODUCT(--(MONTH(Commissions!$B$2:$B$3) = 1), Commissions!$E$2:$E$3)

Thank you for any help that can be given,
PETE


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



All times are GMT +1. The time now is 09:55 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"