# Formula For Determining If Two Date Columns Fall Within Specific Date Range

Apr 21, 2006

Let's say I have thousands of employees, but I need to determine who worked for me during a particular date range, and all I have to go on is their start date in one column and their end date in another column.

If:

A1 contains beginning date of employment
B1 contains ending date of employment
C1 contains specified beginning date (criteria)
D1 contains specified ending date (criteria)

## Formula That Will Determine The Number Of Days That Fall In A Specific Month Based On A Date Range

Jul 31, 2009

I'm needing a formula that will determine the number of days that fall in a specific month based on a date range. For example, if I have a date range of 10/15/2009 to 01/13/2009, I need the formula to determine the number of days in each month within the range (October has 15 days in the date range; November has 30, December has 31, and January has 13.) I have a large spreadsheet that would be so much easier to manage with such a formula. Currently, my spreadsheet is setup as follows. I need the forumla automatically fill in the number of days under each month.

Stard Date End Date Oct-09 Nov-09 Jan-10 Feb-10
10/15/2009 01/13/2009

I'm using Excel 2007.

## REcord That Fall Within Date Range, AND Meet Text Criteria

Dec 8, 2006

I have a large database that is updated daily. From within the database I need to:

1. Select all records where date field A is 14 days or less than date field B

AND

2. Where a field C matches a text criteria, i.e., =DOGGIE

AND

3. Append KITTY to field D of all records that match criteria 1 and 2

Finally

4. SAVE results as a text file.

## Determining If Date In Row Is Within 90 Days Of Date Accessed?

Jul 27, 2012

ive created an excel spreadsheet with expiration dates in one row and im trying to write a code which will pull out all information in the column if the expiration date in a certain row is within 90 days of the date the excel file is accessed

## Determining Date Based On Other Date

Mar 9, 2013

So i have have a two week period that is established by two dates (a start date "F3"... And an end date "F4")

I have a formula that determine if the "1st" of the month falls within the 13 days preceding the start day. This will notify me that I can the deposit my tenant first check on the start date.

Now that that is known, i would like to create a formula that will establish a second date in that month that will notify me when I can deposit my other renters payment. It will always be two after i deposit the first renters cheque.

## Fill Date Across Columns Based On User Date Range Input?

Mar 5, 2014

based on user date ranges entered on sheet1, I'm trying to write code that will write each month of the date range on other sheets across the 2nd row. at this point I'm getting "object required" error at "Set DateStart = Cells(2, 6)"

I also want the date format to be mmm-yy (Mar 14) on the sheets even if sheet1 has a different format. I tried using sourcerange instead of DateStart, but that didnt work either.

Code:

Dim projStartDate As Date
Dim projEndDate As Date
Dim DateStart As Date[code]....

## Only Countr Cell Values That Fall Within A Specific Range

Oct 24, 2007

I need to keep track of tardy occurences, but I only have to consider occurrences that have occurred in the past six months from the current day. Column A contains the names of the employees, Column C thru IV contains daily dates beginning with 1/1/2007. Column B contains a CountIf function to count the number of times T appears in columns c - iv.

## How To Calculate Date Fall In Which Week

Jul 28, 2009

Need a solution for calcuate a week in user enterd date?

Example

A1 A2
07/01/2009 1
07/01/2009 5

## Show / Sort Dates That Fall In Between Date (offset)

Jan 27, 2014

I have in column A the units, and in B and C the date changes. I want, when I pick a month from the box, that it only picks the IN and OUT date that applies to the month that I picked (per unit). For ex: if I choose Month march, it should show only for unit 19902506 for example: A2 and A5. And not A7 and A11. As March falls in between the Start and End Date. Is that passible? Something with OFFSET? I managed to find the latest known date with the formula =lookup (Column M:N) but Im not sure

## Determining Date Ranges

Mar 31, 2009

I have about 20 files with check posting dates stretched over several years. Maybe a million checks total. The company uses 13 four week periods each year, not a calendar month/year. I need to look up each posting date and attach the correct period to it.

I could do a VLOOKUP with one row for each day of the year, but that would require 2 x 365 row's for just two years. There must be a more elegant way, maybe using an array or some IF statement.

Attached is a sample file, xlsx, with the perior/year info and sample posting date info. Can someone point me in the right direction so that I end up with the correct period/year in column 'C' for the applicable posting date?

## Determining Date Of 2nd Or Last Friday Of Any Month?

Sep 14, 2008

Without VB, is there a way to write a formula which when given a certain month, will output the date of, let's say, 2nd or last friday of the month?

## Two Columns - Lookup Rate Corresponding To Specific Date

Jan 30, 2012

I have 2 cols of dates; col1 effective from, col2 effective to. In col c i have a list of corresponding rates. How can i look up the rate corresponding to a specific date. I've tried lookups and matching formulas but not working.

## Determining If Datetime Falls Within Start And End Date Times

Sep 25, 2013

I have been using this statement

if(and(c1>=a1:a144,c1<=b1:b144),"yes","no"))

And it just works for the first 2 values c1, c2 and doesn't fit for the others.

The case is i have more than one event at the same video and i need to confirm that no event was taken unless it is between start and end.

Here are some samples:

Start dtime End Dtime Event Dtime
16/09/2013 22:13:34 16/09/2013 22:14:18 16/09/2013 22:13:38
16/09/2013 22:15:57 16/09/2013 22:24:30 16/09/2013 22:16:02
16/09/2013 22:24:30 16/09/2013 22:33:49 16/09/2013 22:17:32
16/09/2013 22:33:53 16/09/2013 22:35:05 16/09/2013 22:19:02
16/09/2013 22:35:05 16/09/2013 22:39:57 16/09/2013 22:20:02

So as you can see there are more than one event between one start and end dtimes.

## Determining If Datetime Falls Within Start And End Date Times

Sep 25, 2013

I have been using this statement.

if(and(c1>=a1:a144,c1

## How To Auto-Populate Date Range (working Days Only) From Start Date And End Date

May 25, 2014

I am now trying to create a excel macro to auto populate all the dates with reference to a start date and end date. The catch is that only working days are required in the range. My reference cells (start and end date) are in Sheet 1 while the destination cell range are in Sheet 2. The reason for creating a macro instead of a function is that the intervals between the start date and end date changes frequently (annual, semi-annual and quarterly) Best case scenario would be a button which I can just press after i input the dates to generate the range of dates in another sheet.

## IF Date Formula: IF Formula, That States If A Date Is More Than A Month After The Date In The Cell Then It Is Timely

Jun 2, 2006

I need an IF formula, that states if a date is more than a month after the date in the cell then it is timely and if it isn't then it is not timely. For example the date in A1 is 12/11/05, if the cell is A2 is 13/12/05 (or any date after that) then A3 should read Not Timely, if A2 is 12/12/05 (or any date before that, including a date before the date in A1) then A3 should read Timely. Is there any way to do this?? At the moment I am having to go through manually and put in either Timely or Not Timely.

## Date Range: Reference A Single Date And Output Date Ranges

Oct 11, 2008

I need to create formulas that reference a single date and output date ranges. The objective is to have a person input a Monday date in any given month and receive a four weeks out worth of dates and ranges. For example: In a lone cell, the person inputs 10/13/08. Automatically, the sheet produces the next full week range: October 19 – October 25 in a single cell and also produces a cell for each date. Example: Sunday 19, Monday 20, Tuesday 21, etc…. It should look like:

Monday Date:
10/13/08
October 19 – October 25
Sunday 19
Monday 20
Tuesday 21
Wednesday 22
Thursday 23
Friday 24
Saturday 25

and then repeat for three more weeks. I thought I had it figured out until the month changed. The dates continued in October instead of adding a month. This report will be ran weekly, so simply adding a +1MONTH to some cells will not benefit me as I’ll have to change the formula every week. I want the formula to compute the data without any manipulation over the next several years. The only change will be the Monday date.

## Date Range Need To Have Specific Value Returned

Jan 7, 2014

Every week I have a set of open tickets with various dates. I need to break these Dates down to certain ranges.

Current DateAged Date Range Value to assign
10/20/2013 10/18/13< = 3 days A1
10/20/2013 10/7/13> 3 days & < 2 weeksA2
10/20/2013 9/23/132 weeks - 4 weeksA3
10/20/2013 9/22/13> 4weeks A4

I need in cell H:2 a value returned of with A1 thru A4 based on the results of the information in Columns A:D.

So basically it shoudl have in column H a bunch that fall in the reange of 3 day or less with "A1" then the dates that fall in the range of greater then 3 days but less then 2 weeks a value of "A2", etc. I hope i made this clear enuf to understand.

## Counting Occurences Within Specific Date Range

Sep 14, 2009

I’m looking for a formula that will count the number of occurrences of “YES” in column A between a specific date range (column B) BUT only if the it's categorized as "LAB" (column C).

Up until now I’ve jerry rigged the spread sheet to do it with various filters, if, and countif formulas but I’m looking for something that will fit in one cell and lower the overall size of the file.

To make it even more complicated I’d like to feed the formula the date range information from another editable cell so that it can basically be queried for whatever dates my boss is concerned about at that second.

## Calculate Specific Days Within Specified Date Range?

Jan 20, 2013

I have a form with grouped check boxes for each day of the week, and start date and end date from the Microsoft Date and Time picker control. I want to know the total days within the date range based on check boxes. For example, Tuesday and Thursday are checked off. The start date is December 1, 2012 and end date is January 31, 2013. What is the total number of Tuesdays and Thursays in that two month date range.

## Create Calculator To Show Start And End Date Based On Specific Date Provided

Jan 12, 2014

I am trying to create a calculator which will show start date and end date based on the specific date provided.

EX: column A has January 1, 2013, column B has Wednesday, Column C should have a start date which supposed to be 4 days ago (December 28).

## Lookup Date And Return Specific Cell Value From A Range

Jan 31, 2014

I have a table that has a number of new starters and corresponding appointments offered, what I originally required was to lookup the chronological date after the new start date.

However this has now been scuppered by my boss who has requested that not only lookup the date, but also add who the appointment is with, but if I do this the first array formula stops working and to tell the trust I'm not to sure how to do it anyway.

## Minimum And Maximum Values Within Specific Date Range

Sep 30, 2009

I have a table of dates and values and would very much like to know a formula for returning the min and mean values for each column within a specified time (date) period.

Table is as follows

Date value(a) Value (b) ....
1/1/09 10 8
2/1/09 8 6
3/1/09 5 2

## Automatically Date & Time Stamp Changes To Specific Range

Jun 4, 2008

i need to put a date stamp when a change is made in b3:b31 into e3:e31 for each row also i need to put a date stamp into g3:g31 when a change is made in F3:f31 i try to use 1 "worksheet-change" and it is fine once i use 2 i get Ambiguous Name Detected errors

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
With Target
If .Count > 1 Then Exit Sub
If Not Intersect(Range("b3:b31"), .Cells) Is Nothing Then
Application.EnableEvents = False
If IsEmpty(.Value) Then
.Offset(0, 3).ClearContents
Else
With .Offset(0, 3) ............

## How To Create Formula To Add 30 Days Out From Specific Date

Sep 15, 2009

I am creating a tracking spreadsheet and I will need to f/u on a process 30/60/90 days out from a particular date. Example: CPAP Therapy began 1/22/09 and I need to follow-up by 2/22/09. How do I create formula to add 30/60 or 90 days out from the setup date?

## How To Keep Date Entry TODAY Frozen On That Specific Date

Mar 6, 2014

I am working on a spreadsheet to create a school 'tracking' system based on excel. What I need is that as soon as a box in column B is ticked, a date (TODAY() is entered in column A. That is not so difficult, and I have used the formula in cells in column A:

=IF(ISBLANK(Bx);"";TODAY()), where x is the specific row.

So, keep cell A clear untill something is written in cell B. This works fine.

But, for the purpose I need to keep the TODAY() date fixed after entry. And it need to be erased again if the tickbox in cell B is emptied again. It need then to re-enter a new date after cell B is re-used.

## Calculate Total Amount Of Kilos For A Specific Date With Given Time Range

Mar 26, 2014

I am trying to calculate the total amount of kilos for a specific date with a given time range.

As well as the average time they have been handled with in the same specifications.

Attached is a sample sheet of the info I am working with but I cant seem to get the formulas to work.

Book1.xlsx

## Automatic Current Date Formula Extracts From Specific Cell

Mar 6, 2007

formula that can automatically use the current month date to extract information from other cells on my spreadsheet.

For example: This formula should be located in cell C6. Cells D6, F6, H6, J6, L6, N6, P6, R6, T6, V6, X6, and Z6 (these cells correspond to the months of the year, January to December respectively) contain the values I need. The month names are labeled above in row five.

Let's say the current month is March, I need the formula in C6 to automatically know that it is the month of March and to pull the information from cell H6 (which is the March cell). Then when April comes along, it will know that it is April and to only pull the information from cell J6; and so on until the end of the year.

## Date/Month :: Specific Date Falls In?

Feb 26, 2008

I have a column with dates populated(examp.Fri, 15 Feb 08)in it. In the next column I need to return the month and year (month,year format) this specific date falls in?

## Formula To Count Dates Between 2 Date Periods If Specific Condition Exists

Apr 6, 2012

I am currently using this formula to count dates between 2 date periods If specific condition exists.

=COUNTIFS(
Data!S1:S100000,"*KP*",
Data!X1:X100000,">=10/1/2010",
Data!X1:X100000,"=10/1/2010",
Data!X1:X100000,"