Combining IF functions

Scott82

New Member
Joined
Jun 8, 2011
Messages
48
Hi guys, my brain hurts!

I am trying to combine these two statements that both work fine on their own!
=IF(ISBLANK('[Schedules Flexible worker.xls]Schedules'!$E$4:$E$12),"Call")
&
=IF('Availability IN'!D4="x","Call")

So that if both are true then "call"

I'm sure this is fairly easy but I've lost the will to live!

Many thanks

Scott
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Try:
Code:
=IF(AND(ISBLANK('[Schedules Flexible worker.xls]Schedules'!$E$4:$E$12),'Availability IN'!D4="x"),"Call","")
 
Upvote 0
Try:

=IF(AND(ISBLANK('[Schedules Flexible worker.xls]Schedules'!$E$4:$E$12),'Availability IN'!D4="x"),"Call","")
 
Upvote 0
Thanks guys, it's still not working.

I've just realised that the cells E4:E12 that I am refering to have formulas in of their own (showing blank untill criteria is met.) I'm guessing "ISBLANK" refers to completly empty cells??

Thanks Scott
 
Upvote 0
ISBLANK won't work if the cell contains "" which appears as blank.
Try changing below to:
Code:
=IF(AND(LEN('[Schedules Flexible worker.xls]Schedules'!$E$4:$E$12)<1,'Availability IN'!D4="x"),"Call","")
 
Upvote 0
Hi there, they are a variation of the one below!

<TABLE style="WIDTH: 52pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=69 x:str><COLGROUP><COL style="WIDTH: 52pt; mso-width-source: userset; mso-width-alt: 2523" width=69><TBODY><TR style="HEIGHT: 15pt" height=20><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 1pt solid; BACKGROUND-COLOR: silver; WIDTH: 52pt; HEIGHT: 15pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid" class=xl24 height=20 width=69 x:str=""> </TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 1pt solid; BACKGROUND-COLOR: silver; HEIGHT: 15pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl24 height=20>=IF(ISNA(MATCH("Julie",'S:\School\SMT\Rotas\Giles House\2010 - 2011\[Giles House Term 6 2010-2011.xls]Sheet1'!$B$3:$B$13,0)),"","Giles")</TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 1pt solid; BACKGROUND-COLOR: silver; HEIGHT: 15pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl24 height=20 x:str=""> </TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 1pt solid; BACKGROUND-COLOR: silver; HEIGHT: 15pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl24 height=20 x:str=""> </TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 1pt solid; BACKGROUND-COLOR: silver; HEIGHT: 15pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl24 height=20 x:str=""> </TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 1pt solid; BACKGROUND-COLOR: silver; HEIGHT: 15pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl24 height=20 x:str=""> </TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 1pt solid; BACKGROUND-COLOR: silver; HEIGHT: 15pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl24 height=20 x:str=""> </TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 1pt solid; BACKGROUND-COLOR: silver; HEIGHT: 15pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl24 height=20> </TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 1pt solid; BACKGROUND-COLOR: silver; HEIGHT: 15pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid" class=xl24 height=20 x:str=""> </TD></TR></TBODY></TABLE>

Many thanks

Scott
 
Upvote 0
Hi guys, my brain hurts!

I am trying to combine these two statements that both work fine on their own!
=IF(ISBLANK('[Schedules Flexible worker.xls]Schedules'!$E$4:$E$12),"Call")
&
=IF('Availability IN'!D4="x","Call")

So that if both are true then "call"

I'm sure this is fairly easy but I've lost the will to live!

Many thanks

Scott

Are you sure that formula works fine on it's own?

ISBLANK can't test multiple cells for blank...it can only check a single cell.

Are you wanting to check that ALL cells in the range E4:E12 are blank, AND D4 = x, then return "Call"??

Try
=IF(AND(COUNTIF('[Schedules Flexible worker.xls]Schedules'!$E$4:$E$12,"")=9,'Availability IN'!D4="x"),"Call")
 
Upvote 0
Scott

The ISBLANK won't work on a range. Try this:

Try:

=IF(AND(COUNTBLANK('[Schedules Flexible worker.xls]Schedules'!$E$4:$E$12)>8,'Availability IN'!D4="x"),"Call","")

This will fire if all the cells in E4:E12 are blank and D4=x.

If you want it to fire on only 1 blank then change the >8 to >0
 
Upvote 0

Forum statistics

Threads
1,224,548
Messages
6,179,451
Members
452,915
Latest member
hannnahheileen

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