Calculate only if...

  • Thread starter Thread starter cribology - ExcelForums.com
  • Start date Start date
C

cribology - ExcelForums.com

Hi

I currently have a spreadsheet that has this formula in the Q column

=IF($D3=0,"",OR(NETWORKDAYS($D3,$F3)=1,+NETWORKDAYS($D3,$F3)=2)

It only calculates the networkdays if D3 is empty, but now I woul
like it to calculate networkdays if both D3 and L3 is empty. How do
adjust the formula to check the additional L3 cell
 
try
=IF(AND($D3=0,$L3=0),"",OR(NETWORKDAYS($D3,$F3)=1,+NETWORKDAYS($D3,$F3)=2))

where the AND(... formula works in the same way as OR(...
 
As NETWORKDAYS($D3,$F3)=1 will only be true if D3 and F3 are the same date,
why not use $D3=$F3
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top