+ Reply to Thread
Results 1 to 4 of 4

How to normalise (unpivot) 13 columns from 16 in vba?

  1. #1
    Registered User
    Join Date
    06-19-2015
    Location
    Bogota
    MS-Off Ver
    Officce 365
    Posts
    54

    How to normalise (unpivot) 13 columns from 16 in vba?

    Hi experts!

    I have this table and I would like to replace JAN, FEB, MAR... for only one column called MONTH with a macro

    How to normalise (unpivot) 16 columns.png

    You can see also a TOTAL column (which is the total value for the whole year that's not always a sum of months) that I am thinking that it would be better to include in the MONTH column in order to not have those values for each month row once is normalised, what do you suggest?

    I have seen some macros in the internet but they are exceding by far my VBA's knowledge and skills and I can't make them work. I tried for example this one http://dailydoseofexcel.com/archives...ivot-shootout/ but I had no success.

    Many thanks for your help in advance

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: How to normalise (unpivot) 13 columns from 16 in vba?

    Don't know if this still works http://www.tek-tips.com/faqs.cfm?fid=5287

    You could eventually record the macro?

  3. #3
    Registered User
    Join Date
    06-19-2015
    Location
    Bogota
    MS-Off Ver
    Officce 365
    Posts
    54

    Re: How to normalise (unpivot) 13 columns from 16 in vba?

    Unfortunately It doesn't help me. I knew that procedure but is manual (and I need it in a macro) and it only works for this kind of structure with only one descriptive column (like "Acct"):
    Acct Jan Feb Mar
    Acct01 234 123 567
    Acct02 345 234 678
    Acct03 456 345 789
    Mine has more than one of those descriptive fields: Indicator, Year, Total and Channel

    The ideal output would be a table like:
    Channel | Indicator | Year | Month (including total)

    Thanks for you help
    Last edited by gerotutu; 08-14-2015 at 12:39 PM.

  4. #4
    Registered User
    Join Date
    06-19-2015
    Location
    Bogota
    MS-Off Ver
    Officce 365
    Posts
    54

    Re: How to normalise (unpivot) 13 columns from 16 in vba?

    any help on this?

+ 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. Unpivot Data
    By naveeddil in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 07-07-2015, 08:04 AM
  2. Unpivot and stack data
    By yching in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-14-2015, 05:18 AM
  3. how to unpivot
    By naveendk55 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-23-2014, 09:55 AM
  4. Unpivot Data
    By Olly in forum Tips and Tutorials
    Replies: 0
    Last Post: 04-02-2014, 05:33 PM
  5. Normalise a pivot table - this is an easy one for you guys.
    By imeldajunk in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-12-2014, 11:25 AM
  6. Replies: 1
    Last Post: 04-02-2013, 07:57 AM
  7. Need 'unpivot' help for attached spreadsheet data.
    By ReneeM787 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-09-2012, 12:21 PM

Tags for this Thread

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