+ Reply to Thread
Results 1 to 5 of 5

Training Report - VB & IF Function help required

  1. #1
    Registered User
    Join Date
    03-26-2015
    Location
    Aberdeen
    MS-Off Ver
    2010
    Posts
    9

    Training Report - VB & IF Function help required

    I have a training report that basically dumps data in an excel file from our training database and we need to manually manipulate the results to get what we want. I've been trying to cut out the manual manipulation of the data as there are over 10,000 rows for each of our offices and I need some assistance.

    1) Firstly, the data for each employee only appears once (Full Name, Emp No & Job Title). I added the following to VB and can get the First name to auto populate the rows that follow but can't amend to do the same for Emp No & Job Title. Can anyone assist?
    Please Login or Register  to view this content.
    2) I want to identify courses with an expiry date less than or equal to 3 months from today. I can get this to work by inserting a Refresher Needed column with IF(F3<-TODAY(),"TRAINING NEEDED","COMPLETE") however if the expiry date field is blank I want the Refresher Needed column to be blank also. I tried to use ISBLANK but with no success.

    Appreciate any assistance with these!

    T
    Attached Files Attached Files
    Last edited by traceycormack; 04-20-2017 at 06:30 AM.

  2. #2
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Training Report - VB & IF Function help required

    I'm not quite clear on whether column G was meant to be the "refresher needed" column or if you wanted a new column added, but something like this should do:

    Please Login or Register  to view this content.
    This will add "Training Needed" or "Complete" to column H if the expiration date is not blank. If you wanted that data in column G instead of H, change the 8 in the two instances of:
    Please Login or Register  to view this content.
    ...into a 7.
    If your problem has been solved, please use "Thread Tools" to mark the thread as "Solved".

    If you're grateful for this site's existence and would like to contribute to the community, please consider posting something hilarious in our joke thread:
    https://www.excelforum.com/the-water...ke-thread.html

  3. #3
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Training Report - VB & IF Function help required

    To follow up on my earlier post, if you want the Training Needed portion to be done by formula, not VBA, then use this for the code:

    Please Login or Register  to view this content.
    And for the refresher, you can put whichever best suits your definition of "3 months" in row 3:

    Today's date 3 months ago: =IF(F3="","",IF(F3<=DATE(YEAR(TODAY()),MONTH(TODAY())-3,DAY(TODAY())),"Training Needed","Completed"))
    OR
    90 Days ago: =IF(F3="","",IF(F3<=TODAY()-90,"Training Needed","Completed"))

  4. #4
    Registered User
    Join Date
    03-26-2015
    Location
    Aberdeen
    MS-Off Ver
    2010
    Posts
    9

    Re: Training Report - VB & IF Function help required

    This worked perfectly, thanks so much!

  5. #5
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Training Report - VB & IF Function help required

    My pleasure, good luck!

+ 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 to Determine Training Room Availability based off a training plan
    By sinspawn56 in forum Excel General
    Replies: 2
    Last Post: 06-08-2015, 03:15 PM
  2. [SOLVED] Need to create a Training report using macro
    By vinty in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-27-2012, 02:34 PM
  3. Replies: 0
    Last Post: 11-02-2011, 08:47 PM
  4. Excel 2007 : Monthly Training Report
    By reetu in forum Excel General
    Replies: 2
    Last Post: 09-08-2011, 07:38 PM
  5. How can I report all new customers that have booked training?
    By Lana in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-29-2005, 01:06 PM
  6. Training Material Required
    By daiblackburn in forum Excel General
    Replies: 3
    Last Post: 04-14-2005, 01:06 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