+ Reply to Thread
Results 1 to 2 of 2

Filling in a set number of cells after a given date

  1. #1
    Registered User
    Join Date
    11-21-2011
    Location
    Sussex, UK
    MS-Off Ver
    Excel 2007
    Posts
    10

    Filling in a set number of cells after a given date

    Ok,this is a slightly funny one! I've got a list of data which is a date (DD/MM/YYYY), a monetary value and a numerical value. Following that I've got blank columns representing the months. I need a formula that will look at the date, find the month *after* the month of that date, and then fill in the monetary value in the appropriate number of cells after that.

    So I've got:
    Date Amt Value Jan-12 Feb-12 March-12 Apr-12 May-12 and so on...
    01/03/2012 £10 12

    What I need is:

    Date
    Date Amt Value Jan-12 Feb-12 March-12 Apr-12 May-12 and so on...
    01/03/2012 £10 12 £10 £10 and so on for 12 months.

    the £10 values in the second example should be under April, May etc.

    Is that something that's possible?
    Last edited by Aileanor; 09-19-2012 at 10:24 AM.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Filling in a set number of cells after a given date

    hi Aileanor, assuming the formula for Jan-12 is in D2, try:
    =IF(AND(DATE(YEAR($A$2),MONTH($A$2),1)<D1,COUNT($C$2:C2)<$C$2+1),$B$2,"")

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

+ 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