+ Reply to Thread
Results 1 to 5 of 5

If Statement with multiple criteria

  1. #1
    Forum Contributor
    Join Date
    11-14-2007
    Posts
    111

    If Statement with multiple criteria

    My concern is in row 4 and 5 of the attached spreadsheet. The problem is that not all postings for the allocations will take place on or before the date the allocation starts. Therefore, i need a logical formula that builds on what already exists and determines if the "entered" date is > the "start date". and then catches up how far it was behind.

    Example:

    contract 12,000
    Contract starts January 1st and ends December 31 (12 Months)
    Entered Feb 1

    In the January column there chould be zero in feb there should be 2,000 and the rest of the months should be 1,000
    Attached Files Attached Files
    Last edited by Ada01; 11-19-2009 at 10:26 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: If Statement with multiple criteria

    Hi,

    In K4 and copied across

    Please Login or Register  to view this content.
    Rgds
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    11-14-2007
    Posts
    111

    Re: If Statement with multiple criteria

    That works great, however, when the Start date is the same as the entered date, then it still takes does the additional month allocation when it should only be doing a single month.

    I have tried to modify this in several ways to make things work out (change the criteria, or modify the column()), but all have fallen short

    any suggestions?

    Thanks

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: If Statement with multiple criteria

    FWIW I'd suggest storing total months of project somewhere... for sake of demo let's book in I5

    Please Login or Register  to view this content.
    The above is to negate need for repetitive calcs

    Please Login or Register  to view this content.
    there are numerous other approaches...

    another for ex. would be to calculate cumulative total to date for each month (by taking total and apportioning based on % complete) and obtaining periodic hit by subtracting prior cumulative balance (would require Ix always be 0)

  5. #5
    Forum Contributor
    Join Date
    11-14-2007
    Posts
    111

    Re: If Statement with multiple criteria

    I never knew the DATEDIF() existed. I will be using that in A LOT of spreadsheets - it cuts the length of the formula in half in many cases!!!


    Thanks A Bunch

+ 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