#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 55
Default Bad day for formulas

Excel 2007
I know it's a simple formula, but I just can't make it work;
If cell F5 equals 2, 3, or 4, then cell A8 must equal 1
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 125
Default Bad day for formulas

In cell A8:

=(IF(OR(F5=2, F5=3, F5=4), 1, "Not 1"))

You need to decide what goes in the cell if it is not a "1".

"Canon" wrote:

Excel 2007
I know it's a simple formula, but I just can't make it work;
If cell F5 equals 2, 3, or 4, then cell A8 must equal 1

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Bad day for formulas


Have a look in the help index for AND.
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Canon" wrote in message
...
Excel 2007
I know it's a simple formula, but I just can't make it work;
If cell F5 equals 2, 3, or 4, then cell A8 must equal 1


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,059
Default Bad day for formulas

"Canon" wrote:
I know it's a simple formula, but I just can't make it work;
If cell F5 equals 2, 3, or 4, then cell A8 must equal 1


=IF(OR(F5={2,3,4}),1,0)

Sustitute whatever you want in place of 0 (zero) when none of those
conditions is true.

And if zero is what you want, the following will do:

=OR(F5={2,3,4})*1

or

=--OR(F5={2,3,4})

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
CELLS NOT CALC FORMULAS - VALUES STAY SME FORMULAS CORRECT?? HELP Sherberg Excel Worksheet Functions 4 September 11th 07 01:34 AM
lookup formulas dependent upon lookup formulas Skibee Excel Worksheet Functions 1 July 20th 07 01:06 PM
automatically copy formulas down columns or copy formulas all the HowlingBlue Excel Worksheet Functions 1 March 16th 07 11:11 PM
Formulas not evaluated, Formulas treated as strings Bob Sullentrup Excel Discussion (Misc queries) 0 November 27th 06 08:01 PM
formulas for changing formulas? creativeops Excel Discussion (Misc queries) 4 January 26th 06 03:07 AM


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