+ Reply to Thread
Results 1 to 8 of 8

Trying to create a list using zip codes.

  1. #1
    Registered User
    Join Date
    08-24-2017
    Location
    Hickory Nut Gorge, NC
    MS-Off Ver
    Excel 2016
    Posts
    4

    Trying to create a list using zip codes.

    First of all, I took an Excel class in '05 and no longer have my workbooks and Google hasn't helped me answer this question. I did find this forum and hope someone can help me with this!

    I manage a small hotel. I am trying to compile a list of our guests by zip code from the most frequent guest by zip code to the least frequent. The reason is to target my marketing.

    My reservation system uses Excel to generate reports, I can delete all the irrelevant columns leaving me with only a list of zip codes. However I have no clue what formula to use or how. I've been messing with it for several hours today and am not having any luck. I have Excel 2016.

    Thanks!!!

  2. #2
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Trying to create a list using zip codes.

    Hi C_Rock, welcome to the forum. Are you asking "within each zip code, which guests visit most often"? Or simply "which zip code provides the most guests"?

    BTW- A small sample workbook (NOT a picture) helps us to solve your problem quickly and accurately.
    Essentially, you're providing some “realistic” data for testing purposes.
    - Remove any sensitive or extraneous info.
    - Include examples of any variations the code or formula must address.
    - Simulate some results to demonstrate what you want.

    To attach a workbook:
    Click Edit Post (or just start a new reply.)
    Click Go Advanced
    Scroll down to Manage Attachments and click.
    Now just Browse for your file, then click Upload. Simple!
    Last edited by leelnich; 08-24-2017 at 07:45 PM.
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

  3. #3
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,012

    Re: Trying to create a list using zip codes.

    .
    Paste this into a Routine Module:

    Please Login or Register  to view this content.
    Refer to attached workbook.
    Attached Files Attached Files

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Trying to create a list using zip codes.

    Hi C Rock and welcome to the forum,

    I created a thousand (fake) Zip Codes in column A and then did a Pivot Table and Pivot Chart by using "Insert Pivot Table and Chart". I also grouped the Pivot numbers by groups of 100 to see if this makes sense. No formulas or VBA needed to do your problem. See the attached.

    You might search for Pivot Tables on YouTube and see how easy they are to create.

    Fake Zip Code Pivot Chart Grouped.xlsx
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  5. #5
    Registered User
    Join Date
    08-24-2017
    Location
    Hickory Nut Gorge, NC
    MS-Off Ver
    Excel 2016
    Posts
    4

    Re: Trying to create a list using zip codes.

    Thanks everybody! I just logged on to find your replys. I will apply your instructions later this afternoon! Fingers crossed! Thanks again...

  6. #6
    Registered User
    Join Date
    08-24-2017
    Location
    Hickory Nut Gorge, NC
    MS-Off Ver
    Excel 2016
    Posts
    4

    Re: Trying to create a list using zip codes.

    EDIT: Sorry for the dupe. I was trying to reply to leelnich.

    Thanks! I would like a list of which zip codes provide the most guests. Even if a zip only has 1 guest I still want to know it.

    C_Rock
    Last edited by C_Rock; 08-25-2017 at 12:39 PM.

  7. #7
    Registered User
    Join Date
    08-24-2017
    Location
    Hickory Nut Gorge, NC
    MS-Off Ver
    Excel 2016
    Posts
    4

    Re: Trying to create a list using zip codes.

    Quote Originally Posted by C_Rock View Post
    First of all, I took an Excel class in '05 and no longer have my workbooks and Google hasn't helped me answer this question. I did find this forum and hope someone can help me with this!

    I manage a small hotel. I am trying to compile a list of our guests by zip code from the most frequent guest by zip code to the least frequent. The reason is to target my marketing.

    My reservation system uses Excel to generate reports, I can delete all the irrelevant columns leaving me with only a list of zip codes. However I have no clue what formula to use or how. I've been messing with it for several hours today and am not having any luck. I have Excel 2016.

    Thanks!!!
    Thanks! I would like a list of which zip codes provide the most guests. Even if a zip only has 1 guest I still want to know it.

    C_Rock

  8. #8
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Trying to create a list using zip codes.

    Hi all- I used a named range to simplify maintenance. Select you zip codes, then click Define Name on the Formula tab and type in Zips.
    Now paste this ARRAY FORMULA* in C2 and copy down:
    *Always press CTRL+SHIFT+ENTER to confirm entry after pasting or editing an ARRAY FORMULA in the Formula Bar.
    When copying the formula to other cells, make sure the copied cell is not part of the Paste Area.
    Please Login or Register  to view this content.
    Then paste this in D2 and copy down:
    Please Login or Register  to view this content.
    Row\Col
    A
    B
    C
    D
    1
    Zips
    Zips by Frequency
    Count
    2
    90210
    90210
    7
    3
    90212
    90212
    4
    4
    90210
    90211
    2
    5
    90211
    6
    90210
    7
    90211
    8
    90212
    9
    90212
    10
    90210
    11
    90212
    12
    90210
    13
    90210
    14
    90210
    Last edited by leelnich; 08-25-2017 at 01:55 PM.

+ 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] Need to create unique pin codes
    By Tsheik in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 09-21-2021, 12:31 AM
  2. Replies: 2
    Last Post: 03-16-2014, 10:04 AM
  3. Filter Zip Codes from a list codes
    By jaugent27 in forum Excel General
    Replies: 3
    Last Post: 06-11-2013, 02:01 PM
  4. Replies: 1
    Last Post: 04-15-2013, 05:16 PM
  5. [SOLVED] create list of unique staff numbers with unique work codes
    By shaz0503 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-01-2013, 08:57 PM
  6. Create random codes
    By yrndtn in forum Excel General
    Replies: 8
    Last Post: 06-01-2010, 05:08 PM
  7. Trying to create codes
    By baf3472 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-29-2007, 12:29 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