+ Reply to Thread
Results 1 to 6 of 6

Choosing a column value based on a date

  1. #1
    Registered User
    Join Date
    03-03-2021
    Location
    US
    MS-Off Ver
    Normal
    Posts
    3

    Choosing a column value based on a date

    Hi, I am trying to figure out an employee pay amount based on date of hire. If the employee has been here for less than 5 years, I want to use the value in one column for their pay. If the employee has been here for longer than 5 years but less than 7 years, I want to use a different column value, and greater than 7 years a third column value, similar to below. Is there a way to do this?

    DATE Hire -- $ <5 -- $ 5-7 -- $ >7 -- $ to pay
    1/2/2019 -- 10 -- 15 -- 20 -- ?



    Thanks!

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,982

    Re: Choosing a column value based on a date

    Please post a sample workbook with expected outcomes.

    See HOW TO ATTACH YOUR SAMPLE WORKBOOK: in the yellow banner at top of the thread.

  3. #3
    Registered User
    Join Date
    03-03-2021
    Location
    US
    MS-Off Ver
    Normal
    Posts
    3

    Re: Choosing a column value based on a date

    see attached
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,982

    Re: Choosing a column value based on a date

    in F2

    =IF($B2<5,$C2,IF($B2<=7,$D2,$E2))

    Copy down

  5. #5
    Registered User
    Join Date
    03-03-2021
    Location
    US
    MS-Off Ver
    Normal
    Posts
    3
    Awesome, this works, thanks!


    Quote Originally Posted by JohnTopley View Post
    in F2

    =IF($B2<5,$C2,IF($B2<=7,$D2,$E2))

    Copy down

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,982

    Re: Choosing a column value based on a date

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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: 5
    Last Post: 08-02-2019, 01:42 PM
  2. Choosing a cell based on date
    By Skeidser in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-02-2017, 10:26 AM
  3. Replies: 4
    Last Post: 07-08-2015, 06:31 AM
  4. Choosing one item of data from a loan amortisation schedule based on date
    By whitepaw in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-07-2014, 10:58 PM
  5. Choosing cells based on date...
    By Carmen Gauvin-O'Donnell in forum Excel General
    Replies: 1
    Last Post: 01-23-2006, 03:40 PM
  6. [SOLVED] Choosing cells based on date...
    By Carmen Gauvin-O'Donnell in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-23-2006, 03:40 PM
  7. Choosing a date
    By Dawn in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-28-2005, 07: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