+ Reply to Thread
Results 1 to 6 of 6

Return month and year from pivot table

  1. #1
    Registered User
    Join Date
    08-21-2014
    Location
    Bristol
    MS-Off Ver
    2010
    Posts
    15

    Return month and year from pivot table

    Hello all,

    I have an issue with returning data from a pivot table.

    The pivot table is set to group in months and years, I can get an index/ match to return the month.

    However, I require month and year, is that possible?

    So if the highest value is in June 2010, it will return June bit not the year.

    Hope that makes sense, would post an example but using my phone atm.

    Thanks in advance

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Return month and year from pivot table

    I advice you to use the orignal data to achieve that.

    In the pivot table you could also use the option max (in the value box) to get the highest value.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    08-21-2014
    Location
    Bristol
    MS-Off Ver
    2010
    Posts
    15

    Re: Return month and year from pivot table

    Unfortunately that won't work, I can't use the original data because of how it's setup.

    I have at the moment =INDEX((Pivots!F:F),MATCH(MAX(Pivots!G:G),Pivots!G:G,0))

    This works OK and returns the month but the pivot table is grouped by months and years, so I need it to get the year as well.

    Thanks

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Return month and year from pivot table

    show us the file without confidential information.

    please also add the desired result in your sheet.

  5. #5
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Return month and year from pivot table

    Attach a sample workbook as requested by oeldere in post#4. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  6. #6
    Registered User
    Join Date
    08-21-2014
    Location
    Bristol
    MS-Off Ver
    2010
    Posts
    15

    Re: Return month and year from pivot table

    Hello all,

    Please see the attached file.

    I would like it to return the year from F in the column C along with the month.

    Book Want Year.xlsx

    Thanks
    Last edited by potatoman; 09-08-2014 at 07:27 AM.

  7. #7
    Registered User
    Join Date
    08-21-2014
    Location
    Bristol
    MS-Off Ver
    2010
    Posts
    15

    Re: Return month and year from pivot table

    Anyone can help a poor excel user D:

+ 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. [SOLVED] Pivot table - formula/format to filter by month and year
    By HeyInKy in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-17-2014, 01:54 PM
  2. [SOLVED] run time error creating pivot table and group dates by year and month
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-15-2013, 07:25 AM
  3. How to add Month-on-Month and Year-on-Year %Variance into a pivot table
    By emeritus1812 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 06-09-2013, 02:37 AM
  4. [SOLVED] Sort by Month and year in pivot table
    By mb1074 in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 01-21-2013, 02:05 PM
  5. Trouble with Grouping by Year/Month in Pivot Table
    By mr_bear in forum Excel General
    Replies: 0
    Last Post: 04-13-2010, 03:24 PM

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