ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   If Statement (https://www.excelbanter.com/excel-discussion-misc-queries/223762-if-statement.html)

Liz J[_2_]

If Statement
 
I want to write an if statement that says if cell A1 equals either "1" or "?"
then cell C2 equals cell B2. How do I create that if statement?

Thanks for your help!

Roger Govier[_3_]

If Statement
 
Hi Liz

in cell C2
=IF(OR(A1=1,A1="?"),B2,"")

--
Regards
Roger Govier

"Liz J" wrote in message
...
I want to write an if statement that says if cell A1 equals either "1" or
"?"
then cell C2 equals cell B2. How do I create that if statement?

Thanks for your help!



Sheeloo[_3_]

If Statement
 
Enter this in C2
=IF(OR(A1=1,A1="?"),B2,"")


"Liz J" wrote:

I want to write an if statement that says if cell A1 equals either "1" or "?"
then cell C2 equals cell B2. How do I create that if statement?

Thanks for your help!


Bob I

If Statement
 
And what should C2 equal otherwise?

=IF(OR(A1="1",A1="?"),B2,"???????")

Liz J wrote:

I want to write an if statement that says if cell A1 equals either "1" or "?"
then cell C2 equals cell B2. How do I create that if statement?

Thanks for your help!




All times are GMT +1. The time now is 02:47 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com