+ Reply to Thread
Results 1 to 5 of 5

If statement

  1. #1
    Registered User
    Join Date
    08-25-2010
    Location
    london
    MS-Off Ver
    Excel 2013
    Posts
    85

    If statement

    Hi,

    Hope someone can help me out here! See below Many thanks :-)

    Excel Column
    A1- Employee Hiring

    i need a formula to pick out the starter of a particular month

    for example

    Hiring Date Headcount Month Formula?

    01/03/2017 Jan-17 NO
    01/01/2017 Jan-17 Yes (its this is a Jan-17 starter)
    04/01/2017 Jan-17 Yes (its this is a Jan-17 starter)
    15/04/2017 Jan-17 NO

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

    Re: If statement

    Please upload a worksheet with dummy information on it so that we can use it.

  3. #3
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: If statement

    If I'm understanding the objective correctly, and your hire date is in A2 and your search month is in B2, then try the formula below in C2:

    =IF(EOMONTH(A2,0)=EOMONTH(B2,0),"Yes (this is a "&TEXT(B2,"MMM-YY")&" starter)","NO")

    Fill it down for the other entries. Take a look at the attachment to see if it'll work for you:




    NOTE: Please also change your thread title to make the title a bit more descriptive and "search-friendly". Something along the lines of "If statement comparing two months", perhaps?
    Attached Files Attached Files
    If your problem has been solved, please use "Thread Tools" to mark the thread as "Solved".

    If you're grateful for this site's existence and would like to contribute to the community, please consider posting something hilarious in our joke thread:
    https://www.excelforum.com/the-water...ke-thread.html

  4. #4
    Registered User
    Join Date
    08-25-2010
    Location
    london
    MS-Off Ver
    Excel 2013
    Posts
    85

    Re: If statement

    Thank you so much CAntosh :-) all work perfectly!! Star :-)

  5. #5
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: If statement

    My pleasure, good luck!

+ 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: 2
    Last Post: 07-09-2015, 04:25 PM
  2. [SOLVED] If statement to select data - nested statement - assistance
    By petitesouris in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-29-2015, 09:55 PM
  3. compile error expected line number statement end statement
    By mattress58 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-18-2014, 10:12 AM
  4. VBA Compile Error : line number or label or statement or end of statement
    By excellearner121 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2013, 06:41 PM
  5. Replies: 4
    Last Post: 06-01-2012, 10:05 AM
  6. Replies: 4
    Last Post: 05-16-2012, 05:33 PM
  7. [SOLVED] Utilize a Select Case Statement in Target Intersect Statement
    By max57 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-29-2009, 08:55 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