Date Tracking

Mikec1012

New Member
Joined
Oct 24, 2017
Messages
30
Hello all!

So here’s my scenario and/or “is it possible” - I work for a mortgage lender and I’m trying to find an excel spreadsheet or create one that would highlight cells based off employment dates. This would also help to show overlapping or then even show no formatting or highlight red if there is a gap or no employment for that week/month.

I would have two rows (12 cells each) both representing a cell for each month dating back / showing a 24 month window.

My date would be a Start Date and and End Date.

Need a formula or method that would then highlight the months that fall between the start/end date. So…
[A]
[1] START END
[2] 05/05/2020 12/01/2020
[3] 06/09/2020 03/01/2021
[4]
I would need to be able to use/add rows as needed based off how many employers one has between a 2 year window.

The formula would highlight cells that correspond with:
MAY | JUNE | JULY | AUGUST … to DECEMBER
And then overlap highlighting again and highlight out to MARCH

If possible even, to take a step further to break it down to 52 weeks - ROW 1 (A-BA) and ROW 2 (A-BA)

Not to throw more in to the mix - have a cell that you would plug in the date (not a TODAY()) but date of their application and then the 12 columns or 52 columns auto calculates back to give me a 24 month/2 year coverage.

Whew. A lot. I know but thank you.
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
i have problems with the visualisation of your idea.
What do you have for the moment and what do you want to achieve ?
Show it, if possible, with the XL2BB-tool.
 
Upvote 0
I know it was a lot and confusing - my apologies. So here's a screen shot of what I would like OR even possibly instead of 24 months as picture below, have it set for weeks. Then, when I plug in dates under D9 - E9 -- it would highlight all cells that fall within that date range.

So below...
D2 - this date would be a manually entered beginning date
C4-N4 and C5-N5 - Cells subtract 1 month from the previous cell to equate to 24 months

The data entered in D9-E9 -- formatting cell between the C4:N5 rage to highlight the cell IF it falls between that date range - format with a green cell highlight.

In the end, it would show me for example employment gaps/breaks for any cell between C4:N5 that are not filled in with green.

1648474733763.png
 
Upvote 0
I know it was a lot and confusing - my apologies. So here's a screen shot of what I would like OR even possibly instead of 24 months as picture below, have it set for weeks. Then, when I plug in dates under D9 - E9 -- it would highlight all cells that fall within that date range.

So below...
D2 - this date would be a manually entered beginning date
C4-N4 and C5-N5 - Cells subtract 1 month from the previous cell to equate to 24 months

The data entered in D9-E9 -- formatting cell between the C4:N5 rage to highlight the cell IF it falls between that date range - format with a green cell highlight.

In the end, it would show me for example employment gaps/breaks for any cell between C4:N5 that are not filled in with green.

View attachment 61074
Just noticed the typo in Employment History - haha!
 
Upvote 0
does this work

i have used a countifs()

see the test section, just to show it working - not needed in final sheet , as conditional formatting works

If that works ok for you , and covers the range OK, not 100% it works in all conditions - so please try out all possibilities in your real data

then we can look at weeks - but would need more info for that - as in starting day of week etc - based on date entered ie will it be a sun-sat week - so a few examples would be needed

please try usng xl2bb

Cell Formulas
RangeFormula
C4C4=DATE(YEAR(C2),MONTH(C2),DAY(1))
D4:N5D4=DATE(YEAR(C4),MONTH(C4)-1,DAY(1))
C5C5=DATE(YEAR(C2)-1,MONTH(C2),DAY(1))
C15:N16C15=COUNTIFS($D$9:$D$14,"<="&C4,$E$9:$E$14,">="&C4)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C4:N5Expression=COUNTIFS($D$9:$D$14,"<="&C4,$E$9:$E$14,">="&C4)textNO



Note: Images are difficult to see , and also requires that I input all the data myself, which is very time consuming.

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC , then put the sample spreadsheet onto a share
I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
 
Upvote 0
does this work

i have used a countifs()

see the test section, just to show it working - not needed in final sheet , as conditional formatting works

If that works ok for you , and covers the range OK, not 100% it works in all conditions - so please try out all possibilities in your real data

then we can look at weeks - but would need more info for that - as in starting day of week etc - based on date entered ie will it be a sun-sat week - so a few examples would be needed

please try usng xl2bb

Cell Formulas
RangeFormula
C4C4=DATE(YEAR(C2),MONTH(C2),DAY(1))
D4:N5D4=DATE(YEAR(C4),MONTH(C4)-1,DAY(1))
C5C5=DATE(YEAR(C2)-1,MONTH(C2),DAY(1))
C15:N16C15=COUNTIFS($D$9:$D$14,"<="&C4,$E$9:$E$14,">="&C4)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C4:N5Expression=COUNTIFS($D$9:$D$14,"<="&C4,$E$9:$E$14,">="&C4)textNO



Note: Images are difficult to see , and also requires that I input all the data myself, which is very time consuming.

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC , then put the sample spreadsheet onto a share
I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Oh man!! This is perfect.

Question for you... so I wanted to break this down in to weeks? How might that be done?
does this work

i have used a countifs()

see the test section, just to show it working - not needed in final sheet , as conditional formatting works

If that works ok for you , and covers the range OK, not 100% it works in all conditions - so please try out all possibilities in your real data

then we can look at weeks - but would need more info for that - as in starting day of week etc - based on date entered ie will it be a sun-sat week - so a few examples would be needed

please try usng xl2bb

Cell Formulas
RangeFormula
C4C4=DATE(YEAR(C2),MONTH(C2),DAY(1))
D4:N5D4=DATE(YEAR(C4),MONTH(C4)-1,DAY(1))
C5C5=DATE(YEAR(C2)-1,MONTH(C2),DAY(1))
C15:N16C15=COUNTIFS($D$9:$D$14,"<="&C4,$E$9:$E$14,">="&C4)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C4:N5Expression=COUNTIFS($D$9:$D$14,"<="&C4,$E$9:$E$14,">="&C4)textNO



Note: Images are difficult to see , and also requires that I input all the data myself, which is very time consuming.

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC , then put the sample spreadsheet onto a share
I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
You. Have. Been. Awesome! That has worked. Silly question next.... As I want to make this a template type sheet, my starting date will be blank. How do I hide the data in the cells calculate the dates:

1648493218636.png
 
Upvote 0
Cell Formulas
RangeFormula
N2N2=DATE(YEAR(I2) - 2, MONTH(I2), DAY(I2))
C4C4=I2
D4:N12D4=C4-7
C5:C12C5=N4-7
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C4:N12Expression=COUNTIFS($D$16:$D$27,"<="&C4,$E$16:$E$27,">="&C4)textNO
 
Upvote 0
have you fully tested the monthly version - for your real data , in case it throws up an issue

Weekly maybe more difficult depending on how we work out the dates, maybe we could use weeknum()
not sure yet

i'll have a think and play

you can use an IF( I2="", "" , ......
 
Upvote 0
I'm not 100% sure on this , added the blank if no date added

but i think this may cause issues on some dates because of the start/end of week

again throughly check out and if errors - make sure you highlight specifically

also as before dropbox link - note these file do NOT stay on my dropbox for more than a few days

Cell Formulas
RangeFormula
N2N2=DATE(YEAR(I2) - 2, MONTH(I2), DAY(I2))
C4C4=IF(I2="","",I2)
D4:N12D4=IF(C4="","",C4-7)
C5:C12C5=IF(N4="","",N4-7)
C28:N36C28=COUNTIFS($D$17:$D$23,"<="&C4,$E$17:$E$23,">="&C4)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C4:N12Expression=COUNTIFS($D$17:$D$23,"<="&C4,$E$17:$E$23,">="&C4)textNO


 
Upvote 0
I'm not 100% sure on this , added the blank if no date added

but i think this may cause issues on some dates because of the start/end of week

again throughly check out and if errors - make sure you highlight specifically

also as before dropbox link - note these file do NOT stay on my dropbox for more than a few days

Cell Formulas
RangeFormula
N2N2=DATE(YEAR(I2) - 2, MONTH(I2), DAY(I2))
C4C4=IF(I2="","",I2)
D4:N12D4=IF(C4="","",C4-7)
C5:C12C5=IF(N4="","",N4-7)
C28:N36C28=COUNTIFS($D$17:$D$23,"<="&C4,$E$17:$E$23,">="&C4)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C4:N12Expression=COUNTIFS($D$17:$D$23,"<="&C4,$E$17:$E$23,">="&C4)textNO


Awesome!!!

I was able to use this and transfer over to my master sheet. I then followed the formula and made the "TWO YEARS BACK" cell to hide as well pending the "STARTING DATE" cell. You are amazing!!
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,771
Members
452,353
Latest member
strainu

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