Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Jenny
 
Posts: n/a
Default A formula that is: if the sum is this, then muliply by this?

I want a formula that will calculate like this:

If the total in this cell is between 75,000 and 99,999 then muliply it by
..30. If it's between 100,000 and 149,999 then muliply it by .80. Is this
possible?
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

one way:

=IF(OR(A1<75000,A1=150000),"out of range",IF(A1<100000,0.3,0.8)*A1)


In article ,
"Jenny" wrote:

I want a formula that will calculate like this:

If the total in this cell is between 75,000 and 99,999 then muliply it by
.30. If it's between 100,000 and 149,999 then muliply it by .80. Is this
possible?

  #3   Report Post  
Don Guillett
 
Posts: n/a
Default

This lookup formula will do it.
=LOOKUP(SUM(A7:A10),{0,75000,100000,150000},{0,0.3 ,0.8})

=LOOKUP(SUM(A7:A10),{0,75000,100000,150000},{0,0.3 ,0.8})*sum(a7:a10)
Don Guillett
SalesAid Software

"Jenny" wrote in message
...
I want a formula that will calculate like this:

If the total in this cell is between 75,000 and 99,999 then muliply it by
.30. If it's between 100,000 and 149,999 then muliply it by .80. Is this
possible?



  #4   Report Post  
JE McGimpsey
 
Posts: n/a
Default

Note that this gives #N/A for values 150000. IF it's desired that those
values return 0, then you could use

=LOOKUP(SUM(A7:A10),{0,75000,100000,150000,1E+307} ,{0,0.3,0.8,0}) *
SUM(A7:A10)


In article ,
"Don Guillett" wrote:

=LOOKUP(SUM(A7:A10),{0,75000,100000,150000},{0,0.3 ,0.8})*sum(a7:a10)

  #5   Report Post  
BenjieLop
 
Posts: n/a
Default


Jenny Wrote:
I want a formula that will calculate like this:

If the total in this cell is between 75,000 and 99,999 then muliply it
by
..30. If it's between 100,000 and 149,999 then muliply it by .80. Is
this
possible?


Try this formula ...

=if(and(A1=75000,A1<=99999),0.30*A1,if(and(A1=10 0000,A1<=149999),0.80*A1,""))


--
BenjieLop


------------------------------------------------------------------------
BenjieLop's Profile: http://www.excelforum.com/member.php...o&userid=11019
View this thread: http://www.excelforum.com/showthread...hreadid=346866

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
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
revert formula insertion to old method Don't be a pain in the ass Setting up and Configuration of Excel 0 January 24th 05 01:49 PM
Relative Indirect Formula Referencing? Damian Excel Worksheet Functions 1 January 7th 05 04:16 AM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM


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

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"