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!
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
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
 
Upvote 0

Forum statistics

Threads
1,214,659
Messages
6,120,781
Members
448,992
Latest member
prabhuk279

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