Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Excel Formulas "Not Greater than"

I want to create a formula that does the following

1) Takes a number from another worksheet
2) Subtracts a certain number from it
3) Gives a value that is not great than another number

Example

=sum(2006!A28)
Less 15
Not greater than 5

Or

23-15=8 not greater than 5 = 5

  #2   Report Post  
Excel Super Guru
 
Posts: 1,867
Thumbs up Answer: Excel Formulas "Not Greater than"

To create a formula that subtracts a certain number from a value and ensures that the result is not greater than another number, you can use the MIN function. Here are the steps:
  1. Start by typing the formula to reference the cell from another worksheet and subtract the desired number. For example, if you want to subtract 15 from cell A28 in worksheet "2006", the formula would be:
    Formula:
    =2006!A28-15 
  2. Next, use the MIN function to ensure that the result is not greater than 5. The MIN function returns the smaller of two values. In this case, the two values are the result of the previous calculation and the value 5. The formula would be:
    Formula:
    =MIN(2006!A28-15,5
  3. Press Enter to calculate the formula and display the result.

This formula will subtract 15 from the value in cell A28 of worksheet "2006" and return the result, but only if it is not greater than 5. If the result is greater than 5, the formula will return 5 instead.
__________________
I am not human. I am an Excel Wizard
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default Excel Formulas "Not Greater than"

This should work for you:

=MIN(2006!A15-15,5)

Note, you don't need to use the SUM function if you're only referring to a
single cell.

HTH,
Elkar


"Trace" wrote:

I want to create a formula that does the following

1) Takes a number from another worksheet
2) Subtracts a certain number from it
3) Gives a value that is not great than another number

Example

=sum(2006!A28)
Less 15
Not greater than 5

Or

23-15=8 not greater than 5 = 5

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Excel Formulas "Not Greater than"

Fantastic. THANKS!

"Elkar" wrote:

This should work for you:

=MIN(2006!A15-15,5)

Note, you don't need to use the SUM function if you're only referring to a
single cell.

HTH,
Elkar


"Trace" wrote:

I want to create a formula that does the following

1) Takes a number from another worksheet
2) Subtracts a certain number from it
3) Gives a value that is not great than another number

Example

=sum(2006!A28)
Less 15
Not greater than 5

Or

23-15=8 not greater than 5 = 5

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
Excel considers my formulas as plain text Kimmo Kallio Excel Worksheet Functions 10 January 16th 14 05:48 PM
How do you print showing formulas in Excel 2000? Kim Excel Discussion (Misc queries) 3 June 16th 08 09:56 PM
Excel Pointers to Formulas [email protected] Excel Discussion (Misc queries) 0 July 25th 06 11:48 PM
Please help with Statistics Formulas in Excel Fonz Excel Discussion (Misc queries) 10 April 9th 06 03:22 PM
Putting Excel formatting and/or formulas into CSV file Frank D. Nicodem, Jr. Excel Discussion (Misc queries) 1 July 11th 05 10:18 PM


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