ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   If formula evaluating 2 cells contents (https://www.excelbanter.com/excel-worksheet-functions/40901-if-formula-evaluating-2-cells-contents.html)

N E Body

If formula evaluating 2 cells contents
 
Hi

I cannot get my head round this one at all

I want to enter a formula into a cell <eg C1 to return a value of
"Complete" if A1 is a number and B1 is not blank.
If A1 is a number and B1 is blank C1 value is "Outstanding"
if A1 is blank then C1 is " " <empty

Any Ideas?

Regards
Kenny
Win NT and 2000 with Office 97



JE McGimpsey

One way:

Assuming A1 will be either a number or blank:

=IF(ISBLANK(A1),"",IF(ISBLANK(B1),"Outstanding","C omplete"))

If A1 can be something other than a number or blank:

=IF(ISBLANK(A1), "", IF(ISNUMBER(A1), IF(ISBLANK(B1),
"Outstanding", "Complete"), "Something Else"))


In article ,
"N E Body" wrote:

Hi

I cannot get my head round this one at all

I want to enter a formula into a cell <eg C1 to return a value of
"Complete" if A1 is a number and B1 is not blank.
If A1 is a number and B1 is blank C1 value is "Outstanding"
if A1 is blank then C1 is " " <empty

Any Ideas?

Regards
Kenny
Win NT and 2000 with Office 97


William Horton

Try this formula in cell C1.

IF(AND(ISNUMBER(A1),NOT(ISBLANK(B1))),"Complete",I F(AND(ISNUMBER(A1),ISBLANK(B1)),"Outstanding",IF(I SBLANK(A1),"","Other Scenario")))

Hope this helps.

Thanks,
Bill Horton

"N E Body" wrote:

Hi

I cannot get my head round this one at all

I want to enter a formula into a cell <eg C1 to return a value of
"Complete" if A1 is a number and B1 is not blank.
If A1 is a number and B1 is blank C1 value is "Outstanding"
if A1 is blank then C1 is " " <empty

Any Ideas?

Regards
Kenny
Win NT and 2000 with Office 97




N E Body

Many thanks - works a treat (and my attempts looked nothing like these
examples!!! <VBG)

Regards
Kenny

"JE McGimpsey" wrote in message
...
One way:

Assuming A1 will be either a number or blank:

=IF(ISBLANK(A1),"",IF(ISBLANK(B1),"Outstanding","C omplete"))

If A1 can be something other than a number or blank:

=IF(ISBLANK(A1), "", IF(ISNUMBER(A1), IF(ISBLANK(B1),
"Outstanding", "Complete"), "Something Else"))


In article ,
"N E Body" wrote:

Hi

I cannot get my head round this one at all

I want to enter a formula into a cell <eg C1 to return a value of
"Complete" if A1 is a number and B1 is not blank.
If A1 is a number and B1 is blank C1 value is "Outstanding"
if A1 is blank then C1 is " " <empty

Any Ideas?

Regards
Kenny
Win NT and 2000 with Office 97





All times are GMT +1. The time now is 04:10 PM.

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