ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Using the IF Command (https://www.excelbanter.com/excel-worksheet-functions/200209-using-if-command.html)

eugene

Using the IF Command
 
How do I set up my worksheet to use the IF Command.

I have Columns C D E G in a Row

C can only have a value of 1 to 5. If this value is filled in D & E must be
blank and G should be 5

D can only have a value of 0. If filled in C & E must be blank and G should
be 5

If C & D is blank E should have NA and G should be 0



EddS

Using the IF Command
 
Cell E:
=IF(C14="",IF(D14="","N/A",""),"")
Cell G
=IF(C14<"",5,0)

"Eugene" wrote:

How do I set up my worksheet to use the IF Command.

I have Columns C D E G in a Row

C can only have a value of 1 to 5. If this value is filled in D & E must be
blank and G should be 5

D can only have a value of 0. If filled in C & E must be blank and G should
be 5

If C & D is blank E should have NA and G should be 0



EddS

Using the IF Command
 
correction to G

=IF(C14<"",5,IF(D14=0,5,0))

"Eugene" wrote:

How do I set up my worksheet to use the IF Command.

I have Columns C D E G in a Row

C can only have a value of 1 to 5. If this value is filled in D & E must be
blank and G should be 5

D can only have a value of 0. If filled in C & E must be blank and G should
be 5

If C & D is blank E should have NA and G should be 0




All times are GMT +1. The time now is 09:20 PM.

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