+ Reply to Thread
Results 1 to 11 of 11

Year From 4 digit Number

Hybrid View

xjohnson Year From 4 digit Number 11-24-2018, 09:07 AM
AliGW Re: Year From 4 digit Number 11-24-2018, 09:15 AM
xjohnson Re: Year From 4 digit Number 11-24-2018, 09:35 AM
xjohnson Re: Year From 4 digit Number 11-24-2018, 09:24 AM
AlKey Re: Year From 4 digit Number 11-24-2018, 09:30 AM
AliGW Re: Year From 4 digit Number 11-24-2018, 09:29 AM
AliGW Re: Year From 4 digit Number 11-24-2018, 09:39 AM
xjohnson Re: Year From 4 digit Number 11-24-2018, 09:43 AM
AliGW Re: Year From 4 digit Number 11-24-2018, 09:46 AM
xjohnson Re: Year From 4 digit Number 11-24-2018, 09:49 AM
AliGW Re: Year From 4 digit Number 11-24-2018, 09:50 AM
  1. #1
    Banned User!
    Join Date
    10-12-2018
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    358

    Year From 4 digit Number

    Hi,

    I want to enter a 4 digit number in a cell like 2018. Then in another cell convert that to years.

    Does anyone know how?

    Thank you,
    XJ

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,933

    Re: Year From 4 digit Number

    Eh??? What exactly do you mean?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Banned User!
    Join Date
    10-12-2018
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    358

    Re: Year From 4 digit Number

    Okay thank you for the replies. Basically I have the Setup sheet. Then in the Holidays sheet cell A1 I want it to show what is entered for the formulas in that sheet. Now it is referring to the Shift Hours sheet first. I want to bypass that sheet.

    I am sorry for the trouble I'm just trying to understand and learn about these formats.

  4. #4
    Banned User!
    Join Date
    10-12-2018
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    358

    Re: Year From 4 digit Number

    I want to just enter the year in the first cell by typing 2018 and keep it to show 2018.

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Year From 4 digit Number

    Quote Originally Posted by xjohnson View Post
    I want to just enter the year in the first cell by typing 2018 and keep it to show 2018.
    Well, I guess you can do something like this
    Enter manually 2018 in A1 and enter in B1 =A1
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,933

    Re: Year From 4 digit Number

    If I type 2018 into a cell it stays like that. What happens when you do it? Is this to do with the cell formatting you have set? Attach a workbook.

    Excel 2016 (Windows) 32 bit
    A
    1
    2018
    Sheet: Sheet1

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,933

    Re: Year From 4 digit Number

    There is no trouble! We just need to understand your query, that's all, otherwise, we can't help.

    I am afraid I still don't understand. Which formulae on the holidays sheet do you want to use for the year in A1?

  8. #8
    Banned User!
    Join Date
    10-12-2018
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    358

    Re: Year From 4 digit Number

    Thank you very much for helping. All of them to refer to the Setup sheet cell D6 instead of the Shift Hours sheet.

    Oh just the column A and H in the Holidays sheet formulas

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,933

    Re: Year From 4 digit Number

    Do you mean this?

    =DATE(Setup!$D$6,1,1)

  10. #10
    Banned User!
    Join Date
    10-12-2018
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    358

    Re: Year From 4 digit Number

    Yes that works now. It wasn't working before. Thank you so much.

    I am not understanding how references and dates or texts are treated.

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,933

    Re: Year From 4 digit Number

    OK, well you are going to need to be much more specific in your queries if you want help working that out. Glad it's working now!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. get nearest month/day/year that hasn't passed from two digit number with formula
    By 951Michael in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-01-2017, 02:08 PM
  2. Code to turn 4 digit year to 2 digit
    By phbryan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-30-2015, 01:55 PM
  3. [SOLVED] Sorting of a Log Number that starts with a two digit year
    By xltbob in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-19-2012, 05:34 PM
  4. Replies: 4
    Last Post: 09-12-2011, 12:00 PM
  5. [SOLVED] how to identify only 2 digit permuted number from list of 3 digit number
    By bigcrap in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 09-08-2011, 03:06 PM
  6. Replies: 6
    Last Post: 05-10-2011, 11:30 AM
  7. Number store as text & text date with 2 digit year problem
    By obc1126 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-24-2008, 01:23 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1