Need help on OR function

mach3

Board Regular
Joined
Mar 24, 2002
Messages
245
i have the following formula:
=IF(ISBLANK(AF59),0,1)

i want it to say if AF59 or AE59 or AD59 is blank, return 0, else return 1.

also, instead of using an OR function and using 10 references to 10 cells, can i use some kind of array that says if AA59 to AG59 is blank, return 0, else return 1?


thanks in advance.


mach3
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Try this:
=IF(OR(ISBLANK(A1:A3)),0,1)
after typing it in, hold down Ctrl+Shift and hit Enter. This will enter it as some sort of array function, and it should work.
 
Upvote 0
On 2002-04-24 08:04, mach3 wrote:
i have the following formula:
=IF(ISBLANK(AF59),0,1)

i want it to say if AF59 or AE59 or AD59 is blank, return 0, else return 1.

also, instead of using an OR function and using 10 references to 10 cells, can i use some kind of array that says if AA59 to AG59 is blank, return 0, else return 1?


thanks in advance.


mach3

{=IF(OR(ISBLANK(AD59:AF59)),0,1)}

Note: This is an array formula which is entered using the Control+Shift+Enter key combination. For more on array formulas see the Excel Help Index topic for "About array formulas and how to enter them".
 
Upvote 0
On 2002-04-24 08:04, mach3 wrote:
i have the following formula:
=IF(ISBLANK(AF59),0,1)

i want it to say if AF59 or AE59 or AD59 is blank, return 0, else return 1.

also, instead of using an OR function and using 10 references to 10 cells, can i use some kind of array that says if AA59 to AG59 is blank, return 0, else return 1?


thanks in advance.


mach3

If a blank in the range is sufficient to return 0, then use:

=COUNTBLANK(AA59:AG59)>0)+0

Amended:

=CHOOSE((COUNTBLANK(A1:A4)>0)+1,1,0)

which still allows avoiding an array formula.

:)

Aladin
This message was edited by Aladin Akyurek on 2002-04-24 08:31
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,428
Members
448,961
Latest member
nzskater

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top