+ Reply to Thread
Results 1 to 14 of 14

How do I organize my data in this way

  1. #1
    Registered User
    Join Date
    01-06-2009
    Location
    fdsafdsafds
    MS-Off Ver
    Excel 2003
    Posts
    10

    How do I organize my data in this way

    I'm doing this database for spanish boats. The Columns are Boat name, Port, Boat type (trawler or seiner) and boat length. I have all this data entered but I need to organize it in the following way: I need to list for each port how many boats it has within certain length values, ie 10-14m, 14-23m, etc. I can't figure out how to get it to organize it like this!! I tried putting on a filter for the values I want and then using the subtotal thing but when I use it it randomly removes certain ports from the list. Doing that worked perfectly for counting the boat totals for each port, and the totals for each type of boat in each port but as soon as I start filtering by length it goes wacky and decides to not display many of the ports. Please help!

  2. #2
    Registered User
    Join Date
    01-06-2009
    Location
    fdsafdsafds
    MS-Off Ver
    Excel 2003
    Posts
    10
    Sorry here's the file, I need to fill in the "port, trawler, seiners" tab. Thanks!
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    At first sight a Pivot Table might be what you want, but I'm not yet familiar with the 2007 version of Pivot Tables

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Summarizing data by category

    Have you considered using a Pivot Table to summarize the data?

    Using your posted workbook....
    I created a lookup table to translate boat lengths to length categories.
    I added a column of formulas that reference that lookup table.
    Then, I created a Pivot Table using those categories

    I attached the edited file to this post (I had to use the XLSX file converter
    because I have Excel 2003...Hopefully, the Pivot Table will convert properly)

    Does that give you something to work with?
    Attached Files Attached Files
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  5. #5
    Registered User
    Join Date
    11-25-2008
    Location
    washington
    Posts
    24
    I think this should work for you.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    01-06-2009
    Location
    fdsafdsafds
    MS-Off Ver
    Excel 2003
    Posts
    10
    Quote Originally Posted by Ron Coderre View Post
    Have you considered using a Pivot Table to summarize the data?

    Using your posted workbook....
    I created a lookup table to translate boat lengths to length categories.
    I added a column of formulas that reference that lookup table.
    Then, I created a Pivot Table using those categories

    I attached the edited file to this post (I had to use the XLSX file converter
    because I have Excel 2003...Hopefully, the Pivot Table will convert properly)

    Does that give you something to work with?
    That looks really good but I need it to list the number of boats per port in each length range for each boat type, one listing for trawler and one for seiner. I don't really know how to do what you did.
    Last edited by CaptainGarry; 01-06-2009 at 04:19 PM.

  7. #7
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Summarizing data by category

    I don't have Excel 2007....so I'll have to be generic (read "vague"):
    Find the listing of Pivot Table fields and drag the Boat Type field into
    the left section of the pivot table....between Port and LenType.

    Does that help?

  8. #8
    Registered User
    Join Date
    01-06-2009
    Location
    fdsafdsafds
    MS-Off Ver
    Excel 2003
    Posts
    10
    That's really close, is there a way to get it to display zero values instead of just omitting them?

  9. #9
    Registered User
    Join Date
    01-06-2009
    Location
    fdsafdsafds
    MS-Off Ver
    Excel 2003
    Posts
    10
    Quote Originally Posted by ExcelFed View Post
    I think this should work for you.
    Not sure if its displaying correctly its showing vessel names for each port and all the ports aren't displayed. The vessel names are unimportant.

  10. #10
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Displaying zero values in an XL2007 pivot table

    Not sure, my friend....THAT would be a question for the Excel 2007 forum.

  11. #11
    Registered User
    Join Date
    01-06-2009
    Location
    fdsafdsafds
    MS-Off Ver
    Excel 2003
    Posts
    10
    Alright I will ask in that forum. Much thanks for the help!

  12. #12
    Registered User
    Join Date
    01-06-2009
    Location
    fdsafdsafds
    MS-Off Ver
    Excel 2003
    Posts
    10
    Quote Originally Posted by Ron Coderre View Post
    Have you considered using a Pivot Table to summarize the data?

    Using your posted workbook....
    I created a lookup table to translate boat lengths to length categories.
    I added a column of formulas that reference that lookup table.
    Then, I created a Pivot Table using those categories

    I attached the edited file to this post (I had to use the XLSX file converter
    because I have Excel 2003...Hopefully, the Pivot Table will convert properly)

    Does that give you something to work with?
    I switched to office 2003 can you send me the 2003 file

  13. #13
    Registered User
    Join Date
    01-06-2009
    Location
    fdsafdsafds
    MS-Off Ver
    Excel 2003
    Posts
    10
    Quote Originally Posted by Ron Coderre View Post
    Have you considered using a Pivot Table to summarize the data?

    Using your posted workbook....
    I created a lookup table to translate boat lengths to length categories.
    I added a column of formulas that reference that lookup table.
    Then, I created a Pivot Table using those categories

    I attached the edited file to this post (I had to use the XLSX file converter
    because I have Excel 2003...Hopefully, the Pivot Table will convert properly)

    Does that give you something to work with?
    Ok I got it finished now. Can you explain further how you made the lookup table? How do you define the categories? I'm pretty sure the functions are the same in both versions

  14. #14
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    VLOOKUP Explanation

    First, search Excel Help for VLOOKUP and study the examples. Especially, read the Remarks section. Also, see Debra Dalgleish's coverage of how that
    function works:
    http://www.contextures.com/xlFunctions02.html

    Then post back if you have more questions.

+ 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