Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default How do you enter an "if, then" formula?

Does anyone know how to enter a formula that tells the cell function: "if
the sum of B1-B2 is Less than 2000, then enter 2000" ???
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,344
Default How do you enter an "if, then" formula?

Hi,

=IF(B1-B2<2000,2000,"what's here?")

Well you told us what you wan to do if it is less than 2000, what if it is
2000 or greater. I put in "what's here?"

--
Thanks,
Shane Devenshire


"steve45" wrote:

Does anyone know how to enter a formula that tells the cell function: "if
the sum of B1-B2 is Less than 2000, then enter 2000" ???

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,805
Default How do you enter an "if, then" formula?

Yes, many of us do :-)
=IF((B1-B2)<2000,2000,(B1-B2))
This will evaluate to 2000 if (B1-B2) is less than 2000 and to (B1-B2)
otherwise...

IF syntax is
=IF(condition, value if true, value if false)
--
Always provide your feedback so that others know whether the solution worked
or problem still persists ...


"steve45" wrote:

Does anyone know how to enter a formula that tells the cell function: "if
the sum of B1-B2 is Less than 2000, then enter 2000" ???

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default How do you enter an "if, then" formula?

Bloody Genius. It worked!!! Fantastic.

"Sheeloo" wrote:

Yes, many of us do :-)
=IF((B1-B2)<2000,2000,(B1-B2))
This will evaluate to 2000 if (B1-B2) is less than 2000 and to (B1-B2)
otherwise...

IF syntax is
=IF(condition, value if true, value if false)
--
Always provide your feedback so that others know whether the solution worked
or problem still persists ...


"steve45" wrote:

Does anyone know how to enter a formula that tells the cell function: "if
the sum of B1-B2 is Less than 2000, then enter 2000" ???

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default How do you enter an "if, then" formula?

"Duh" on me! However Sheeloo read my mind. Thanks.

"ShaneDevenshire" wrote:

Hi,

=IF(B1-B2<2000,2000,"what's here?")

Well you told us what you wan to do if it is less than 2000, what if it is
2000 or greater. I put in "what's here?"

--
Thanks,
Shane Devenshire


"steve45" wrote:

Does anyone know how to enter a formula that tells the cell function: "if
the sum of B1-B2 is Less than 2000, then enter 2000" ???



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,805
Default How do you enter an "if, then" formula?

:-)


--
Always provide your feedback so that others know whether the solution worked
or problem still persists ...


"steve45" wrote:

Bloody Genius. It worked!!! Fantastic.

"Sheeloo" wrote:

Yes, many of us do :-)
=IF((B1-B2)<2000,2000,(B1-B2))
This will evaluate to 2000 if (B1-B2) is less than 2000 and to (B1-B2)
otherwise...

IF syntax is
=IF(condition, value if true, value if false)
--
Always provide your feedback so that others know whether the solution worked
or problem still persists ...


"steve45" wrote:

Does anyone know how to enter a formula that tells the cell function: "if
the sum of B1-B2 is Less than 2000, then enter 2000" ???

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 168
Default How do you enter an "if, then" formula?

Just to add a bit here,

As well as using the IF function, can also use the MAX
and MIN functions to do this sort of thing. e.g.

=MAX(B1-B2,2000)

HTH
Martin

"steve45" wrote in message
...
Does anyone know how to enter a formula that tells the cell function: "if
the sum of B1-B2 is Less than 2000, then enter 2000" ???



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 - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
Help!!! Enter "7" in a cell and Excel changes the "7" to "11" immediately!!! [email protected] Excel Discussion (Misc queries) 3 January 5th 07 03:18 PM
Make "Edit" mode default, rather than "Enter"? Greg Boettcher Excel Discussion (Misc queries) 1 July 27th 06 01:46 AM
how do you enter more than 7 "if" functions in a formula? Heindrich Excel Worksheet Functions 3 April 6th 06 04:10 PM
excel formula to enter "0" if cell blank Curt Excel Worksheet Functions 9 November 6th 05 09:24 AM


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