ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Simple If formula but can't get my head around it! (https://www.excelbanter.com/excel-worksheet-functions/100147-simple-if-formula-but-cant-get-my-head-around.html)

Cheryl

Simple If formula but can't get my head around it!
 
I have column A which has a score in it . In column B I have the formula:

=IF(A2=326,"Pass","Fail")

This works ok but enters Fail even if there is no entry in column A. I want
to add to the formula the condition that if the cell is blank then the cell
in column B should also be blank.

I would be grateful for any help,

Thanks,

Cheryl

Danny Lewis

Simple If formula but can't get my head around it!
 
Hi Cheryl

=IF(A2="","",IF(A2=326,"Pass","Fail"))

Danny

"Cheryl" wrote:

I have column A which has a score in it . In column B I have the formula:

=IF(A2=326,"Pass","Fail")

This works ok but enters Fail even if there is no entry in column A. I want
to add to the formula the condition that if the cell is blank then the cell
in column B should also be blank.

I would be grateful for any help,

Thanks,

Cheryl


CLR

Simple If formula but can't get my head around it!
 
This will also check for TEXT in A2.........

=IF(OR(A2="",ISTEXT(A2)),"",IF(A2=326,"Pass","Fai l"))

Vaya con Dios,
Chuck, CABGx3




"Cheryl" wrote:

I have column A which has a score in it . In column B I have the formula:

=IF(A2=326,"Pass","Fail")

This works ok but enters Fail even if there is no entry in column A. I want
to add to the formula the condition that if the cell is blank then the cell
in column B should also be blank.

I would be grateful for any help,

Thanks,

Cheryl


Cheryl

Simple If formula but can't get my head around it!
 
Thanks Danny, just what I wanted

Cheryl

"Danny Lewis" wrote:

Hi Cheryl

=IF(A2="","",IF(A2=326,"Pass","Fail"))

Danny

"Cheryl" wrote:

I have column A which has a score in it . In column B I have the formula:

=IF(A2=326,"Pass","Fail")

This works ok but enters Fail even if there is no entry in column A. I want
to add to the formula the condition that if the cell is blank then the cell
in column B should also be blank.

I would be grateful for any help,

Thanks,

Cheryl



All times are GMT +1. The time now is 07:22 AM.

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