+ Reply to Thread
Results 1 to 2 of 2

Creating a list of records based upon the occurence of a value

Hybrid View

  1. #1
    Registered User
    Join Date
    01-30-2012
    Location
    Pontiac, Mi
    MS-Off Ver
    Excel 2007
    Posts
    7

    Question Creating a list of records based upon the occurence of a value

    Hi, geniuses. I have an excel spreadsheet with three columns. Column A contains a list of names, and it has a Named Range NAME. Column B contains a simple drop down with three values, blank (null), "PARK1" and "PARK2", and this also has a Named Range LOCATION. What I'd like to do is have Column C return a simple list of each name from NAME where LOCATION reads "PARK1". I'm pretty sure this involves an array formula of some kind, but I'll be darned if I can figure it out.

    Now, I have been able to accomplish this with a hidden sheet, and I do it in two steps.

    The first step is I mirror the list of names from Sheet 1's NAME onto Sheet 2's Column A, which I gave a Named Range CALCULATION, but I have a formula that checks to see if Sheet 1's LOCATION says "PARK1" in each cell, and if that column for that record does not say PARK1, Sheet 2's CALCULATION returns blank:
    IF(LOCATION="PARK1", NAME, "")
    Then I have a separate area where I have an array formula that creates a list of the visible names, and removes all the blanks, and it contains an IFERROR section to blank out the end of the list (so I don't have a few names and then a bunch of #VAL! errors in my list):
    =IFERROR(INDEX(CALCULATION, SMALL(IF(FREQUENCY(IF(CALCULATION<>"", MATCH(ROW(CALCULATION), ROW(CALCULATION)), ""), MATCH(ROW(CALCULATION), ROW(CALCULATION)))>0, MATCH(ROW(CALCULATION), ROW(CALCULATION)), ""), ROW(A1)), COLUMN(A1)), "")
    That kinda works for me, but I'm hoping to accomplish this task with one simple formula on my visible sheet, and get rid of the stupid hidden sheet altogether. Isn't there a way to do this with one formula, instead of two formulas and a hidden sheet? I've scoured Google, and can't find anyone else that's solved this issue. Or even, for that matter, ASKED the question about solving a problem like this. Thanks a million, guys!

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Creating a list of records based upon the occurence of a value

    Hello
    Take a look at the attached file. It contains two possible ways of using Array formulas to achieve what you stated:

    What I'd like to do is have Column C return a simple list of each name from NAME where LOCATION reads "PARK1"
    One is a Table and the other a normal range of data.

    Hope it's what you're looking for.
    DBY
    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