Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 74
Default I want to limit the result of a calculation to a maximum number...

I have a formula in a cell; =IF(B4=0,0,IF(B6=0,0,B6/(PI()*(B4/12))))

I never want to display a result greater than 600 and if the result is
greater than 600, I want 600 to be displayed.

How do I alter my formula to achieve this?

Darrell
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 620
Default I want to limit the result of a calculation to a maximum number...

=IF(B4=0,0,IF(B6=0,0,MIN(600,B6/(PI()*(B4/12)))))
--
David Biddulph

"Dr. Darrell" wrote in message
...
I have a formula in a cell; =IF(B4=0,0,IF(B6=0,0,B6/(PI()*(B4/12))))

I never want to display a result greater than 600 and if the result is
greater than 600, I want 600 to be displayed.

How do I alter my formula to achieve this?

Darrell



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,440
Default I want to limit the result of a calculation to a maximum number...

Hi Darrel,

=MIN(IF(B4=0,0,IF(B6=0,0,B6/(PI()*(B4/12)))),600)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Dr. Darrell" wrote in message ...
|I have a formula in a cell; =IF(B4=0,0,IF(B6=0,0,B6/(PI()*(B4/12))))
|
| I never want to display a result greater than 600 and if the result is
| greater than 600, I want 600 to be displayed.
|
| How do I alter my formula to achieve this?
|
| Darrell


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 74
Default I want to limit the result of a calculation to a maximum numbe

TY, This worked nicely.

I have another Cell that I have an entry which needs to be between 1 and 12
(Whole Numbers) I would like to do the same thing. If someone erroniously
enters a number larger than 12, I would like 12 to be displayed.

I was hoping that the reply to the first question would help me, but since
I'm not starting with a formula, I'm not sure how to enter the logic.

Can you demonstrate how to limit the display to no greater than 12?

Darrell

"Niek Otten" wrote:

Hi Darrel,

=MIN(IF(B4=0,0,IF(B6=0,0,B6/(PI()*(B4/12)))),600)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Dr. Darrell" wrote in message ...
|I have a formula in a cell; =IF(B4=0,0,IF(B6=0,0,B6/(PI()*(B4/12))))
|
| I never want to display a result greater than 600 and if the result is
| greater than 600, I want 600 to be displayed.
|
| How do I alter my formula to achieve this?
|
| Darrell



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 620
Default I want to limit the result of a calculation to a maximum numbe

If you want to contrain a value to be between 1 and 12, you can either use
=IF(A1<1,1,IF(A112,12,A1)) or
=MAX(1,MIN(A1,12)) or
=MEDIAN(1,A1,12)
--
David Biddulph

"Dr. Darrell" wrote in message
...
TY, This worked nicely.

I have another Cell that I have an entry which needs to be between 1 and
12
(Whole Numbers) I would like to do the same thing. If someone erroniously
enters a number larger than 12, I would like 12 to be displayed.

I was hoping that the reply to the first question would help me, but since
I'm not starting with a formula, I'm not sure how to enter the logic.

Can you demonstrate how to limit the display to no greater than 12?

Darrell


"Niek Otten" wrote:

Hi Darrel,

=MIN(IF(B4=0,0,IF(B6=0,0,B6/(PI()*(B4/12)))),600)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Dr. Darrell" wrote in message
...
|I have a formula in a cell; =IF(B4=0,0,IF(B6=0,0,B6/(PI()*(B4/12))))
|
| I never want to display a result greater than 600 and if the result is
| greater than 600, I want 600 to be displayed.
|
| How do I alter my formula to achieve this?
|
| Darrell







  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 74
Default I want to limit the result of a calculation to a maximum numbe

It appears that I have to enter data into a linked cell. I prefer to just
directly enter the value into it's own cell.

I have used the Validation option that Martin suggested.

Is there a way to enter a formula into a cell and then when it's time to
enter a value into that same cell, that the data doesn't overide the formula?

"David Biddulph" wrote:

If you want to contrain a value to be between 1 and 12, you can either use
=IF(A1<1,1,IF(A112,12,A1)) or
=MAX(1,MIN(A1,12)) or
=MEDIAN(1,A1,12)
--
David Biddulph

"Dr. Darrell" wrote in message
...
TY, This worked nicely.

I have another Cell that I have an entry which needs to be between 1 and
12
(Whole Numbers) I would like to do the same thing. If someone erroniously
enters a number larger than 12, I would like 12 to be displayed.

I was hoping that the reply to the first question would help me, but since
I'm not starting with a formula, I'm not sure how to enter the logic.

Can you demonstrate how to limit the display to no greater than 12?

Darrell


"Niek Otten" wrote:

Hi Darrel,

=MIN(IF(B4=0,0,IF(B6=0,0,B6/(PI()*(B4/12)))),600)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Dr. Darrell" wrote in message
...
|I have a formula in a cell; =IF(B4=0,0,IF(B6=0,0,B6/(PI()*(B4/12))))
|
| I never want to display a result greater than 600 and if the result is
| greater than 600, I want 600 to be displayed.
|
| How do I alter my formula to achieve this?
|
| Darrell






  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6,953
Default I want to limit the result of a calculation to a maximum numbe

No, a cell has a formula or a constant value.

--
Regards,
Tom Ogilvy


"Dr. Darrell" wrote:

It appears that I have to enter data into a linked cell. I prefer to just
directly enter the value into it's own cell.

I have used the Validation option that Martin suggested.

Is there a way to enter a formula into a cell and then when it's time to
enter a value into that same cell, that the data doesn't overide the formula?

"David Biddulph" wrote:

If you want to contrain a value to be between 1 and 12, you can either use
=IF(A1<1,1,IF(A112,12,A1)) or
=MAX(1,MIN(A1,12)) or
=MEDIAN(1,A1,12)
--
David Biddulph

"Dr. Darrell" wrote in message
...
TY, This worked nicely.

I have another Cell that I have an entry which needs to be between 1 and
12
(Whole Numbers) I would like to do the same thing. If someone erroniously
enters a number larger than 12, I would like 12 to be displayed.

I was hoping that the reply to the first question would help me, but since
I'm not starting with a formula, I'm not sure how to enter the logic.

Can you demonstrate how to limit the display to no greater than 12?

Darrell


"Niek Otten" wrote:

Hi Darrel,

=MIN(IF(B4=0,0,IF(B6=0,0,B6/(PI()*(B4/12)))),600)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Dr. Darrell" wrote in message
...
|I have a formula in a cell; =IF(B4=0,0,IF(B6=0,0,B6/(PI()*(B4/12))))
|
| I never want to display a result greater than 600 and if the result is
| greater than 600, I want 600 to be displayed.
|
| How do I alter my formula to achieve this?
|
| Darrell






  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 860
Default I want to limit the result of a calculation to a maximum numbe

Hi Darrell

You can use DataValidation and select whole number from the dropdown
then set between 0 and 12. Then any input other than 1 to 12 in the cell
will receive a message to try again.

HTH
Martin


  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 74
Default I want to limit the result of a calculation to a maximum numbe

TY, I like this resolution

Darrell

"MartinW" wrote:

Hi Darrell

You can use DataValidation and select whole number from the dropdown
then set between 0 and 12. Then any input other than 1 to 12 in the cell
will receive a message to try again.

HTH
Martin



  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 860
Default I want to limit the result of a calculation to a maximum number...

Hi Darrell,

This should do.
=IF(B4=0,0,IF(B6=0,0,IF(B6/(PI()*(B4/12)600,600,B6/(PI()*(B4/12))))

HTH
Martin




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
Finding maximum qty of items to reach given limit Jashun Excel Worksheet Functions 1 October 18th 06 08:17 PM
Formula for calculating a running balance up to a maximum limit kaw Excel Worksheet Functions 3 September 14th 06 07:10 PM
Excel Solver (Maximum Limit of no. of variables & constraints) Ritesh Excel Discussion (Misc queries) 1 August 8th 06 05:54 PM
Formula to limit the size of a number result in a cell? Pheasant Plucker® Excel Discussion (Misc queries) 3 February 2nd 06 11:14 AM
How do I change - increase maximum limit of the row height (409 p. Marek Excel Discussion (Misc queries) 0 March 1st 05 02:27 PM


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