+ Reply to Thread
Results 1 to 8 of 8

Allocating based on Dates with IF/AND function

  1. #1
    Registered User
    Join Date
    09-12-2016
    Location
    England, UK
    MS-Off Ver
    MS 365
    Posts
    59

    Allocating based on Dates with IF/AND function

    Hi all

    I am having real trouble with this formula and I wonder if someone can help please?

    As per the attached, I am trying to get a 1 into every month which falls between the start and end dates, so for the first line of data, there should b a 1 in each month from June 2022 to May 2023, however I just cannot seem to get the formula right to calculate this! C2 is how far I have gotten so far, but I am getting total tunnel vision and can't get past this.

    Any help would be greatly appreciated!

    Many thanks
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,795

    Re: Allocating based on Dates with IF/AND function

    Administrative Note:

    Members will tailor the solutions they offer to the version (NOT release number) of Office (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    09-12-2016
    Location
    England, UK
    MS-Off Ver
    MS 365
    Posts
    59

    Re: Allocating based on Dates with IF/AND function

    Already done, thank you

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,795

    Re: Allocating based on Dates with IF/AND function

    In C2 copied across and down:

    =IF(AND(EOMONTH($A2,-1)+1<=C$1,EOMONTH($B2,0)>=C$1),1,"")
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,870

    Re: Allocating based on Dates with IF/AND function

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    09-12-2016
    Location
    England, UK
    MS-Off Ver
    MS 365
    Posts
    59

    Re: Allocating based on Dates with IF/AND function

    Both formulas worked perfectly, thank you both very much!

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,795

    Re: Allocating based on Dates with IF/AND function

    You're welcome.

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,870

    Re: Allocating based on Dates with IF/AND function

    Glad to help & thanks for the feedback.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Allocating amount across several lines based on 2 criteria
    By Fish55 in forum Excel General
    Replies: 4
    Last Post: 06-23-2022, 12:13 PM
  2. [SOLVED] Allocating $ amount based on ranked items
    By riordanandy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-14-2017, 05:23 AM
  3. allocating a total amount based on conditions
    By Jules Pop in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-11-2015, 01:25 AM
  4. Solver Function - Allocating Choices
    By mlukich in forum Excel General
    Replies: 2
    Last Post: 08-26-2015, 08:58 AM
  5. Allocating workload - best function?
    By hollyhillcourt in forum Excel General
    Replies: 9
    Last Post: 10-13-2014, 03:23 PM
  6. Allocating one category to different dates
    By ted3 in forum Excel General
    Replies: 12
    Last Post: 06-10-2012, 06:43 AM
  7. HELP! Allocating values based on criteria
    By massimop in forum Excel General
    Replies: 4
    Last Post: 10-07-2010, 03:07 AM

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