+ Reply to Thread
Results 1 to 3 of 3

Calculate only if...

  1. #1
    cribology - ExcelForums.com
    Guest

    Calculate only if...

    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 would
    like it to calculate networkdays if both D3 and L3 is empty. How do I
    adjust the formula to check the additional L3 cell?


  2. #2
    mcpie
    Guest

    RE: Calculate only if...

    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(...

    "cribology - ExcelForums.com" wrote:

    > 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 would
    > like it to calculate networkdays if both D3 and L3 is empty. How do I
    > adjust the formula to check the additional L3 cell?
    >
    >


  3. #3
    Bob Phillips
    Guest

    Re: Calculate only if...

    As NETWORKDAYS($D3,$F3)=1 will only be true if D3 and F3 are the same date,
    why not use $D3=$F3

    --
    HTH

    Bob Phillips

    "mcpie" <[email protected]> wrote in message
    news:[email protected]...
    > 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(...
    >
    > "cribology - ExcelForums.com" wrote:
    >
    > > 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 would
    > > like it to calculate networkdays if both D3 and L3 is empty. How do I
    > > adjust the formula to check the additional L3 cell?
    > >
    > >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1