+ Reply to Thread
Results 1 to 6 of 6

Populate one sheet based on values in another sheet

  1. #1
    Registered User
    Join Date
    04-28-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    28

    Populate one sheet based on values in another sheet

    I newish to this,

    I have a list of 1000 stores names in one sheet of which approx 100 have an flag 'y' against them in column b.

    I need a routine to go through the list of 1000 store names and populate another sheet with the store names where the flag is 'y',

    I need to run the regularity as the list of 'flagged' stores frequently changes

    Any help gratefully appreciated

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Populate one sheet based on values in another sheet

    hi, GBR2L, please check attachment, run code "test"
    Attached Files Attached Files

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Populate one sheet based on values in another sheet

    This might best be done with formula rather than a macro.

    Assuming your stores are in "Sheet1" Column A and the flags in Column B

    With Sheet "Result"
    Use a helper column (Column A), this can be hidden.
    In B2
    Please Login or Register  to view this content.
    Drag/Fill Down as required.

    In C2 this array formula
    Please Login or Register  to view this content.
    Confirm with Ctrl+Shift+Enter not just Enter
    Drag/Fill Down as required.

    Change the flags in "Sheet1" Column B to see how it works.
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  4. #4
    Registered User
    Join Date
    08-18-2011
    Location
    LV,NV
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Populate one sheet based on values in another sheet

    Thank you for all the information, most help i've found for excel in a long time. Had one question for you though, what would the formula look like if i wanted do this with 6 columns? i have my sheet poplating the information but i can't figure out how to write the formula to remove the blanks?


    These are the six columns have about 1200 rows of information with plenty of blanks on each sheet that has been broken down into color

    a b c d e f
    CES 10 0 E4220 6/7 7.5 & 9 Black


    Thanks

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Populate one sheet based on values in another sheet

    Best that you post a sample of your workbook explaining what you intend using as a flag.
    What do you mean by "...has been broken down into color"

  6. #6
    Registered User
    Join Date
    08-18-2011
    Location
    LV,NV
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Populate one sheet based on values in another sheet

    Sorry for the long response,

    i attached my workbook with the actual data, i have the value populating into each spreadsheet i would just like to remove the blanks using the formula used above but cannot piece it together to make it remove the blanks

    Thanks
    Attached Files Attached Files

+ 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