Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
BobVA
 
Posts: n/a
Default writing a greater than/less than formula

Hello,

I'm ok in Excel but I need to write a formula to calculate that if sales are
greater than 100,000 but less than 200,000 multiply that number by 25%.
Probably real easy for some of you but I can't quite get it to work. Any
suggestion is welcome.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
pdberger
 
Posts: n/a
Default writing a greater than/less than formula

Bob --

If your sales are in A1, then here's a formula that works:

=IF(AND(A2100000,A2<200000),A2*1.25,"")

You'll need to add whatever happens if it's outside the range.

HTH

"BobVA" wrote:

Hello,

I'm ok in Excel but I need to write a formula to calculate that if sales are
greater than 100,000 but less than 200,000 multiply that number by 25%.
Probably real easy for some of you but I can't quite get it to work. Any
suggestion is welcome.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete_UK
 
Posts: n/a
Default writing a greater than/less than formula

This raises a few other questions, such as what if sales are less than
or equal to 100,000 or greater than or equal to 200,000? But anyway,
you can try this, assuming the sales figure is in A1:

=IF(AND(A1100000,A1<200000),A1*0.25,A1)

This returns A1 if the conditions are not met.

Hope this helps.

Pete

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Fred Smith
 
Posts: n/a
Default writing a greater than/less than formula

Use the And function:

=if(and(a1100000,a1<200000),a1*1.25,valueiffalse)

--
Regards,
Fred


"BobVA" wrote in message
...
Hello,

I'm ok in Excel but I need to write a formula to calculate that if sales are
greater than 100,000 but less than 200,000 multiply that number by 25%.
Probably real easy for some of you but I can't quite get it to work. Any
suggestion is welcome.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Zenaida
 
Posts: n/a
Default writing a greater than/less than formula


I did not know what cell you wanted this formula in so you would need to
replace A3 with the correct cell.

This formula should work but if the value is 100,000 it will not be
multiplied by 25% because you state 100000 and if the value is
200,000 it will not be multiplied by 25% because you state < 200000.

You will need to modify the formula if the values of 100,000 and
200,000 are suppose to be multiplied by 25%.

Also, if the value is greater than 200,000 and less than 100,000, what
do you want the formula to do? With an If statement you have to tell
the formula what you want when the result is true and what you want if
the result is false. I did not know what you wanted to happen if the
result was false. So I referenced the cell. So whatever is in cell A3
is what will appear in the cell that contains this formula.


Code:
--------------------
=IF(AND(A3100000, A3<200000), A3*25%, A3)
--------------------


--
Zenaida


------------------------------------------------------------------------
Zenaida's Profile: http://www.excelforum.com/member.php...o&userid=33802
View this thread: http://www.excelforum.com/showthread...hreadid=536202



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
MINI MART
 
Posts: n/a
Default writing a greater than/less than formula



"BobVA" wrote:

Hello,

I'm ok in Excel but I need to write a formula to calculate that if sales are
greater than 100,000 but less than 200,000 multiply that number by 25%.
Probably real easy for some of you but I can't quite get it to work. Any
suggestion is welcome.

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Corey
 
Posts: n/a
Default writing a greater than/less than formula

Try:
=IF(A1200000,"",IF(A1<100000,"",IF(A1=100000,A1* 0.25)))

where A1 is your data.
Above formula will give a result if A1 is equal to 100,000 (min)and 200,000
(max)also.

If data is above or below range then nothing is displayed.

Corey....

"MINI MART" <MINI wrote in message
...


"BobVA" wrote:

Hello,

I'm ok in Excel but I need to write a formula to calculate that if sales
are
greater than 100,000 but less than 200,000 multiply that number by 25%.
Probably real easy for some of you but I can't quite get it to work. Any
suggestion is welcome.



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default writing a greater than/less than formula

I have a similar scenario but can you please show me what that function would
look like if the conditions weren't met and I don't want the number to return
to A1?

"Pete_UK" wrote:

This raises a few other questions, such as what if sales are less than
or equal to 100,000 or greater than or equal to 200,000? But anyway,
you can try this, assuming the sales figure is in A1:

=IF(AND(A1100000,A1<200000),A1*0.25,A1)

This returns A1 if the conditions are not met.

Hope this helps.

Pete


  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default writing a greater than/less than formula

If, instead of A1, you want the function to return an empty string "", then
change
=IF(AND(A1100000,A1<200000),A1*0.25,A1)
to
=IF(AND(A1100000,A1<200000),A1*0.25,"")

If you want the formula to return something different if the condition isn't
met, then put that after the second comma, instead of A1 or "".
--
David Biddulph

"Go-go" wrote in message
...
I have a similar scenario but can you please show me what that function
would
look like if the conditions weren't met and I don't want the number to
return
to A1?

"Pete_UK" wrote:

This raises a few other questions, such as what if sales are less than
or equal to 100,000 or greater than or equal to 200,000? But anyway,
you can try this, assuming the sales figure is in A1:

=IF(AND(A1100000,A1<200000),A1*0.25,A1)

This returns A1 if the conditions are not met.

Hope this helps.

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula for selecting the greater of two values? Boriana Excel Worksheet Functions 6 April 5th 23 01:05 PM
Matching Values from an Array Mal Excel Worksheet Functions 2 January 4th 06 10:06 AM
Greater than formula! nekteo Excel Worksheet Functions 2 December 29th 05 05:09 PM
Need Help Writing a Formula Lynn Excel Worksheet Functions 11 September 11th 05 07:51 PM
Help writing an Excel Formula bella0711 Excel Worksheet Functions 4 September 9th 05 03:57 PM


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