Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default IS BLANK checking 2 Cells

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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default IS BLANK checking 2 Cells

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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default IS BLANK checking 2 Cells

Alternatively, you could use the following formula:

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

Hope this helps?


"Mike H" wrote in message
...
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



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,104
Default IS BLANK checking 2 Cells

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" wrote in message
...
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



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 523
Default IS BLANK checking 2 Cells

=IF(OR(NOT(ISBLANK(A1)),NOT(ISBLANK(B1))),"Assigne d","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



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 857
Default IS BLANK checking 2 Cells

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

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default IS BLANK checking 2 Cells

A little shorter yet...

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

--
Rick (MVP - Excel)


"Shane Devenshire" wrote in message
...
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
checking for blank cells when using vlookup Koomba Excel Worksheet Functions 1 September 27th 08 03:30 AM
Checking cells are = and return a value nev1956 Excel Discussion (Misc queries) 1 September 28th 07 01:10 PM
Checking the Cells in Sheet1 with Cells in Sheet2 and replace Checking the cells in Sheet1 with Sheet2 Excel Worksheet Functions 1 August 19th 06 09:29 AM
Checking Blank Cells Karlos Excel Worksheet Functions 2 February 27th 06 12:34 PM
Checking that any cells are null RFJ Excel Worksheet Functions 5 June 21st 05 01:21 PM


All times are GMT +1. The time now is 05:12 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"