#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Logic Formula

I want to create a formula to look at a value in a cell to see if it is
greater or less than a specified number. If the cell is less than the
specified number then I want to use that number. If the cell is greater than
the specified number then I want to use the specified number.

Example:

20 ---- If cell is < 80, then 20; if cell is or= 80, then 80

Thank you in advance for your help.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Logic Formula

Assume the value 20 is in A1, try this in B1:

=MIN(A1,80)

Hope this helps.

Pete

Truc Lopez wrote:

I want to create a formula to look at a value in a cell to see if it is
greater or less than a specified number. If the cell is less than the
specified number then I want to use that number. If the cell is greater than
the specified number then I want to use the specified number.

Example:

20 ---- If cell is < 80, then 20; if cell is or= 80, then 80

Thank you in advance for your help.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Logic Formula

Pete, thank you for your response. However, the formula did not work for me.
I went to the end cell and typed in the formula you provided and substituted
in the actual cell number in place of A1 and what I got was the formula
rather than a number. What did I do wrong?

"Pete_UK" wrote:

Assume the value 20 is in A1, try this in B1:

=MIN(A1,80)

Hope this helps.

Pete

Truc Lopez wrote:

I want to create a formula to look at a value in a cell to see if it is
greater or less than a specified number. If the cell is less than the
specified number then I want to use that number. If the cell is greater than
the specified number then I want to use the specified number.

Example:

20 ---- If cell is < 80, then 20; if cell is or= 80, then 80

Thank you in advance for your help.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Logic Formula

Your cell was probably formatted to Text.

Format the cell to General or Number, then click in the formula bar and hit
<Enter to register the change.
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"Truc Lopez" wrote in message
...
Pete, thank you for your response. However, the formula did not work for
me.
I went to the end cell and typed in the formula you provided and
substituted
in the actual cell number in place of A1 and what I got was the formula
rather than a number. What did I do wrong?

"Pete_UK" wrote:

Assume the value 20 is in A1, try this in B1:

=MIN(A1,80)

Hope this helps.

Pete

Truc Lopez wrote:

I want to create a formula to look at a value in a cell to see if it is
greater or less than a specified number. If the cell is less than the
specified number then I want to use that number. If the cell is greater
than
the specified number then I want to use the specified number.

Example:

20 ---- If cell is < 80, then 20; if cell is or= 80, then 80

Thank you in advance for your help.





  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Logic Formula

Perhaps that cell had been pre-formatted as text. Select the cell again
and Format | Cells | Number (tab) | General | OK, then double-click the
formula as if to edit it and then press <Enter.

Alternatively, your worksheet might be set to manual calculation -
press F9 to recalculate the sheet.

Hope this helps.

Pete

Truc Lopez wrote:

Pete, thank you for your response. However, the formula did not work for me.
I went to the end cell and typed in the formula you provided and substituted
in the actual cell number in place of A1 and what I got was the formula
rather than a number. What did I do wrong?

"Pete_UK" wrote:

Assume the value 20 is in A1, try this in B1:

=MIN(A1,80)

Hope this helps.

Pete

Truc Lopez wrote:

I want to create a formula to look at a value in a cell to see if it is
greater or less than a specified number. If the cell is less than the
specified number then I want to use that number. If the cell is greater than
the specified number then I want to use the specified number.

Example:

20 ---- If cell is < 80, then 20; if cell is or= 80, then 80

Thank you in advance for your help.






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 772
Default Logic Formula

This should do ya
=IF(A1<80,20,80)
--
-John Northwest11
Please rate when your question is answered to help us and others know what
is helpful.


"Truc Lopez" wrote:

I want to create a formula to look at a value in a cell to see if it is
greater or less than a specified number. If the cell is less than the
specified number then I want to use that number. If the cell is greater than
the specified number then I want to use the specified number.

Example:

20 ---- If cell is < 80, then 20; if cell is or= 80, then 80

Thank you in advance for your help.

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Logic Formula

Say you're looking at the value in A1.<20

Say the "specified" number is in B1.<80

=MIN(A1,B1)

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"Truc Lopez" wrote in message
...
I want to create a formula to look at a value in a cell to see if it is
greater or less than a specified number. If the cell is less than the
specified number then I want to use that number. If the cell is greater
than
the specified number then I want to use the specified number.

Example:

20 ---- If cell is < 80, then 20; if cell is or= 80, then 80

Thank you in advance for 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
Find value in array Brook6 Excel Worksheet Functions 26 January 30th 07 09:40 PM
Is it possible? DakotaNJ Excel Worksheet Functions 25 September 18th 06 09:30 PM
Logic of this formula =SUMPRODUCT((A1:A4<"")/COUNTIF(A1:A4,A1:A4& vishu Excel Discussion (Misc queries) 3 March 28th 06 08:56 AM
Array Formula Using Max Match Logic JR573PUTT Excel Discussion (Misc queries) 4 February 26th 06 05:09 AM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM


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