Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-12-2016, 02:52 PM
rspiet rspiet is offline Find a Date in a Range Windows 7 64bit Find a Date in a Range Office 2010 32bit
Novice
Find a Date in a Range
 
Join Date: Nov 2014
Posts: 12
rspiet is on a distinguished road
Default Find a Date in a Range


The attached spreadsheet contains a range of beginning and ending dates along with some other data in A2 thru D13. In column E2 there is a date value. I need a formula that will search for which date range the date in E2 is in and find the group leader for that date range in F2.

Note, the data itself for this is just a made up sample made up in order to create the formula. My real application is much more complex.
Attached Files
File Type: xlsx DateRangeExample.xlsx (17.1 KB, 12 views)
Reply With Quote
  #2  
Old 02-12-2016, 10:57 PM
xor xor is offline Find a Date in a Range Windows 10 Find a Date in a Range Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,097
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default Find a Date in a Range

Maybe like this.
Attached Files
File Type: xlsx DateRangeExample_2.xlsx (11.6 KB, 12 views)
Reply With Quote
  #3  
Old 02-15-2016, 01:41 AM
xor xor is offline Find a Date in a Range Windows 10 Find a Date in a Range Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,097
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

Please forget my previous post.

Use the following array formula instead:

=INDEX(D213,MATCH(1,((A2:A13>=DATE(YEAR(E2),MONT H(E2),1))*(B2:B13<=DATE(YEAR(E2),MONTH(E2)+1,0))), 0))

(Must be entered by holding down Ctrl and Shift before pressing Enter).


(Anyone who knows how to avoid the Big Grin icon when one enters for example D2 colon D13?)
Reply With Quote
  #4  
Old 02-15-2016, 08:37 AM
rspiet rspiet is offline Find a Date in a Range Windows 7 64bit Find a Date in a Range Office 2010 32bit
Novice
Find a Date in a Range
 
Join Date: Nov 2014
Posts: 12
rspiet is on a distinguished road
Default

Your formula did not work for me, but I got the following formula to work.

=LOOKUP(2,1/((E2>=$A$2:$A$13)*(E2<=$B$2:$B$13)),$D$2:$D$13)
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Check if a Date falls within a date range OTPM Excel 7 02-03-2016 09:11 PM
Find a Date in a Range MS Project Date Range Issue appelguy@gmail.com Project 2 10-31-2015 11:52 AM
find IP in range / find number between numbers gn28 Excel 4 06-14-2015 03:46 PM
Find a Date in a Range Restrict Date Range Calculations akatz85 Excel 4 03-27-2014 08:46 PM
Find a Date in a Range Date Range Prompt MikeWooZ Excel 6 12-04-2011 02:10 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:38 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft