+ Reply to Thread
Results 1 to 2 of 2

Assigning period and quarter based on date range. VBA

  1. #1
    Valued Forum Contributor
    Join Date
    10-21-2011
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    513

    Assigning period and quarter based on date range. VBA

    Hello,

    I am trying to test out an application where the assignment of period and quarter is done automatically. Please see the attached.

    code is:

    Please Login or Register  to view this content.
    In the above code, what I'm trying to do is......if it is community, then first check and see if both the date of clinic and date of referral fall under the same period. If so, assign period and quarter based on the date of clinic.

    What I'm trying to add is.......if it is a community patient, and if the date of referral is BEFORE the date of clinic, I want Excel to assign the period based on the date of clinic. For example, if date of referral is in period 4 but the date of clinic is in period 5, then I want this patient to be in period 5, but not 4.

    How should the syntax go in the code above?

    Could anybody help?

    Thank you
    Attached Files Attached Files
    Last edited by Lifeseeker; 12-28-2011 at 06:25 PM. Reason: solved

  2. #2
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Assigning period and quarter based on date range. VBA

    Your post does not comply with Rule 9 of our Forum RULES. If you solve a problem yourself before anyone else has responded, please take a moment to describe your solution, chances are some other member will benefit. And please never edit a thread in which someone else has responded.
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

+ 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