+ Reply to Thread
Results 1 to 2 of 2

Formulas with dates

  1. #1
    Registered User
    Join Date
    02-15-2016
    Location
    Kansas City, Missouri
    MS-Off Ver
    2010
    Posts
    21

    Formulas with dates

    I'm using an on-going spreadsheet to track the number of patients me and my staff see each month. I want to make another tab and using vlookup pull information for the data tab over to the stats tab. I only want to pull the information over to the stats tab if the date in row S is in the month of April. Is there a formula to vlookup only if the data in the cell is within a certain month?

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Formulas with dates

    Use an array formula, like this one (ajusted for your own ranges) in (for example) A4, array entered and then copied across and down.

    =IFERROR(INDEX(Sheet1!A:A,SMALL(IF(MONTH($A$1)=MONTH(Sheet1!$A$2:$A$25),ROW(Sheet1!$A$2:$A$25)),ROWS(A$4:A4))),"")

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 05-01-2017 at 11:09 AM.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

+ 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. [SOLVED] Formulas to Dates
    By Keibri in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-07-2015, 03:11 AM
  2. Replies: 4
    Last Post: 10-17-2013, 09:59 AM
  3. [SOLVED] Formulas and Dates
    By trosasco in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-24-2013, 03:06 PM
  4. Replies: 18
    Last Post: 03-24-2013, 04:20 PM
  5. [SOLVED] Formulas that contain dates and hidden formulas
    By rowena229 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 03-22-2013, 12:51 PM
  6. Dates and formulas
    By shakes347 in forum Excel General
    Replies: 2
    Last Post: 09-07-2010, 05:25 PM
  7. worksheet shows dates as number and formulas as formulas
    By baneVader in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-27-2008, 01:36 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