automatic date calc

Luigi802

Board Regular
Joined
Oct 16, 2014
Messages
80
Per example below, this is really racking my brain! How could I make the "Due Date" if it's not in between the pay period, for example, since today is Jan 24th, the 1st 4 bills should read "Day"FEB"16" and the last 2 should still read Jan as they are withing the pay period.

Today is 1/24/16
Pay period1/22/16To1/29/16
BillAmountDue Date
Bill 1$650.002/1/16
Bill 2$200.002/5/16
Bill 3$65.002/10/16
Bill 4$50.002/21/16
Bill 5$300.001/22/16
Bill 6$25.001/23/16
Bill 7$85.001/25/16
Bill 8$40.001/28/16

<colgroup><col><col span="3"></colgroup><tbody>
</tbody>
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Per example below, this is really racking my brain! How could I make the "Due Date" if it's not in between the pay period,
What I mean to say is Per example below, this is really racking my brain! How could I make the "Due Date" automatically update to the next month if it's not in between the pay period,
 
Upvote 0
I think I figured it out, using formula =IF(TODAY()>$B$12,DATE(YEAR(TODAY()),MONTH(TODAY())+1,DAY([@[Due Day]])),DATE(YEAR(TODAY()),MONTH(TODAY()),DAY([@[Due Day]])))

Where B12 is 1/29/16 and "[@[Due Day]]" is another column where I put the day of the month it's due on, i.e. if it's due on the 1st of each month then [@[Due Day]] would plainly be 1. I believe I had this formula before but I changed it cause I think I came across a scenario where it didn't work. If you could think of any reason why this wouldn't work please let me know!
 
Upvote 0

Forum statistics

Threads
1,215,523
Messages
6,125,320
Members
449,218
Latest member
Excel Master

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top