+ Reply to Thread
Results 1 to 4 of 4

Looking for an event by Year

  1. #1
    Registered User
    Join Date
    03-30-2020
    Location
    WALES
    MS-Off Ver
    10
    Posts
    2

    Looking for an event by Year

    Hi,

    I'm trying to create a formula that would give the same result as on Sheet2 in the example workbook. eg, take the name in Column A/Sheet 2, and look on Sheet1 using Date of Birth to state if she has given birth in the Year stated in Row1/Sheet2.

    If she has not, I would like 0 returned, if 1 return 1 and if 2 in the same year, return 2. As is currently shown on Sheet2

    Do not worry about the colour format, I can do that.

    Thanks very much in anticipation.

    Regards
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    07-14-2017
    Location
    Poland
    MS-Off Ver
    Office 2010
    Posts
    528

    Re: Looking for an event by Year

    In 'B2' formula and copy to the right and down.
    Please Login or Register  to view this content.
    Best Regards,
    Maras.

  3. #3
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,776

    Re: Looking for an event by Year

    sheet 2


    B2=SUMPRODUCT((Sheet1!$C$2:$C$7=Sheet2!$A2)*(YEAR(Sheet1!$B$2:$B$7)=Sheet2!B$1))

    Copy across and down

  4. #4
    Registered User
    Join Date
    03-30-2020
    Location
    WALES
    MS-Off Ver
    10
    Posts
    2

    Re: Looking for an event by Year

    That's fantastic, thanks Maras!

+ 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: 11-11-2017, 04:49 AM
  2. [SOLVED] Countifs by Month, Year, and Event
    By CWatsonJr in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-30-2017, 03:23 PM
  3. Automatically update year interval cycles from year to year
    By trumptight in forum Word Programming / VBA / Macros
    Replies: 8
    Last Post: 08-21-2014, 10:38 PM
  4. Replies: 3
    Last Post: 09-04-2013, 10:49 AM
  5. Replies: 4
    Last Post: 11-07-2012, 04:02 PM
  6. Convert a multiple year list of 365 days/year into an equivalent of 360 days/year
    By lobotomy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-24-2012, 05:39 PM
  7. Replies: 6
    Last Post: 02-07-2012, 10:03 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