PC Review


Reply
Thread Tools Rate Thread

IS BLANK checking 2 Cells

 
 
MKuria
Guest
Posts: n/a
 
      6th Mar 2009
I have a statement -
to check if both cells are blank then I need to populate with Not Assigned,
if anyone of the cells is not blank then I need it to populate with Assigned.

Here is the formula but it is not working
=IF(OR(ISBLANK(AD2),ISBLANK(AE2)),"Not Assigned", "Assigned")
if one of the cells is not blank it popluates with NOT assigned but I want
it to show Assigned.

Thanks

--
mmk
 
Reply With Quote
 
 
 
 
Mike H
Guest
Posts: n/a
 
      6th Mar 2009
Hi,

Change OR to AND

=IF(AND(ISBLANK(AD2),ISBLANK(AE2)),"Not Assigned", "Assigned")

Mike

"MKuria" wrote:

> I have a statement -
> to check if both cells are blank then I need to populate with Not Assigned,
> if anyone of the cells is not blank then I need it to populate with Assigned.
>
> Here is the formula but it is not working
> =IF(OR(ISBLANK(AD2),ISBLANK(AE2)),"Not Assigned", "Assigned")
> if one of the cells is not blank it popluates with NOT assigned but I want
> it to show Assigned.
>
> Thanks
>
> --
> mmk

 
Reply With Quote
 
Bernard Liengme
Guest
Posts: n/a
 
      6th Mar 2009
The formula =IF(OR(ISBLANK(AD2),ISBLANK(AE2)),"Not Assigned", "Assigned")
is working exactly how it should: if ANY ONE of the cell is blank then you
get "Not Assigned"

The formula =IF(AND(ISBLANK(AD2),ISBLANK(AE2)),"Not Assigned", "Assigned")
will give "Not assigned" only when BOTH cells are blank

So will =IF(COUNTA(AD2, AE2),"Assigned", "Not Assigned")

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"MKuria" <(E-Mail Removed)> wrote in message
news:69645744-2A68-4A8F-A800-(E-Mail Removed)...
>I have a statement -
> to check if both cells are blank then I need to populate with Not
> Assigned,
> if anyone of the cells is not blank then I need it to populate with
> Assigned.
>
> Here is the formula but it is not working
> =IF(OR(ISBLANK(AD2),ISBLANK(AE2)),"Not Assigned", "Assigned")
> if one of the cells is not blank it popluates with NOT assigned but I want
> it to show Assigned.
>
> Thanks
>
> --
> mmk



 
Reply With Quote
 
figdatbong
Guest
Posts: n/a
 
      6th Mar 2009
Alternatively, you could use the following formula:

=IF(COUNTBLANK(your range)=2,"Not Assigned","Assigned")

Hope this helps?


"Mike H" <(E-Mail Removed)> wrote in message
news:506FCA46-D0F0-4EC7-A249-(E-Mail Removed)...
> Hi,
>
> Change OR to AND
>
> =IF(AND(ISBLANK(AD2),ISBLANK(AE2)),"Not Assigned", "Assigned")
>
> Mike
>
> "MKuria" wrote:
>
>> I have a statement -
>> to check if both cells are blank then I need to populate with Not
>> Assigned,
>> if anyone of the cells is not blank then I need it to populate with
>> Assigned.
>>
>> Here is the formula but it is not working
>> =IF(OR(ISBLANK(AD2),ISBLANK(AE2)),"Not Assigned", "Assigned")
>> if one of the cells is not blank it popluates with NOT assigned but I
>> want
>> it to show Assigned.
>>
>> Thanks
>>
>> --
>> mmk



 
Reply With Quote
 
Sam Wilson
Guest
Posts: n/a
 
      6th Mar 2009
=IF(OR(NOT(ISBLANK(A1)),NOT(ISBLANK(B1))),"Assigned","Unassigned")


"MKuria" wrote:

> I have a statement -
> to check if both cells are blank then I need to populate with Not Assigned,
> if anyone of the cells is not blank then I need it to populate with Assigned.
>
> Here is the formula but it is not working
> =IF(OR(ISBLANK(AD2),ISBLANK(AE2)),"Not Assigned", "Assigned")
> if one of the cells is not blank it popluates with NOT assigned but I want
> it to show Assigned.
>
> Thanks
>
> --
> mmk

 
Reply With Quote
 
Shane Devenshire
Guest
Posts: n/a
 
      6th Mar 2009
Hi,

Either

=IF(AND(ISBLANK(AD2),ISBLANK(AE2)),"Not Assigned", "Assigned")

or shorter:

=IF(AND(AD2="",AE2=""),"Not Assigned", "Assigned")

or shorter still

=IF(AND(AD2="",AE2=""),"Not ","")&"Assigned"

or even shorter:

=IF(COUNTA(AD2:AE2),,"Not ")&"Assigned"

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"MKuria" wrote:

> I have a statement -
> to check if both cells are blank then I need to populate with Not Assigned,
> if anyone of the cells is not blank then I need it to populate with Assigned.
>
> Here is the formula but it is not working
> =IF(OR(ISBLANK(AD2),ISBLANK(AE2)),"Not Assigned", "Assigned")
> if one of the cells is not blank it popluates with NOT assigned but I want
> it to show Assigned.
>
> Thanks
>
> --
> mmk

 
Reply With Quote
 
Rick Rothstein
Guest
Posts: n/a
 
      6th Mar 2009
A little shorter yet...

=IF(AD2&AE2="","Not ",)&"Assigned"

--
Rick (MVP - Excel)


"Shane Devenshire" <(E-Mail Removed)> wrote in message
news:E7102D9C-6336-4D33-8FA7-(E-Mail Removed)...
> Hi,
>
> Either
>
> =IF(AND(ISBLANK(AD2),ISBLANK(AE2)),"Not Assigned", "Assigned")
>
> or shorter:
>
> =IF(AND(AD2="",AE2=""),"Not Assigned", "Assigned")
>
> or shorter still
>
> =IF(AND(AD2="",AE2=""),"Not ","")&"Assigned"
>
> or even shorter:
>
> =IF(COUNTA(AD2:AE2),,"Not ")&"Assigned"
>
> --
> If this helps, please click the Yes button.
>
> Cheers,
> Shane Devenshire
>
>
> "MKuria" wrote:
>
>> I have a statement -
>> to check if both cells are blank then I need to populate with Not
>> Assigned,
>> if anyone of the cells is not blank then I need it to populate with
>> Assigned.
>>
>> Here is the formula but it is not working
>> =IF(OR(ISBLANK(AD2),ISBLANK(AE2)),"Not Assigned", "Assigned")
>> if one of the cells is not blank it popluates with NOT assigned but I
>> want
>> it to show Assigned.
>>
>> Thanks
>>
>> --
>> mmk


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
checking for blank cells when using vlookup Koomba Microsoft Excel Worksheet Functions 1 27th Sep 2008 03:30 AM
Checking for non-blank cells in named range =?Utf-8?B?QmFyYiBSZWluaGFyZHQ=?= Microsoft Excel Programming 0 13th Oct 2006 02:42 PM
checking blank cells =?Utf-8?B?QXJuZSBIZWdlZm9ycw==?= Microsoft Excel Programming 1 31st Jul 2006 03:24 PM
Checking Blank Cells =?Utf-8?B?S2FybG9z?= Microsoft Excel Worksheet Functions 2 27th Feb 2006 12:34 PM
Checking for all blank cells in a range orcolumn. =?Utf-8?B?TWlrZXk=?= Microsoft Excel Programming 1 30th Jun 2005 03:59 PM


Features
 

Advertising
 

Newsgroups
 


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