+ Reply to Thread
Results 1 to 8 of 8

Turning columns into tables

  1. #1
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,990

    Turning columns into tables

    I'm extracting information from a pivot table to get to the source data. When I do my extract I have 23 columns. Two of them need extensive work, and I'd like to know how to work them. I've attached a simplified example.

    The column labled "Mos2" has some items I need to use as column headings in my current table: Budget, Enc/Pre-Enc, Projected, and the numbers 01-12, which are the Expenses, by month.

    So, I would need 4 columns to be made, and each would have to line up with the amounts reflected in the "SumOfMONETARY_AMOUNT" column, but on the same lines the amounts orginally appeared on (since there are 22 other columns of data that apply to this same information). The columns would be Expense (with the months under it), then Budget, Enc/Pre-Enc, and Projected and then ideally also a Lapse column, which would be Budget - (Expensed + Enc/Pre-Enc)

    The "01-12" would need to be converted to Months (01= January, etc).

    I have ideas on how to do the 01-12, but no idea on how to do the rest. Any help would be greatly appreciated.
    Attached Files Attached Files
    Last edited by jomili; 10-07-2010 at 03:33 PM.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Turning columns into tables

    Hi

    How about extending your example file to have >1 items, and produce an output sheet based on that data so we can see exactly what things should look like.

    rylo

  3. #3
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,990

    Re: Turning columns into tables

    Sure. Sorry I didn't think of that before.
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,990

    Re: Turning columns into tables

    Sorry again. My last spreadsheet was way wrong. I hadn't had my coffee. Now I have.
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Turning columns into tables

    Hi

    Must be missing something here. You seem to have done a simple fix that, if the formula in column K is corrected, would give you what you require. So exactly what is it that you want done? Do you want a macro that will insert the columns and the formulas?

    Also, in your original post you mention converting 0-12 into months. I don't see anything like that in the example file data or output.

    rylo

  6. #6
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,990

    Re: Turning columns into tables

    Rylo,

    Thanks for looking at it. No, I didn't do the conversion of the 1-12 to months in my example. They exist in column C, and I'd want them converted.

    What I did in my example was to formulaicly create 4 columns for my Enc/Pre-Enc, PROJECTED, BUDGETed, and Expensed amounts. I'd like to be able to do all of that via a macro, AND within column C convert 01-12 to months.

  7. #7
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Turning columns into tables

    Hi

    Finally found the numbers in column C.

    Try

    Please Login or Register  to view this content.
    rylo

  8. #8
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,990

    Re: Turning columns into tables

    I just wanted to pop in and express my apologies for not replying in so long. I've been pulled away on other projects (they're like a Hydra; you start chopping on one and two more grow in it's place).

    Rylo, I haven't checked your code yet, but based on your past examples I have no doubts it will work wonderfully.

    I'll try to get back to this, hopefully next week.

+ 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