Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default How to establish a maximum and minimum value to a cell

Hi,

I was wondering how would I go about establishing a maximum and minimum
value to a cell?

Ex.: Cell B30=(B3-B23)/1000

I want B30 to range only from -.5 to .5.

So if B30=-1, I want it to turn into -.5, and if it equals 1, I want it to
turn into .5

Any help would be appreciated.

Thanks,
Josh
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default How to establish a maximum and minimum value to a cell

=MAX(MIN((B3-B23)/1000,0.5),-0.5)


"jvega" wrote:

Hi,

I was wondering how would I go about establishing a maximum and minimum
value to a cell?

Ex.: Cell B30=(B3-B23)/1000

I want B30 to range only from -.5 to .5.

So if B30=-1, I want it to turn into -.5, and if it equals 1, I want it to
turn into .5

Any help would be appreciated.

Thanks,
Josh

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default How to establish a maximum and minimum value to a cell

Awesome, thank you

"Teethless mama" wrote:

=MAX(MIN((B3-B23)/1000,0.5),-0.5)


"jvega" wrote:

Hi,

I was wondering how would I go about establishing a maximum and minimum
value to a cell?

Ex.: Cell B30=(B3-B23)/1000

I want B30 to range only from -.5 to .5.

So if B30=-1, I want it to turn into -.5, and if it equals 1, I want it to
turn into .5

Any help would be appreciated.

Thanks,
Josh

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default How to establish a maximum and minimum value to a cell

=MEDIAN(-0.5,(B3-B23)/1000,0.5)
--
David Biddulph

"jvega" wrote in message
...
Hi,

I was wondering how would I go about establishing a maximum and minimum
value to a cell?

Ex.: Cell B30=(B3-B23)/1000

I want B30 to range only from -.5 to .5.

So if B30=-1, I want it to turn into -.5, and if it equals 1, I want it to
turn into .5

Any help would be appreciated.

Thanks,
Josh



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
How do I find the cell reference that contains the minimum or maximum fadsnet Excel Worksheet Functions 4 September 4th 06 04:30 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


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