Expert required for new formula

Scott82

New Member
Joined
Jun 8, 2011
Messages
48
Hi there

I am using two formulas
=IF(AND(COUNTBLANK('S:\School\Residential\Flexible Workers\Term 6 2011\[Schedules Flexible worker Term 6 2011.xls]Schedules'!E112:E120)>8,'Availability IN'!D16="x"),"Available","")

and

=SUM(C5+C8+C11+C14+C17+C20+C23)

I need a formula that will return True if the first formula shows available and the second is equel to or above 1.

Many thanks

Scott
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Try:
Code:
=IF(AND(COUNTBLANK('S:\School\Residential\Flexible Workers\Term 6 2011\[Schedules Flexible worker Term 6 2011.xls]Schedules'!E112:E120)>8,'Availability IN'!D16="x",SUM(C5,C8,C11,C14,C17,C20,C23)=>1),,)
 
Upvote 0
Hi there, I entered this as an array and it has worked however it is saying true when I know that not all of them are!
 
Upvote 0
This is what I have:
=IF(AND(COUNTBLANK('[Schedules Flexible worker Term 6 2011.xls]Schedules'!E4:E12)>8,'[Availability Flexible worker Term 6 2011.xls]Availability IN'!D4="x",'[Master rota Term 6 2011.xls]Shift Requirements'!$C$5+'[Master rota Term 6 2011.xls]Shift Requirements'!$C$8+'[Master rota Term 6 2011.xls]Shift Requirements'!$C$11+'[Master rota Term 6 2011.xls]Shift Requirements'!$C$14+'[Master rota Term 6 2011.xls]Shift Requirements'!$C$17+'[Master rota Term 6 2011.xls]Shift Requirements'!$C$20+'[Master rota Term 6 2011.xls]Shift Requirements'!$C$23+'[Master rota Term 6 2011.xls]Shift Requirements'!$C$29:$C$30)>=1,TRUE,FALSE)

I'm not sure if the last bit is right as the total sum of Master rota Term 6 ....... is to be higher than or equel to 1 not every cell. I'm not sure which this formula is stating!

Thanks

Scott
 
Upvote 0
your formula is extremly hard to read this way. It would be better if you wrap it in code tags (click on advanced, highlight your formula and click on the # symbol).

To take the logic of your formula apart it checks the following conditions to return true:

- '[Schedules Flexible worker Term 6 2011.xls]Schedules'!E4:E12 contains more than 8 blank cells
- '[Availability Flexible worker Term 6 2011.xls]Availability IN'!D4 has value "x"
- the sum of values in cells '[Master rota Term 6 2011.xls]Shift Requirements'!
*$C$5
*$C$8
*$C$11
*$C$14
*$C$17
*$C$20
*$C$23
*$C$29
*$C$30
is equal to or larger than 1.

To add C29:C30 you need to wrap it with a SUM formula. (shown red)

Your formula is missing a closing parenthesis for the AND part of the formula. (shown green). If the logic above is correct your formula should be:

Code:
=IF(AND(COUNTBLANK('[Schedules Flexible worker Term 6  2011.xls]Schedules'!E4:E12)>8,'[Availability Flexible worker Term 6  2011.xls]Availability IN'!D4="x",'[Master rota Term 6 2011.xls]Shift  Requirements'!$C$5+'[Master rota Term 6 2011.xls]Shift  Requirements'!$C$8+'[Master rota Term 6 2011.xls]Shift  Requirements'!$C$11+'[Master rota Term 6 2011.xls]Shift  Requirements'!$C$14+'[Master rota Term 6 2011.xls]Shift  Requirements'!$C$17+'[Master rota Term 6 2011.xls]Shift  Requirements'!$C$20+'[Master rota Term 6 2011.xls]Shift  Requirements'!$C$23+[B][COLOR=Red]SUM([/COLOR][/B]'[Master rota Term 6 2011.xls]Shift  Requirements'!$C$29:$C$30[B][COLOR=Red])[/COLOR][/B]>=1[COLOR=SeaGreen][B])[/B][/COLOR],TRUE,FALSE)
 
Upvote 0
What is your formula now? Have you stepped through your formula in the formula evaluation? If yes, at which point does it error out?
I'm on a system without XL here at the mo, so I can't test.
 
Upvote 0

Forum statistics

Threads
1,224,557
Messages
6,179,510
Members
452,918
Latest member
Davion615

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