+ Reply to Thread
Results 1 to 6 of 6

Pulling of month & year from date cell

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    07-21-2009
    Location
    Kuwait
    MS-Off Ver
    Excel 2019
    Posts
    292

    Thumbs up Pulling of month & year from date cell

    Hi all,

    i have attached a sheet, i want if i put date in cell a2 and automatically month should come in cell b2 and year in c2,

    LIKE JAN AND 2009 LIKE THAT..

    pls go throuh my sheet and do help,

    and also if it is possible, pls do that i want total of each folder and account in sheet2..

    Thanks in advance..

    Test.xls
    Last edited by tariqnaz2005; 12-02-2009 at 10:40 AM.

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: Pulling of month & year from date cell

    Hi,

    To return the month use

    =TEXT(MONTH(A2),"mmm")


    To return the year use

    =YEAR(A2)



    To total according to folder, use the SUMIF function. Eg, for Folder 350 Credits minus Debits

    =SUMIF(D2:D13,350,G2:G13)-SUMIF(D2:D13,350,F2:F13)
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,523

    Re: Pulling of month & year from date cell

    Hi try this

    =TEXT(A2,"MMM")
    =TEXT(A2,"YYYY")

    You don't have a sheet 2

  4. #4
    Forum Contributor
    Join Date
    07-21-2009
    Location
    Kuwait
    MS-Off Ver
    Excel 2019
    Posts
    292

    Re: Pulling of month & year from date cell

    WOW, great..Thanks both of you..,

    You are great and kind..God bless you and bewtow you return of this favour..

    One thing more, your this formula =SUMIF(D2:D13,350,G2:G13)-SUMIF(D2:D13,350,F2:F13)
    is correct..but what i want is in sheet be from column folder all floder name like 350, 458, 230 whatsoever should come in order and their balance should come in front of them and same as from column account should give me same result like account name 45878 and others..

    Thanks..
    Last edited by tariqnaz2005; 12-02-2009 at 10:20 AM.

  5. #5
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: Pulling of month & year from date cell

    You have several options,

    One is to extract unique values from the lists using Data > Filter > Advanced Filter and then modifying the above formula.

    Another is to use a pivot table to summarise the data

  6. #6
    Forum Contributor
    Join Date
    07-21-2009
    Location
    Kuwait
    MS-Off Ver
    Excel 2019
    Posts
    292

    Re: Pulling of month & year from date cell

    Thanks a lot..i will try that...have a nice day..

+ 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.6.0 RC 1