Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default Formula with minimum & maximum values

I am trying to create a formula that will multiple two cells (ex: A8*A9) but
I want to make sure the final value is greater than or equal to zero and less
than or equal to 400. How would I do this? I appreciate your help.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 947
Default Formula with minimum & maximum values

Hi. One way...
=MIN(MAX(A8*A9,0),400)

--
HTH :)
Dana DeLouis
Windows XP & Excel 2007


"readystate" wrote in message
...
I am trying to create a formula that will multiple two cells (ex: A8*A9)
but
I want to make sure the final value is greater than or equal to zero and
less
than or equal to 400. How would I do this? I appreciate your help.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default Formula with minimum & maximum values

Thanks to all for your help. I have saved all of the formulas provided as I
am sure they will all be useful.

"Dana DeLouis" wrote:

Hi. One way...
=MIN(MAX(A8*A9,0),400)

--
HTH :)
Dana DeLouis
Windows XP & Excel 2007


"readystate" wrote in message
...
I am trying to create a formula that will multiple two cells (ex: A8*A9)
but
I want to make sure the final value is greater than or equal to zero and
less
than or equal to 400. How would I do this? I appreciate your help.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Formula with minimum & maximum values

Maybe this:

=IF(AND(A8*A9=0,A8*A9<=400),A8*A9,"")

Biff

"readystate" wrote in message
...
I am trying to create a formula that will multiple two cells (ex: A8*A9)
but
I want to make sure the final value is greater than or equal to zero and
less
than or equal to 400. How would I do this? I appreciate your help.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 178
Default Formula with minimum & maximum values

=if(or(A8*A9<0,A8*A9400),"Not in range 0-400",A8*A9)
--
HTH,
Gary Brown

If this post was helpful to you, please select ''YES'' at the bottom of the
post.



"readystate" wrote:

I am trying to create a formula that will multiple two cells (ex: A8*A9) but
I want to make sure the final value is greater than or equal to zero and less
than or equal to 400. How would I do this? I appreciate your help.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Formula with minimum & maximum values

Not sure if my post went through, so I'll try once more -

What do you want the cell to display if it is outside of 0-400? Assuming
you would want 0 or 400 to be displayed when the product is outside that
range, another suggestion:

=MEDIAN(A8*A9,0,400)



"readystate" wrote:

I am trying to create a formula that will multiple two cells (ex: A8*A9) but
I want to make sure the final value is greater than or equal to zero and less
than or equal to 400. How would I do this? I appreciate your 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
maximum/minimum value in formula Tim G. Excel Discussion (Misc queries) 2 January 10th 07 10:38 AM
Spinners - minimum and maximum Brad Excel Discussion (Misc queries) 2 September 11th 06 03:33 PM
Maximum & Minimum values in a coulmn balmalik Excel Discussion (Misc queries) 7 July 21st 06 10:29 AM
Maximum and minimum cell value sharkfoot Excel Discussion (Misc queries) 3 March 5th 06 11:08 PM
pivottable formula : maximum one field - minimum of another one seyhmus Excel Discussion (Misc queries) 1 February 24th 06 12:25 AM


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