Default field with Single Digit Year within Julian Date

Nixfmly

New Member
Joined
Nov 10, 2014
Messages
10
I am trying to create a field with a default Julian date containing only a single digit year - example today 10/26/2016 = 6300

- I understand that both 2006 and 2016 will produce a 6, using the single digit year Julian Date- but it's what they use, so...here I am.

I have no issue creating the default date, but I cannot get to the single digit year. I have tried to format as "yyyyy" and "yyy" both of which provide 2016300

You're my only hope
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
To get the single digit year, you can use:
Code:
Right(Format(Date(),"yy"),1)
 
Upvote 0
It may have been helpful if I had mentioned that I am working in a table

When I place your suggested formula in the Format field Property, it freaked out on me and turned into this "Rig"h"t(For"n"at("d"ate(),yy,),1"
It didn't work as planned...any other ideas?
 
Upvote 0
You wouldn't enter your desired default into the Format property, you would use the Default Value property.
However, I don't believe you can use formulas in setting Default Values for fields directly in the table like that.

You would have to control/set the Default Values upon Data Entry.
- In Data Entry is done manually, all data entry should be done through Forms, and you can use VBA on the Form (i.e. the "Before Insert" event) to set these values.
- In Data Entry is done by Import, you can run an Update Query after the data has been entered to calculate and set these values.
 
Upvote 0

Forum statistics

Threads
1,214,667
Messages
6,120,815
Members
448,990
Latest member
rohitsomani

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