+ Reply to Thread
Results 1 to 4 of 4

Auto Populate a list based off of certain criteria

  1. #1
    Registered User
    Join Date
    12-02-2011
    Location
    ohio
    MS-Off Ver
    Excel 2007
    Posts
    9

    Exclamation Auto Populate a list based off of certain criteria

    I'm trying to populate a list of security identifiers based upon a certain criteria. On the "Status" tab, I want to populate column A with the value from column A on the OUTPUT tab if the formulas in column N, Q, T, W, or Z on the output tab result in "Y". But I'm trying to only include the CUSIP whose threshold formula equaled a Y. The worksheet usually has thousands of lines of data so I have to create a list of only the securities that need to be looked into. Any ideas?
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Auto Populate a list based off of certain criteria

    I am not sure if you mean that a "Y" should appear in an or in ALL of those columns.. and what you mean by only include CUSIP whose threshold formula equaled Y....

    Here is what I would do, nonetheless.

    Use a helper column in the OUTPUT tab, in AA28, something like:

    =IF(AND(N28="Y",Q28="Y",T28="Y",W28="Y",Z28="Y"),COUNT(AA$27:AA27)+1,"")

    this check that all fields have a "Y"... can be altered to OR to check if any have a "Y".

    Copy down formula.

    Then in the other sheet enter formula:

    =IF(AND(N28="Y",Q28="Y",T28="Y",W28="Y",Z28="Y"),COUNT(AA$27:AA27)+1,"")

    copied down to get all matches...
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    12-02-2011
    Location
    ohio
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Auto Populate a list based off of certain criteria

    I guess I'm first trying to populate column A on the status tab with the cusip from the output tab whose formula in column N of that tab resulted in Y, if not then the cusip would not show up on the status tab. I think a macro would probably work best for this but I am unsure of how to write it. After column B on the status tab populates then I would be able to run a vlookup for the results in the other columns for that particular cusip, not sure if that helps.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Auto Populate a list based off of certain criteria

    All you would need to do is adjust the helper formula to:

    =IF(N28="Y",COUNT(AA$27:AA27)+1,"")

    copied down

    The formula in the Status tab remains the same... just copy it down as far as you want.

+ 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