+ Reply to Thread
Results 1 to 4 of 4

Add date based on condition

Hybrid View

  1. #1
    Registered User
    Join Date
    07-15-2014
    Location
    Mumbai
    MS-Off Ver
    2003
    Posts
    35

    Add date based on condition

    Hi all

    Can any one help me in creating a macro to the attached sheet.
    I need to add date based on condition. The condition I colored in green. I need to calculate the Next review date based on these condition.
    Thank you..
    Attached Files Attached Files

  2. #2
    Forum Contributor lancer102rus's Avatar
    Join Date
    04-02-2014
    Location
    Ufa
    MS-Off Ver
    Excel 2010, 2013
    Posts
    252

    Re: Add date based on condition

    little addition to conditions table and here is the result
    Sampe A.xlsx

  3. #3
    Registered User
    Join Date
    07-30-2014
    Location
    india
    MS-Off Ver
    2007
    Posts
    43

    Re: Add date based on condition

    hi run the vba code included in file
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Add date based on condition

    FWIW:

    Sub talkvinith()
    Dim i As Long
    For i = 2 To Range("B" & Rows.count).End(3).Row
        Select Case Range("B" & i).Value
            Case Is = "Active Plan", "Paid", "Letters Not Expired"
                Range("D" & i) = Range("C" & i) + 30
            Case Is = "Charge Off", "Repay Plan"
                Range("D" & i) = Range("C" & i) + 15
            Case Is = "Contacted"
                Range("D" & i) = Range("C" & i) + 7
            Case Is = "Pending", "Letters Pending"
                Range("D" & i) = Range("C" & i) + 3
            Case Is = "Pending Contact"
                Range("D" & i) = Range("C" & i) + 1
            Case Is = "Sensitive"
                Range("D" & i) = Range("C" & i) + 60
            Case Is = "Letters Requested"
                Range("D" & i) = Range("C" & i) + 5
            Case Is = "Completed"
                Range("D" & i) = "No Review Required"
        End Select
    Next i
    
            
    End Sub

+ 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] Need a Cell to Update Date based on a condition
    By karimel_romeo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-08-2013, 09:23 AM
  2. if condition based on date in vba
    By rbs123 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-11-2013, 02:32 AM
  3. [SOLVED] Count based on date and condition
    By vt1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-09-2012, 05:01 PM
  4. condition formula based on date
    By pervez in forum Excel General
    Replies: 3
    Last Post: 12-20-2011, 04:18 AM
  5. get date from text & cell based on condition
    By tek9step in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-05-2011, 03:37 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