Closed Thread
Results 1 to 4 of 4

Additional variables for LOOKUP formulas

  1. #1
    Registered User
    Join Date
    05-01-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    25

    Question Additional variables for LOOKUP formulas

    I need help assigning specific text to a class depending on the name of the class and/or the due date. Here is the current formula I’m using thanks to another user (daffodil11)….

    =IFERROR(
    IF(YEAR(G2)=YEAR(TODAY())-1, YEAR(G2),
    LOOKUP(2,1/(
    ('Quarterly Classes'!$G$7:$G$28='Training Detail Report'!D2)*
    (MONTH('Quarterly Classes'!$I$7:$I$28)&DAY('Quarterly Classes'!$I$7:$I$28)=MONTH('Training Detail Report'!G2)&DAY('Training Detail Report'!G2))),
    'Quarterly Classes'!$E$7:$E$28)),
    "No Matching Record")


    And here’s what I want to add bc of the errors I’m getting with the current formula (formula is great, it just needs some extra variables added)…

    1st Variable

    If it either column F or G (on the first tab) have 2013 in them, I want column R (on the first tab) to show 2013…. In other words, I want it to look at both the assigned date and the due date to see if either contain 2013.

    2nd Variable
    The first formula looks at the date due as well as the name of the course in order to figure out what quarter to fill in on column R (on the 1st tab). BUT for a handful of classes (G:2-G:6 on the 2nd tab) there is every due date under the sun, so those specific classes need to populate the quarter by looking only at the name of the class and not the date.

    For instance, if the class in column D (on the 1st tab) says “Operations New Hire Orientation”, I want column R (on the 1st tab) to populate with “New Hire Requirement” (matching E3 on the 2nd tab).

    Any help you can provide would be greatly appreciated!
    Attached Files Attached Files
    Last edited by melbox; 03-24-2014 at 01:11 PM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Additional variables for LOOKUP formulas

    Is this solved?

    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.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    05-01-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Additional variables for LOOKUP formulas

    I marked this as solved simply b/c I didn't know how to delete it. Please just delete it if possible. Thanks so much!

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Additional variables for LOOKUP formulas

    Thread closed.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 02-06-2014, 03:00 PM
  2. Adding additional cells in IF formulas
    By JakeMann in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-20-2012, 06:59 AM
  3. Replies: 0
    Last Post: 12-19-2012, 11:06 AM
  4. Adding additional rows & auto-applying formulas
    By ajxxx in forum Excel General
    Replies: 1
    Last Post: 11-26-2008, 12:35 PM
  5. [SOLVED] Macro to expand formulas to additional rows
    By Sharon P in forum Excel General
    Replies: 1
    Last Post: 01-04-2006, 10:10 AM

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