P (MM/YY) as a date format - is it possible in VBA??

Noob101

New Member
Joined
Jan 10, 2014
Messages
18
Hello Again!

My supervisor wants me to create a column in a spreadsheet in Excel 2003 which tracks who has done what courses/who is nominated for them/who is enrolled etc etc BUT she wants it in a (ridiculous) format. Specifically:

P (MM/YY) - The P is for "pass", the date format and she wants it to automatically go green.

Enroll (MM/YY) - Yellow

Nom (MM/YY) - Light Blue

Blank - Red.

As you can see, it would need to be done in VBA somehow but I'm not sure how to set it up. Any help would be so great because she really wants it done ASAP and I am not so great with code. Thankyou so much for helping!
 

Some videos you may like

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

marc j

Board Regular
Joined
Aug 8, 2012
Messages
112
Hello,
I am not sure if this is what are looking for but I was able to create a non-vba version with conditional formatting.
I assumed that there must be some name, criteria and the dates you need to highlight.
I had to create 4 different conditional formating.

I highlighted all of the dates in column C and for the first criteria I selected "new rule, use a formula to determine which cells to format"
and in the formula bar I added // =$B2="P" // then i selected the format fill and selected green, then i selected format number and
on the left side selected custom // and in the "type" I added (mm/yy).
I did the same thing for all of the conditions..( =$B2="Enroll", =$B2="Nom", =$B2="")

My dates are in cell C2:C5.

A B C
namecriteriadate
carolp6-Jun
maryenroll4-Sep
michaelnom10-Nov
jimmy4-Sep

<colgroup><col><col><col></colgroup><tbody>
</tbody>

Hope that helps
marcj
 

Watch MrExcel Video

Forum statistics

Threads
1,122,576
Messages
5,596,987
Members
414,115
Latest member
SFUser

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
Top