Results 1 to 7 of 7

Adding an extra condition to an IF statement

Threaded View

  1. #1
    Forum Contributor
    Join Date
    09-17-2009
    Location
    Torquay, England
    MS-Off Ver
    Excel 2013
    Posts
    253

    Adding an extra condition to an IF statement

    =IF(SUM(Q4)=0,"",MAX(0,G4-MAX(F4,Q4))/7) - to calculate number of days for year

    =IF(SUM(TODAY()>G4),(G4-MAX(F4,Q4))/7,SUM(TODAY()-MAX(F4,Q4))/7) - to calculate number of days year to date


    I am using this condition to calculate the length of a service which falls with in a specific review period, eg

    Service starts 1 Feb 09 and finishes 30 April 09

    The review period is 1 Mar 09 and finishes 31 May 09.

    I would need to measure the number of days that fall within the review period, which would be 1 Mar 09 - 30 April 09

    At the moment I am missing a condition which identifies whether to subtract from 'service end date' or 'review end date'.

    Difficult to explain, sorry if its not clear, I'll supply further info if needed.

    Any help much appreciated thanks
    Attached Files Attached Files
    Last edited by Gooford; 11-18-2009 at 07:49 AM.

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