Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 209
Default subtotal by a range

I have a list of items sold. Each row contains, the selling price, the
cost, and the gross margin percent.
Is it possible to subtotal the selling price by a range of gross margin?

Example: I would like to see the total sales between 0 and 15 gross
margin, 15 to 25, 25 and above.

gls858
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 222
Default subtotal by a range

Column A = Item
Column B = selling price per
Column C = price for this sale
Column D = cost
Column E = gross margin

"Total sales" you asked for...is that a sum of the values in column C that
match the gross margin range?

0 to 15
=SUMPRODUCT(--($E$1:$E$100<=15),$C$1:$C$100)

15+ to 25
=SUMPRODUCT(--($E$1:$E$10015),--($E$1:$E$100<=25),$C$1:$C$100)

25+
=SUMPRODUCT(--($E$1:$E$10025),$C$1:$C$100)

--
"Actually, I *am* a rocket scientist." -- JB

Your feedback is appreciated, click YES if this post helped you.


"gls858" wrote:

I have a list of items sold. Each row contains, the selling price, the
cost, and the gross margin percent.
Is it possible to subtotal the selling price by a range of gross margin?

Example: I would like to see the total sales between 0 and 15 gross
margin, 15 to 25, 25 and above.

gls858

  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 209
Default subtotal by a range

JBeaucaire wrote:
Column A = Item
Column B = selling price per
Column C = price for this sale
Column D = cost
Column E = gross margin

"Total sales" you asked for...is that a sum of the values in column C that
match the gross margin range?

0 to 15
=SUMPRODUCT(--($E$1:$E$100<=15),$C$1:$C$100)

15+ to 25
=SUMPRODUCT(--($E$1:$E$10015),--($E$1:$E$100<=25),$C$1:$C$100)

25+
=SUMPRODUCT(--($E$1:$E$10025),$C$1:$C$100)


Yes that is correct. Total sales is the sum of the values that match the
range.

I'll give these formulas a try and post back the results.

Thanks
  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 209
Default subtotal by a range

JBeaucaire wrote:
Column A = Item
Column B = selling price per
Column C = price for this sale
Column D = cost
Column E = gross margin

"Total sales" you asked for...is that a sum of the values in column C that
match the gross margin range?

0 to 15
=SUMPRODUCT(--($E$1:$E$100<=15),$C$1:$C$100)

15+ to 25
=SUMPRODUCT(--($E$1:$E$10015),--($E$1:$E$100<=25),$C$1:$C$100)

25+
=SUMPRODUCT(--($E$1:$E$10025),$C$1:$C$100)


I made the necessary adjustments for columns and such and it appears to
have worked just fine. Thanks a bunch.

When I sorted my list by gross margin and then cut and pasted the ranges
into separate sheets and then total the sales column my totals were
slightly different than the totals for the <15 and the 15 to 25. I have
a few line items that have a negative gross margin could that be the issue?

gls858
  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 209
Default subtotal by a range

gls858 wrote:
JBeaucaire wrote:
Column A = Item
Column B = selling price per
Column C = price for this sale Column D = cost
Column E = gross margin

"Total sales" you asked for...is that a sum of the values in column C
that match the gross margin range?

0 to 15 =SUMPRODUCT(--($E$1:$E$100<=15),$C$1:$C$100)

15+ to 25
=SUMPRODUCT(--($E$1:$E$10015),--($E$1:$E$100<=25),$C$1:$C$100)

25+
=SUMPRODUCT(--($E$1:$E$10025),$C$1:$C$100)


I made the necessary adjustments for columns and such and it appears to
have worked just fine. Thanks a bunch.

When I sorted my list by gross margin and then cut and pasted the ranges
into separate sheets and then total the sales column my totals were
slightly different than the totals for the <15 and the 15 to 25. I have
a few line items that have a negative gross margin could that be the issue?

gls858


Never mind I think I found the problem. Underlying values were
calculated to 5 digits. I was working with only 2 digits displayed.
differences were due to rounding.

gls858


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
Subtotal variable range JDaywalt Excel Worksheet Functions 1 May 20th 08 07:26 PM
Subtotal of Abs of a range? G Lykos Excel Worksheet Functions 3 March 7th 07 07:26 PM
how can i insert a subtotal from a range of dates rosa Excel Worksheet Functions 1 May 24th 06 06:58 PM
HOW CAN I INSERT A SUBTOTAL FROM A RANGE OF DATES rosa Excel Worksheet Functions 0 May 24th 06 05:47 PM
SUBTOTAL(9,range) Does NOT work in AutoFilter Dane Excel Worksheet Functions 5 September 4th 05 06:06 PM


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

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"