+ Reply to Thread
Results 1 to 13 of 13

Finding Effective Salary

Hybrid View

  1. #1
    Registered User
    Join Date
    02-04-2014
    Location
    Baltimore, Maryland
    MS-Off Ver
    Excel 2010
    Posts
    17

    Finding Effective Salary

    I have a sheet with employees, their salaries and the effective dates of the salaries.

    On another sheet within the workbook, I have pay period end dates and would like to be able to pull the relevant effective salary at the time into the corresponding row's pay period. e.g.

    John Smith Salary effective 1/1/2012 - $50,000
    John Smith Salary effective 2/12/2012 - $55,000

    Employee Name Salary Pay Period End Date
    John Smith ? 1/6/2012
    John Smith ? 1/20/2012
    John Smith ? 2/3/2012
    John Smith ? 2/17/2012


    If the Pay period end date is greater than the effective date, I would like the method to pull the new effective date. I have attached a larger excel file with another example. Thanks for everyone's assistance in advance!

    Finding effective salary example.xlsx

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Finding Effective Salary

    Try this...

    In B2
    =IFERROR(INDEX('Employee Salary History'!$B$2:$B$12,MATCH(C2,'Employee Salary History'!$C$2:$C$12)),"")
    and copy down.

    Is this what you are trying to achieve?
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Registered User
    Join Date
    02-04-2014
    Location
    Baltimore, Maryland
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Finding Effective Salary

    Not quite, it doesn't look like this formula pulls the correct matching relevant information. Thank you for your assistance though.

    I have exhausted a lot of attempts with the index, match, address and indirect functions. I think I will need a macro to utilize more powerful logic functions. Thanks again!

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Finding Effective Salary

    The sample is really very small, maybe too small but this is what I came up with:
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Finding Effective Salary

    @sktneer

    I came up with the same solution that you did. There has to be something that we are not being told for it not to work.

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Finding Effective Salary

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  7. #7
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Finding Effective Salary

    @ newdoverman
    I think he needs to show the desired output.

  8. #8
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,940

    Re: Finding Effective Salary

    =MAX(INDEX(($A2='Employee Salary History'!$A$2:$A$12)*($C2>='Employee Salary History'!$C$2:$C$12)*('Employee Salary History'!$B$2:$B$12),0))
    Try this
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  9. #9
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Finding Effective Salary

    Or this Array Formula which requires confirmation with Ctrl+Shift+Enter instead of just Enter.

    =IFERROR(INDEX('Employee Salary History'!$B$2:$B$12,MATCH(C2,IF('Employee Salary History'!$A$2:$A$12=A2,'Employee Salary History'!$C$2:$C$12))),"")
    Is this what you are trying to achieve?
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    02-04-2014
    Location
    Baltimore, Maryland
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Finding Effective Salary

    Thank you Sktneer, my apologies in not being clearer. I should have attached the desired output of my problem. Thank you again for your assistance!

    And just wanted to thank everyone for their assistance with this!

  11. #11
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Finding Effective Salary

    @ UMBiii
    You're welcome. Thanks for the feedback.
    If that takes care of your question, please mark your thread as Solved by selecting Thread Tools (just above your first post) --> Mark thread as solved.

  12. #12
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Finding Effective Salary

    @sktneer

    A desired output would certainly help eliminate the guessing in this. To me, your last upload is a reasonable interpretation and solution of the problem.

  13. #13
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Finding Effective Salary

    @ newdoverman
    I hoped so and OP has also responded positively.

+ 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: 1
    Last Post: 05-27-2014, 07:00 AM
  2. Replies: 2
    Last Post: 05-27-2014, 01:17 AM
  3. Replies: 8
    Last Post: 09-06-2013, 05:57 AM
  4. Replies: 3
    Last Post: 07-26-2012, 04:11 PM
  5. Need help finding the effective rate of return, Where:
    By Relim in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-16-2011, 11: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