+ Reply to Thread
Results 1 to 12 of 12

Excel 2007 : Rearranging data set

  1. #1
    Registered User
    Join Date
    07-18-2012
    Location
    Washington, DC
    MS-Off Ver
    Excel 2007
    Posts
    6

    Rearranging data set

    So basically: I'm creating a data set by adding certain cells together from another set to make new variables. The original columns are year (from 1990 to 2010), month, lbs of a certain type of fish landed (for each month), and region (as in Chesapeake Bay, Gulf of Mexico, etc.)

    I need to create a data set where I have a column for lbs of fish landed summed across all regions, for each month in that 21 year period. I've sorted by year and month so it's easy to just add, say, the numbers for all of the regions in Jan 1990 together, then Feb 1990, and so on. There's also some missing numbers for certain regions, for instance the Gulf region is missing certain years. I'm looking for a way to speed up what I'm doing instead of having to manually do a SUM function for each cell (12 months times 21 years = 252 rows, and that's just for the first type of fish).

    Sorry if this is hard to understand, I'm writing this quickly just before I leave work to let it sit overnight.

    Please ask questions to clarify anything that you don't understand (if it would help anyone understand what I'm looking for I suppose I could attach the original file, but I won't do this yet because the information may not be supposed to be sitting out on the internet), and thanks a bunch in advance. At this point I know I could do it, but it would just take quite a long time because I'm going to have to do this for a fairly large number of different types of fish.

    Thanks again.

    EDIT: Ok, I uploaded the excel file so you can look at it. Let me know if you need any more clarification.
    Attached Files Attached Files
    Last edited by mbranner; 07-19-2012 at 05:24 PM. Reason: Attached the excel file.

  2. #2
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Beginner help needed: Not sure what to put as a title.

    You could try using a pivot table, but apart from that suggestion, i think you'll need to provide a sample workbook if we are to help you out. You should strip/scramble/randomize sensitive data before uploading.

    As for tiltle, you could change it to, e.g., "Rearranging data set".
    Sincerely
    S?ren Larsen

    "Give a man a fish, and you'll feed him for a day. Give a man a fishing rod, and he'll steal your yacht!"

  3. #3
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Beginner help needed: Not sure what to put as a title.

    Hello mbranner, and welcome to the forum. Thanks for amending your title.
    Last edited by Cutter; 07-18-2012 at 07:18 PM. Reason: Removed title change request

  4. #4
    Registered User
    Join Date
    07-18-2012
    Location
    Washington, DC
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Beginner help needed: Not sure what to put as a title.

    Ok, changing the title now. I'll scramble the numbers/variables and upload it tomorrow. Thanks for the quick replies.

  5. #5
    Registered User
    Join Date
    07-18-2012
    Location
    Washington, DC
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Rearranging data set

    I just attached the file in question. Take a look at it and let me know if you have any more questions/suggestions.

  6. #6
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Rearranging data set

    Do you want a summed table on each sheet, or one table on a sheet where they are all summed?

  7. #7
    Registered User
    Join Date
    07-18-2012
    Location
    Washington, DC
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Rearranging data set

    One table where they are all summed.

  8. #8
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Rearranging data set

    It's a good case for a pivot table. Have a look at the attached:
    Attached Files Attached Files

  9. #9
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Rearranging data set

    I didn't see your latest reply before posting above example. But you could just append all your tables underneath eachother, and then use a pivottable on that new appended table.

  10. #10
    Registered User
    Join Date
    07-18-2012
    Location
    Washington, DC
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Rearranging data set

    Thanks Søren. A couple follow-ups, though.

    1. Whenever I try to click anywhere in that document, this message pops up: "PivotTable field name already exists." I changed the titles at the top of the table but now I can't edit anything.

    2. Less important, but the months are out of order in the table. I could probably figure this out if I could actually change the spreadsheet now, so don't worry about this so much.

    I'm going to try and make my own pivot table now, but this seems like a strange error to pop up.

    EDIT: This is weird. I can't close the spreadsheet you attached, and even though I can minimize it whenever I try to select a cell on another spreadsheet, yours pops up along with that same error message.
    Last edited by mbranner; 07-19-2012 at 03:33 PM.

  11. #11
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Rearranging data set

    Try from scratch again: delete all pivot tables, close everything and open you original workbook again. I'm not sure why you get that error, but what I was thinking you could do is:
    1) Append all your tables underneath eachother. Only headers in the first row!
    2) It doesn't matter how your data is sorted.
    3) Select all data at once including headers.
    4) Insert pivot table.

    If you are still running in to problems, then try to upload a workbook where you've appended all the individual tables into one.

  12. #12
    Registered User
    Join Date
    07-18-2012
    Location
    Washington, DC
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Rearranging data set

    Ok, those steps make sense. I'll try to finalize it tomorrow. Thanks a ton for the help.

    I'll mark this as solved for now, hopefully I won't have to change it.

+ 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