+ Reply to Thread
Results 1 to 3 of 3

Return "True" between dates and distribute $

  1. #1
    Registered User
    Join Date
    02-13-2017
    Location
    Georgia
    MS-Off Ver
    Office 2016
    Posts
    4

    Return "True" between dates and distribute $

    -I want to compare the start/end dates to each cell C2:P2, and if the dates occur there return a true.
    -I want to return a True (1), False (0) for each cell in row C2:P2 (yellow) in C3:P3 I will have the following formula to distribute dollars evenly along the "true" cells
    -My problem is b/c of the start/end dates I cannot find a formula that will give the true/fasle results for
    ALL dates in the range between start/end and allow for the formula to carry over across years.
    -The formula I found that MOST closely works the way I want it to is below, but it falls apart at end of years and when crossing over years as it only compares the # value of the month.
    =IF(AND(MONTH($G7)<=MONTH(I4),MONTH($H7)>=MONTH(J4)-1),1,0)
    Attached Files Attached Files
    Last edited by NeermannB; 02-19-2019 at 12:07 PM. Reason: Per request of community

  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. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,083

    Re: Return "True" between dates and distribute $

    Please post the query in the body of the post itself - the image is not big enough.

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    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
    02-13-2017
    Location
    Georgia
    MS-Off Ver
    Office 2016
    Posts
    4

    Re: Return "True" between dates and distribute $

    Adjustments made above.
    Last edited by NeermannB; 02-19-2019 at 12:07 PM.

+ 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. Regular Expression to Return "True" or False" if a word is found
    By wwconslt in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-02-2017, 09:54 PM
  2. [SOLVED] Check next row if value is, "FALSE," if "TRUE," return specified value from this row
    By Dave_Doodle in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-19-2015, 10:18 AM
  3. How can I get a value to return "Y" OR "N" instead of true or false
    By bunnyfrostr in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-04-2014, 05:44 PM
  4. [SOLVED] Want formula to return "True" if it contains an "*"
    By Scorpvin in forum Excel General
    Replies: 1
    Last Post: 07-20-2012, 04:03 PM
  5. VLookup to return "true" or "false"
    By Sph01 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-29-2011, 11:10 AM
  6. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  7. Replies: 7
    Last Post: 05-13-2006, 05:02 PM

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