Thread: [Solved] Date driven value
View Single Post
 
Old 05-24-2011, 11:03 PM
macropod's Avatar
macropod macropod is offline Windows 7 32bit Office 2007
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,359
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

Hi ronocco,

Based on B16 as the origin, you could use either:
=(DAY(B$1)<$I16)*(MOD(B$1,7)=6)*$J16
or:
=($I16<=DAY(B$1))*($I16>DAY(B$1)-7)*$J16
The first formula would output the $10.00 in column D (being the last Friday before the 10th), and the second one would output it in column E (as does your current formula).
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote