Highlighting dates in column that land within the next pay period

tsadams23

New Member
Joined
Oct 23, 2015
Messages
1
I have a spreadsheet where i keep track of all my upcoming bills and it would be handy to have some sort of conditional formatting so i know if the bill lands on the current pay period or the following one. It's a pretty basic setup on one sheet I have the bill information

Bill Due Date Amt Due Amt Paid Date Paid
Water 10/15/2015 50.00
Electric 10/23/2015 150.00
etc
etc

Then in another sheet i have a formula that calculates the pay days for the current year. We're paid Biweekly and i have a simple table setup for that as well

Pay Period Pay Date
1 1/8/2015
2 1/22/2015
etc
etc

I'd like to conditionally format the Bill Name or the Due date, doesnt really matter to me, but I'd like it to highlight one color if the due date lands on the upcoming pay date, and another color if it lands on the pay date after that, just so I know if i can pay some bills ahead of time or not depending on the amount due and which pay period it lands in.
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Welcome to the MrExcel board!

Try this. First, here is my Pay Days sheet

Excel Workbook
AB
1Pay PeriodPay Date
2108-Jan-2015
3222-Jan-2015
4305-Feb-2015
5419-Feb-2015
6505-Mar-2015
7619-Mar-2015
8702-Apr-2015
9816-Apr-2015
10930-Apr-2015
111014-May-2015
121128-May-2015
131211-Jun-2015
141325-Jun-2015
151409-Jul-2015
161523-Jul-2015
171606-Aug-2015
181720-Aug-2015
191803-Sep-2015
201917-Sep-2015
212001-Oct-2015
222115-Oct-2015
232229-Oct-2015
242312-Nov-2015
252426-Nov-2015
262510-Dec-2015
272624-Dec-2015
28
Pay Days




Now, in the Bills sheet, select A2:B?? and apply the two conditional formatting formula rules as shown.
Green means the bill is due on the next pay day or up until the day before the following pay day.
Blue means the bill is due in the next pay period after that.

Excel Workbook
AB
1BillDue Date
2Water20-Nov-2015
3Electric28-Dec-2015
4Phone31-Oct-2015
5
Bills
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A21. / Formula is =MATCH($B2,'Pay Days'!$B$2:$B$27)-MATCH(TODAY(),'Pay Days'!$B$2:$B$27)=2Abc
A22. / Formula is =MATCH($B2,'Pay Days'!$B$2:$B$27)-MATCH(TODAY(),'Pay Days'!$B$2:$B$27)=1Abc
 
Upvote 0
I am looking to do this exact same thing, but using your example i cannot get it to work. could you post a example worksheet that i could reverse engineer?
 
Upvote 0
I am looking to do this exact same thing, but using your example i cannot get it to work. could you post a example worksheet that i could reverse engineer?
Welcome to the MrExcel board!

We cannot attach actual workbooks in this site. In any case I have given all the data, layout and Conditional Formatting formulas for you to copy/paste (with a little bit of cleaning up) to a fresh workbook to test. Of course, you would have to use current year dates instead of dates from 2015 because the Conditional Formatting formulas are calculating from the current date TODAY()

If you still can't get it to work you will have to provide more details about in what way is it not working (eg not highlighting anything, highlighting everything, highlighting some things but they are the wrong things).

Ideally post the sample data you are using as I did above - help for that is available in my signature block below.
 
Upvote 0
Welcome to the MrExcel board!

We cannot attach actual workbooks in this site. In any case I have given all the data, layout and Conditional Formatting formulas for you to copy/paste (with a little bit of cleaning up) to a fresh workbook to test. Of course, you would have to use current year dates instead of dates from 2015 because the Conditional Formatting formulas are calculating from the current date TODAY()

If you still can't get it to work you will have to provide more details about in what way is it not working (eg not highlighting anything, highlighting everything, highlighting some things but they are the wrong things).

Ideally post the sample data you are using as I did above - help for that is available in my signature block below.

OK i got it. First i though the formula would highlight current pay period bills due, i doesn't it highlights next period and the period after that.

Second.....well i have no idea. I couldn't get it to highlight anything but after starting from scratch the 5th time now it seems to work. Thank You very much for your help. I have managed to automate the checkbook so much now even the wife understands where all the money goes.
 
Upvote 0
Peter, so here i am again,,,hard drive crashed and now im trying to rebuild my work again. You kindly posted the formulas and examples above for me to workout but i cannot figure out how to paste them into a worksheet to edit and look at. I copy and when i go to paste it only gives me the option to paste text only which of course is no help. What am i missing here?
 
Upvote 0
What am i missing here?
You are missing two things:

  1. A backup of your work!!!

  2. The forum has had a software upgrade and some information, like this conditional formatting, has been lost in the transition.

I don't have the original workbook either so I don't know exactly what I posted. Does this do what you want?

Mott31 2020-02-16 1.xlsm
AB
1Pay PeriodPay Date
218-Jan-20
3222-Jan-20
435-Feb-20
5419-Feb-20
654-Mar-20
7618-Mar-20
871-Apr-20
9815-Apr-20
10929-Apr-20
111013-May-20
121127-May-20
131210-Jun-20
141324-Jun-20
15148-Jul-20
161522-Jul-20
17165-Aug-20
181719-Aug-20
19182-Sep-20
201916-Sep-20
212030-Sep-20
222114-Oct-20
232228-Oct-20
242311-Nov-20
252425-Nov-20
26259-Dec-20
272623-Dec-20
Sheet1



Mott31 2020-02-16 1.xlsm
AB
1BillDue Date
2Water6-Mar-20
3Electric28-Jun-20
4Phone24-Feb-20
Bills
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:B4Expression=AGGREGATE(14,6,Sheet1!$B$2:$B$27/(Sheet1!$B$2:$B$27<=$B2),1)=AGGREGATE(15,6,Sheet1!$B$2:$B$27/(Sheet1!$B$2:$B$27>=TODAY()),2)textNO
A2:B4Expression=AGGREGATE(14,6,Sheet1!$B$2:$B$27/(Sheet1!$B$2:$B$27<=$B2),1)=AGGREGATE(15,6,Sheet1!$B$2:$B$27/(Sheet1!$B$2:$B$27>=TODAY()),1)textNO
 
Upvote 0

Forum statistics

Threads
1,215,005
Messages
6,122,661
Members
449,091
Latest member
peppernaut

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