Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 11-11-2014, 10:02 PM
macropod's Avatar
macropod macropod is offline HELP: Return a value with a date that falls between two other dates Windows 7 64bit HELP: Return a value with a date that falls between two other dates Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,527
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

You could reduce the formula to:
Code:
=IFERROR(INDEX(Details!B:B,IF(SUMPRODUCT(--(Details!A:A=B2),--(Details!C:C<=D2),--(IF(Details!D:D<>"",Details!D:D,TODAY())>=D2),ROW(Details!A:A)-ROW(Details!A2)+1)=0,"",SUMPRODUCT(--(Details!A:A=B2),--(Details!C:C<=D2),--(IF(Details!D:D<>"",Details!D:D,TODAY())>=D2),ROW(Details!A:A)-ROW(Details!A2)+1))),"NO TENANT PRESENT")
As for the 'NO TENANT PRESENT' result throughout, that's because your Details sheet has strings, not dates, for the 'CUSTOMER START DATE' & 'CUSTOMER TERMINATION DATE' columns.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP: Return a value with a date that falls between two other dates how do you reflect when PV falls below EV ketanco Project 1 10-13-2014 03:30 PM
Date Format: how to output dates that are not US? tinfanide Word VBA 0 10-28-2013 03:30 AM
Default dates for a Date Picker BoringDavid Word VBA 2 09-11-2013 01:42 AM
HELP: Return a value with a date that falls between two other dates MS Project Start Dates not matching the Status Date sjodom Project 3 12-04-2011 08:45 AM
HELP: Return a value with a date that falls between two other dates lookup dates and return corresponding data newton.rogers Excel 7 08-15-2011 11:50 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:16 PM.


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