+ Reply to Thread
Results 1 to 4 of 4

IF and Date functions

  1. #1
    Registered User
    Join Date
    08-03-2018
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    3

    IF and Date functions

    Hi,
    I need some help writing the right formula for my Cash flow forecast.
    On the attached spread sheet,
    Column A - Tenant's name
    B - Tenancy start date
    C - Tenancy end date
    D - Monthly rent
    E to T - Weekly dates

    Rent is payable monthly from the first day of the tenancy. Based on the rent due dates, I want the rent amount to be slotted into the right date column in E-T.
    For example, tenant A's first instalment will be due on 30/7/20 and therefore, £706 should be in E5 as it falls in the week commencing 27/07/2020. The 2nd instalment will be due on 30/08/2020 and therefore should be in column I.
    Please help!

    Thank you
    Mathanki
    Attached Files Attached Files

  2. #2
    Administrator JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: IF and Date functions

    Put this formula in E2, the copy down and across the table.

    =IF(DATE(YEAR(E$1),MONTH(E$1),DAY($B2))-MOD(DATE(YEAR(E$1),MONTH(E$1),DAY($B2))-2,7)=E$1, $D2, "")
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    08-03-2018
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    3

    Re: IF and Date functions

    Thank you so much! It works!!

  4. #4
    Forum Moderator Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,799

    Re: IF and Date functions

    I think the formula needs a little tweaking - it misses the February 2021 payment likely because there aren't at least 30 days in that month. If B2 is 7/28/2020, then it calculates correctly, appearing in the week of 2/22/2021.
    Last edited by Paul; 05-05-2020 at 12:47 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. Help Returning The Week Day of a Date Without Using DATE and WEEKDAY Functions
    By vampirealexa in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-15-2013, 02:12 AM
  2. date functions
    By deke01 in forum Excel General
    Replies: 8
    Last Post: 03-15-2010, 11:43 AM
  3. If functions and date
    By MollyKinnz in forum Excel General
    Replies: 10
    Last Post: 09-30-2009, 11:31 AM
  4. Date Functions
    By britt@wjg in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-18-2009, 01:10 PM
  5. Date Functions
    By Keith in forum Excel General
    Replies: 2
    Last Post: 04-24-2006, 01:50 PM
  6. Date Functions
    By CrimsonPlague29 in forum Excel General
    Replies: 1
    Last Post: 04-24-2006, 12:37 AM
  7. [SOLVED] date functions
    By TUNGANA KURMA RAJU in forum Excel General
    Replies: 6
    Last Post: 01-05-2006, 12:30 AM
  8. Date Functions
    By Josh_123456 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-14-2005, 01:03 PM

Tags for this Thread

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