+ Reply to Thread
Results 1 to 3 of 3

Embedded Formulas -- PLEASE HELP!

Hybrid View

  1. #1
    Registered User
    Join Date
    07-29-2014
    Location
    Atlanta, GA
    MS-Off Ver
    2013
    Posts
    6

    Embedded Formulas -- PLEASE HELP!

    Hi Guys!

    I have been racking my brain trying to create formulas for the following situation ....

    Our company has employees across the nation, of course due to their levels of management/non-management, their pay dates vary, i.e. bi-monthly, bi-weekly, and weekly.

    I have a list of former employees and their effective date of unemployment.
    I need to figure out a formula(s) that (1st) searches for the pay group and (2nd) then returns the pay period prior to their last day.

    I've tried:
    1. VLookUp and HLookUp
    2. Index and Match

    The number of pay periods are not the same and I've created a spreadsheet vertically & horizontally.

    Help! I'm stuck!

    Thanks in advance!
    Veronica
    #icount (and I thought #iEXCELed)
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Embedded Formulas -- PLEASE HELP!

    If the goal is lookup the pay date prior to the termination date, then this formula in E2:

    =INDEX('Payroll Dates'!$1:$6, MATCH(D2, 'Payroll Dates'!$A$1:$A$6, 0), MATCH(INDEX('Payroll Dates'!$1:$1, MATCH(B2,OFFSET('Payroll Dates'!$1:$1, MATCH(D2, 'Payroll Dates'!$A$1:$A$6,0)-1, , , ), 1)), 'Payroll Dates'!$1:$1, 0))

    ...copied down.

    The formula in F2 will always be "-" because this formula ALWAYS brings back a date prior to B2.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    07-29-2014
    Location
    Atlanta, GA
    MS-Off Ver
    2013
    Posts
    6

    Re: Embedded Formulas -- PLEASE HELP!

    Thanks!!!!!!!! You're awesome!

+ 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. Replies: 25
    Last Post: 12-30-2013, 07:52 AM
  2. Replies: 1
    Last Post: 02-21-2013, 12:11 PM
  3. Macro to replace embedded formulas
    By Switters023RS in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-12-2012, 01:52 PM
  4. Adding rows and embedded formulas depending on user input
    By haitham1984 in forum Excel General
    Replies: 5
    Last Post: 11-06-2008, 11:04 AM
  5. [SOLVED] Excel should allow formulas embedded in text.
    By ylime in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-28-2005, 12:06 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