+ Reply to Thread
Results 1 to 6 of 6

Macro to filter cities

  1. #1
    Registered User
    Join Date
    03-07-2012
    Location
    Reading, England
    MS-Off Ver
    Excel 2010
    Posts
    99

    Macro to filter cities

    Hi all


    I attached an extract from the long list of companies which will be in column A of Sheet 1

    Could you please help me with a macro which finds for example, a list of cities for (25067): YEAR. MONTHLY should be ignored. Then place them in a new sheet with the name 25067, so that column A there shows code of the city and B - the name of city, ex

    Column A Column B
    A70042 Reading
    A70074 Newbury
    F70061 London
    A70035 Manchester

    Then the same will be done for Company C which has code 25070.

    It will create new Sheet 25070

    Column A Column B
    B50329 Moscow
    C50426 Novosibirsk
    F68306 St Peters
    H50324 Kiev
    K50448 Tallinn
    E68248 Vilnus
    E68249 Riga

    The whole list of companies which cities need to be placed in separate sheets will be in a Sheet 2, for example
    25067
    25070

    Thanks a lot!

    companies.xlsx

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Macro to filter cities

    Hi rafuk73,
    try it
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-07-2012
    Location
    Reading, England
    MS-Off Ver
    Excel 2010
    Posts
    99

    Re: Macro to filter cities

    Hi Nilem!

    Thanks a lot for the code!

    1) Could you please advise how to show only cities which are in the section with YEAR (MONTH should be ignored) and

    2) The list should appear only for companies which are indicated in the Sheet 2?

    THanks a lot!

    R

  4. #4
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Macro to filter cities

    then try so
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-07-2012
    Location
    Reading, England
    MS-Off Ver
    Excel 2010
    Posts
    99

    Re: Macro to filter cities

    Спасибо огромное! Выручил!!!

  6. #6
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Macro to filter cities

    На здоровье

+ 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. Replies: 1
    Last Post: 10-18-2013, 03:58 PM
  2. Excel is auto capitalizing certain cities
    By balz2thawal in forum Excel General
    Replies: 9
    Last Post: 06-21-2013, 02:13 PM
  3. Many Cities into few Regions
    By Johnny Image in forum Excel General
    Replies: 2
    Last Post: 04-17-2012, 07:25 PM
  4. Macro to show all codes for cities
    By jw01 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-25-2012, 03:21 PM
  5. [SOLVED] How do I insert map detail to a map? I.e. Cities, countries etc.
    By house_of_simone in forum Excel General
    Replies: 4
    Last Post: 07-21-2006, 10:50 AM

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