Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default total amount based on selections of 1-9, 10-19 and 20-30

I am trying to calculate a total based on the number of items a person
purchases that fall within one of these three amounts (1-9,10-19,20-30). Can
anyone help
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default total amount based on selections of 1-9, 10-19 and 20-30

=SUMPRODUCT(--(A1:A100=1),--(A1:A100<=9),B1:B100)
=SUMPRODUCT(--(A1:A100=10),--(A1:A100<=19),B1:B100)
=SUMPRODUCT(--(A1:A100=20),--(A1:A100<=30),B1:B100)


"Pete Elbert" wrote:

I am trying to calculate a total based on the number of items a person
purchases that fall within one of these three amounts (1-9,10-19,20-30). Can
anyone help

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default total amount based on selections of 1-9, 10-19 and 20-30

One way (though your problem statement is rather vague):

=CHOOSE(INT(A1/10)+1,"Total 1", "Total 2", "Total 3", "Total 3")

(the last "Total 3" is necessary since your third range is bigger than
the first two).




In article ,
Pete Elbert wrote:

I am trying to calculate a total based on the number of items a person
purchases that fall within one of these three amounts (1-9,10-19,20-30). Can
anyone help

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default total amount based on selections of 1-9, 10-19 and 20-30

Thank you for your response. I will try it out and get back with you.

"Teethless mama" wrote:

=SUMPRODUCT(--(A1:A100=1),--(A1:A100<=9),B1:B100)
=SUMPRODUCT(--(A1:A100=10),--(A1:A100<=19),B1:B100)
=SUMPRODUCT(--(A1:A100=20),--(A1:A100<=30),B1:B100)


"Pete Elbert" wrote:

I am trying to calculate a total based on the number of items a person
purchases that fall within one of these three amounts (1-9,10-19,20-30). Can
anyone help

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default total amount based on selections of 1-9, 10-19 and 20-30

Thank you for your response. I will try it out and get back with you.

"JE McGimpsey" wrote:

One way (though your problem statement is rather vague):

=CHOOSE(INT(A1/10)+1,"Total 1", "Total 2", "Total 3", "Total 3")

(the last "Total 3" is necessary since your third range is bigger than
the first two).




In article ,
Pete Elbert wrote:

I am trying to calculate a total based on the number of items a person
purchases that fall within one of these three amounts (1-9,10-19,20-30). Can
anyone help




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default total amount based on selections of 1-9, 10-19 and 20-30

Using this formula makes it work just the way I want it to. One issue that I
am not sure how to add into the formula is when cell A1 is empty or has a
zero in it, I would like the cell that provides the total not to show
anything or just a zero value. Otherwise the formula is just what I was
looking for. Any solutions?

"JE McGimpsey" wrote:

One way (though your problem statement is rather vague):

=CHOOSE(INT(A1/10)+1,"Total 1", "Total 2", "Total 3", "Total 3")

(the last "Total 3" is necessary since your third range is bigger than
the first two).




In article ,
Pete Elbert wrote:

I am trying to calculate a total based on the number of items a person
purchases that fall within one of these three amounts (1-9,10-19,20-30). Can
anyone help


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default total amount based on selections of 1-9, 10-19 and 20-30

One way:

=IF(A1=0,"",CHOOSE(...))

In article ,
Pete Elbert wrote:

Using this formula makes it work just the way I want it to. One issue that I
am not sure how to add into the formula is when cell A1 is empty or has a
zero in it, I would like the cell that provides the total not to show
anything or just a zero value. Otherwise the formula is just what I was
looking for. Any solutions?

"JE McGimpsey" wrote:

One way (though your problem statement is rather vague):

=CHOOSE(INT(A1/10)+1,"Total 1", "Total 2", "Total 3", "Total 3")

(the last "Total 3" is necessary since your third range is bigger than
the first two).




In article ,
Pete Elbert wrote:

I am trying to calculate a total based on the number of items a person
purchases that fall within one of these three amounts (1-9,10-19,20-30).
Can
anyone help


  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default total amount based on selections of 1-9, 10-19 and 20-30

Thanks once again. I really appreciate the help. That did the trick. Take
care

"JE McGimpsey" wrote:

One way:

=IF(A1=0,"",CHOOSE(...))

In article ,
Pete Elbert wrote:

Using this formula makes it work just the way I want it to. One issue that I
am not sure how to add into the formula is when cell A1 is empty or has a
zero in it, I would like the cell that provides the total not to show
anything or just a zero value. Otherwise the formula is just what I was
looking for. Any solutions?

"JE McGimpsey" wrote:

One way (though your problem statement is rather vague):

=CHOOSE(INT(A1/10)+1,"Total 1", "Total 2", "Total 3", "Total 3")

(the last "Total 3" is necessary since your third range is bigger than
the first two).




In article ,
Pete Elbert wrote:

I am trying to calculate a total based on the number of items a person
purchases that fall within one of these three amounts (1-9,10-19,20-30).
Can
anyone help


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
need a formula to get the total $ amount FPJ Excel Discussion (Misc queries) 5 January 31st 07 05:16 PM
How can I calculate amount of time left based on amount spent? KLD Excel Worksheet Functions 3 May 23rd 06 04:20 PM
Top Five selections based on sum of items meeting criteria Joe D Excel Worksheet Functions 2 November 20th 05 11:49 PM
having a set $ amount be deducted from any given total Colin2u Excel Discussion (Misc queries) 2 August 11th 05 01:44 PM
How do I calculate Amount of Sales Tax from Total Amount? MikeS Excel Worksheet Functions 1 March 26th 05 07:49 PM


All times are GMT +1. The time now is 07:47 AM.

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

About Us

"It's about Microsoft Excel"