• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 212
  • Last Modified:

if formula error

Hi expert's excel 2007

I am trying to work out the following formula

=if(b15="",if(c15="","No",if(c15="",newtworkdays(b15,e11,public holidays))))


Where public holidays is a named range...
0
route217
Asked:
route217
  • 5
  • 4
  • 3
2 Solutions
 
NBVCCommented:
you have an extra "w" in the NETWORKDAYS function before the "t".  Remove it.
0
 
route217Author Commented:
Hi that's a typo on my part when asking the question...
0
 
NBVCCommented:
Then, what is the issue?  The formula enters correctly otherwise, but not sure what you are asking?
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
route217Author Commented:
The issue is I am getting false as oppsed to 46 days
0
 
NBVCCommented:
You have 2 different outcomes in your formula for when C15=""...

Can you explain, with words what you want the formula to check and do please?
0
 
Rob HensonFinance AnalystCommented:
B15 is Blank leads to check C15

B15 is not Blank does not have an option

C15 is blank gives "No"

C15 is not Blank checks if C15 is blank (already checked!!)

C15 is not blank does NETWORKDAYS calculation.

Thanks
Rob H
0
 
Rob HensonFinance AnalystCommented:
BTW to avoid typos like you had in the question, you can copy and paste from excel to the Question. To copy the formula, highlight the formula in the formula bar and press Ctrl + C; then you can paste into question text.
0
 
route217Author Commented:
Nbvc

in words...
if b15 is blank and c15 is blank then return no date otherwise if c15 is blank and b15 has a date then networkdays calculation.
0
 
route217Author Commented:
Apologies. ..for typo using iphone...
0
 
Rob HensonFinance AnalystCommented:
The blank check of B15 & C15 can be combined in and AND

=IF(AND(B15="",C15=""),"",NETWORKDAYS(...

You don't have an option for when both are populated.

You have 4 scenarios that need to be covered.
B & C Blank - covered above -> Blank
B Blank, C populated
B populated, C Blank
B & C populated

Thanks
Rob H
0
 
NBVCCommented:
Try:

=IF(C15="",IF(B15<>"",NETWORKDAYS(B15,E11,public holidays),"No"),"No")
0
 
route217Author Commented:
Excellent all
0

Featured Post

2018 Annual Membership Survey

Here at Experts Exchange, we strive to give members the best experience. Help us improve the site by taking this survey today! (Bonus: Be entered to win a great tech prize for participating!)

  • 5
  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now