Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-23-2011, 11:38 AM
ronocoo ronocoo is offline Date driven value Windows 7 64bit Date driven value Office 2010 64bit
Novice
Date driven value
 
Join Date: May 2011
Posts: 5
ronocoo is on a distinguished road
Default Date driven value

I need help coming up with a formula that will make a fixed value appear if a specific date falls on or before the Friday of that week.

For example:

HTML Code:
May 23, 2011    May 27, 2011    June 3, 2011    June 10, 2011    June 17, 2011
Current Week    One Week Out    Two Weeks Out    Three Weeks Out    Four Weeks Out
                  X             
The dates that appear other than current week are Fridays. For a fixed payment on the 25th, I'd like a formula that would make that value appear on the May 27. It doesn't need to be complicated. I plan on referencing this formula to for all the weeks because the week out dates are driven by the current week.



Any help is appreciated. Thank you!
Reply With Quote
  #2  
Old 05-23-2011, 06:41 PM
macropod's Avatar
macropod macropod is offline Date driven value Windows 7 32bit Date driven value Office 2007
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,344
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,

You can do the Friday test with a formula like:
=IF(MOD(A1,7)=6,"X","")
where A1 is the address of the cell containing the date of interest.

I'm not sure what you mean by "For a fixed payment on the 25th, I'd like a formula that would make that value appear on the May 27", though. Do you mean that you only want the 'X' to display on the preceding Wednesday?
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 05-24-2011, 09:00 AM
ronocoo ronocoo is offline Date driven value Windows 7 64bit Date driven value Office 2010 64bit
Novice
Date driven value
 
Join Date: May 2011
Posts: 5
ronocoo is on a distinguished road
Default

Hi macropod,

Thanks for helping. I read up on the MOD formula, and I'm confused as to how this would work for what I'm trying to do?

Let me try to explain the fixed payment ordeal in a different way.

Say I have a periodic payment on the 10th. If the 12th is the Friday of the week and it contains the 10th, I want that value to appear. For other Friday's such as the 19th and the 10th doesn't fall within that week, then no value appears in that cell.
Reply With Quote
  #4  
Old 05-24-2011, 09:27 AM
ronocoo ronocoo is offline Date driven value Windows 7 64bit Date driven value Office 2010 64bit
Novice
Date driven value
 
Join Date: May 2011
Posts: 5
ronocoo is on a distinguished road
Default

Hey macropod! I found a formula that works out except with one minor issue, when the day# is greater than the Friday#.

=IF(ABS((DAY(C$1)-10))<5,45000,"")

Can you help me with my logical issue? For example, if the Friday is the 3rd and the periodic payment date is the 30th, it doesn't work out. I want to use the OR function, but I'm not able to structure it properly.
Reply With Quote
  #5  
Old 05-24-2011, 09:44 AM
ronocoo ronocoo is offline Date driven value Windows 7 64bit Date driven value Office 2010 64bit
Novice
Date driven value
 
Join Date: May 2011
Posts: 5
ronocoo is on a distinguished road
Default

Okay, this is the formula I came up with.

=IF(ABS((DAY(C$1)-$I19))>25,$J19,IF(ABS((DAY(C$1)-$I19))<5,$J19,""))

Can you help me simplify it? I'd like to combine finding >25 or <5.
Reply With Quote
  #6  
Old 05-24-2011, 08:53 PM
macropod's Avatar
macropod macropod is offline Date driven value Windows 7 32bit Date driven value Office 2007
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,344
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,

it would be easier to address the issue if you posted a sample workbook. As it is, I have no idea what some of your cell references relate to.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #7  
Old 05-24-2011, 09:58 PM
ronocoo ronocoo is offline Date driven value Windows 7 64bit Date driven value Office 2010 64bit
Novice
Date driven value
 
Join Date: May 2011
Posts: 5
ronocoo is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
Hi ronocco,

it would be easier to address the issue if you posted a sample workbook. As it is, I have no idea what some of your cell references relate to.
Sorry about that. I attached a sample of the spreadsheet I'm working with.

This is my current formula: IF(AND(payment date<=field date,ABS(payment date-field date)<7),payment amount,"")

Thanks!
Attached Files
File Type: xlsx Date driven value.xlsx (16.1 KB, 16 views)
Reply With Quote
  #8  
Old 05-24-2011, 11:03 PM
macropod's Avatar
macropod macropod is offline Date driven value Windows 7 32bit Date driven value Office 2007
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,344
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
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to Create a Resource Driven Schedule gamer83 Project 2 05-24-2011 03:56 AM
Date driven value Creating a date box Philip290 Excel 5 05-11-2011 03:27 AM
Date driven value A date question markg2 Excel 3 11-05-2010 02:35 PM
new appointment date always reverts back to today's date msills Outlook 0 08-24-2007 08:57 AM
Date driven value Imported message date change to today's date promark Outlook 1 12-23-2005 07:21 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:20 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