+ Reply to Thread
Results 1 to 6 of 6

Are IF, Thens possible in Excel?

  1. #1
    Forum Contributor
    Join Date
    05-02-2017
    Location
    NoVa, United States
    MS-Off Ver
    Microsoft 365
    Posts
    168

    Are IF, Thens possible in Excel?

    Okay, I've attached a worksheet. This worksheet has people who have received a merit over the past two years. Some have received more than one. Also on this sheet is other pay increases (ex. HIRE), but I am not concerned with these.

    So, I want a formula that will scan the people and determine the most recent merit.

    For example, the first person on the excel sheet is Tommy Gunn. Column C and D should be 'PAY' and 'MER' (if not, i don't want a date for them) and I want the most recent date in the column 'Most Recent Merit'.

    Is this possible? I was trying to come up with an IF statement, but I realized I don't know how to get to the *newest* date. My formula is:
    =IF(AND(A3=A4,C3="PAY",D3="MER"),B3,"")
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor spitfireblue's Avatar
    Join Date
    01-29-2015
    Location
    Adelaide, Australia
    MS-Off Ver
    2007,2010,2016
    Posts
    611

    Re: Are IF, Thens possible in Excel?

    Hi,

    Try this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    It is an array formula so you will need to confirm with Ctrl + Shift + Enter
    Regards,
    Stephen

    If you feel someone has helped you please thank them and click on the star on their post to add reputation.
    Please ensure that you use code tags where relevant, and mark solved threads as solved.
    Most of all please be respectful and understanding of others.

  3. #3
    Forum Contributor
    Join Date
    05-02-2017
    Location
    NoVa, United States
    MS-Off Ver
    Microsoft 365
    Posts
    168

    Re: Are IF, Thens possible in Excel?

    Thanks but that doesn't seem to work. I've uploaded an excel sheet with that formula, and as you can see Tommy Gunn doesn't have anything in column E. He should have 1/1/17.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    05-02-2017
    Location
    NoVa, United States
    MS-Off Ver
    Microsoft 365
    Posts
    168

    Re: Are IF, Thens possible in Excel?

    My knowledge of excel is intermediate - *at best* and I'm trying to figure this out. I'm not sure what the formula is trying to do with the 'true' part (=B4,B4).


    =IF(LARGE(IF(($A$2:$A$8=A2)*($C$2:$C$8="PAY")*($D$2:$D$8="MER"),$B$2:$B$8),1)=B4,B4,"")

  5. #5
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Are IF, Thens possible in Excel?

    in E2 put
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    fill down

    the first criteria needs to be in line with the end bits (note the bits in red)

    updated your sheet with the formula
    Attached Files Attached Files
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  6. #6
    Valued Forum Contributor spitfireblue's Avatar
    Join Date
    01-29-2015
    Location
    Adelaide, Australia
    MS-Off Ver
    2007,2010,2016
    Posts
    611

    Re: Are IF, Thens possible in Excel?

    Oops sorry... thanks for clarifying humdingaling.

+ 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. multiple if thens in one cell
    By comp42 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-26-2014, 04:13 PM
  2. Conditional Lists and IF/THENs
    By djtwriter in forum Excel General
    Replies: 3
    Last Post: 09-20-2012, 02:44 PM
  3. Trouble with ifs and thens...
    By Snark in forum Excel General
    Replies: 1
    Last Post: 07-07-2008, 01:51 PM
  4. Using if/thens for non numerical variables?
    By whatne1wuddo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-02-2008, 05:46 PM
  5. If and thens??
    By DJExxx in forum Excel General
    Replies: 1
    Last Post: 05-08-2007, 12:49 PM
  6. One IF, Two THENS
    By BEEJAY in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-05-2006, 03:20 PM
  7. IF Then inside a cell, also; VBA Code IF Thens.
    By gjon in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 04-08-2005, 04:35 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