+ Reply to Thread
Results 1 to 6 of 6

Thread: Need column D to be like column C

  1. #1
    Registered User
    Join Date
    10-28-2011
    Location
    Delhi
    MS-Off Ver
    Excel 2007
    Posts
    86

    Need column D to be like column C

    Hi

    Attached excel file...Please tell me a formula to make values/dates appear in column D identical to column C (using column B).
    Attached Files Attached Files

  2. #2
    Forum Guru, retired Admin royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    25,634

    Re: Need column D to be like column C

    It looks like you just need a Custom NumberFormat

    YYYY-MM

    I can't see the point but a formula in C3

    =TEXT(B3,"yyyy-mm")
    Hope that helps.

    RoyUK
    --------
    If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need

    For Excel Tips & Solutions, free examples and tutorials why not check out my downloads

    New members please read & follow the Forum Rules

    Remember to mark your questions Solved and rate the answer(s)

  3. #3
    Registered User
    Join Date
    10-28-2011
    Location
    Delhi
    MS-Off Ver
    Excel 2007
    Posts
    86

    Re: Need column D to be like column C

    Thanks for help

    May you please suggest without using text function?

    Please....

  4. #4
    Registered User
    Join Date
    09-26-2010
    Location
    A, A
    MS-Off Ver
    Excel 2003
    Posts
    59

    Re: Need column D to be like column C

    The formula will work but should be in cell D3... So in cell D3 enter the formula

    =TEXT(B3,"yyyy-mm")

    Without the text function try this in cell D3

    =YEAR(B3)&"-"&IF(LEN(MONTH(B3))=2,MONTH(B3),"0"&MONTH(B3))
    Last edited by adaws; 01-24-2012 at 07:53 AM.

  5. #5
    Forum Guru, retired Admin royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    25,634

    Re: Need column D to be like column C

    In D3

    =A3

    Format cells as "yyyy-mm" in the format cells dialag -> custom number
    Hope that helps.

    RoyUK
    --------
    If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need

    For Excel Tips & Solutions, free examples and tutorials why not check out my downloads

    New members please read & follow the Forum Rules

    Remember to mark your questions Solved and rate the answer(s)

  6. #6
    Registered User
    Join Date
    10-28-2011
    Location
    Delhi
    MS-Off Ver
    Excel 2007
    Posts
    86

    Re: Need column D to be like column C

    Please also tell me (a formula) to calculate:

    -No. of days in the month in column E
    -Last day of the month in column F

    Thanks in advance

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.2.0