+ Reply to Thread
Results 1 to 5 of 5

Update data depending on date using VB

  1. #1
    Registered User
    Join Date
    05-25-2012
    Location
    Germany
    MS-Off Ver
    Excel 2003
    Posts
    13

    Exclamation Update data depending on date using VB

    Hello !

    A date is entered by user in Cell A1(Sheet1). Some calculations should happen in sheet2 based on the date entered.


    If in Sheet1, A1 = Dates are between 01/04/2012 - 01/09/2012, then in Sheet 2
    C2:C19(18 rows) should have value = 0%, C20:C25(6 rows) should be value 8%, C26:C31(6 rows) 5% ,C32:C37(6 rows) 2.5% , C38:C43(6 rows) 0.83%

    If in Sheet1, A1 = Dates are between 01/10/2012 - 01/03/2013, then in Sheet 2
    C2:C19(24 rows) should have value = 0%, C20:C25(6 rows) should be value 8.33%, C26:C31(6 rows) 5% ,C32:C37(6 rows) 2.5% , C38:C43(6 rows) 0.83%


    If in Sheet1, A1 = Dates are between 01/14/2013 - 01/09/2013, then in Sheet 2
    C2:C19(30 rows) should have value = 0%, C20:C25(6 rows) should be value 8.33%, C26:C31(6 rows) 5% ,C32:C37(6 rows) 2.5% , C38:C43(6 rows) 0.83%


    If in Sheet1, A1 = Dates are between 01/10/2013 - 01/03/2014, then in Sheet 2
    C2:C19(36 rows) should have value = 0%, C20:C25(6 rows) should be value 8.33%, C26:C31(6 rows) 5% ,C32:C37(6 rows) 2.5% , C38:C43(6 rows) 0.83%

    And so on . . . .

    i.e. Only 0 is increasing after each 6 months by 6 more rows.
    Last edited by studentt; 05-27-2012 at 07:21 AM.

  2. #2
    Registered User
    Join Date
    05-25-2012
    Location
    Germany
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Update data depending on date using VB

    Hi !

    https://www.box.com/s/1641928f0eba6d6c58b9

    Start date : 01.04.2012(First April 2012)
    End date : 01.09.2030(30 Sep 2030)

    The table(Columns G-J) is not supposed to be there. It is actually the result of column C of how it would look like depending on the date entered in A1. I have uploaded a final version. It has a table in green. That is the source(f2-f9). Data would be picked up from it and arranged in column C. The green table could be changed in future and then the column C should also follow this change.
    Example : If the date enetered in A1 is between 01.04.2012-01.09.2012, then column C looks like Column G
    If the date enetered in A1 is between 01.10.2012-01.03.2013, then column C looks like Column H
    If the date enetered in A1 is between 01.04.2013-01.09.2013, then column C looks like Column I (and so on till 01.09.2030)

    Dates entered in A1(Sheet1) will always be first day of any month(User enters by keyboard).

  3. #3
    Registered User
    Join Date
    05-25-2012
    Location
    Germany
    MS-Off Ver
    Excel 2003
    Posts
    13

    Exclamation Re: Update data depending on date using VB

    Hi !

    https://www.box.com/s/1641928f0eba6d6c58b9

    Start date : 01.04.2012(First April 2012)
    End date : 01.09.2030(30 Sep 2030)

    The table(Columns G-J) is not supposed to be there. It is actually the result of column C of how it would look like depending on the date entered in A1. I have uploaded a final version. It has a table in green. That is the source(f2-f9). Data would be picked up from it and arranged in column C. The green table could be changed in future and then the column C should also follow this change.
    Example : If the date enetered in A1 is between 01.04.2012-01.09.2012, then column C looks like Column G
    If the date enetered in A1 is between 01.10.2012-01.03.2013, then column C looks like Column H
    If the date enetered in A1 is between 01.04.2013-01.09.2013, then column C looks like Column I (and so on till 01.09.2030)

    Dates entered in A1(Sheet1) will always be first day of any month(User enters by keyboard).

  4. #4
    Registered User
    Join Date
    05-25-2012
    Location
    Germany
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Update data depending on date using VB

    Any ideas ?

  5. #5
    Registered User
    Join Date
    05-25-2012
    Location
    Germany
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Update data depending on date using VB

    need help here

+ 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