+ Reply to Thread
Results 1 to 5 of 5

Formula for Filling Data based on Criteria from a Drop Down

  1. #1
    Forum Contributor
    Join Date
    11-23-2013
    Location
    San Diego
    MS-Off Ver
    Excel 2013
    Posts
    457

    Formula for Filling Data based on Criteria from a Drop Down

    In my attached worksheet, I would like certain cells to populate with names based on criteria entered in a drop down menu.

    For example, in my worksheet I have a list of names in Column B, I would like Cells H2 to H4 to populate if an X is selected from any of the names listed in Column C. I would also like it to list them in order based on the Rank in column A.

    Now the final part is I would like the name to be removed from the queue list up top in column H if any text at all is entered in column D for that name.

    In Sheet 2 I've listed what my worksheet should like like if correctly done. Thanks for any help on this!
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    07-16-2012
    Location
    Newcastle upon Tyne
    MS-Off Ver
    Excel 2010
    Posts
    69

    Re: Formula for Filling Data based on Criteria from a Drop Down

    In H1 - array entered (press Ctrl+Shift+Enter instead of just enter):

    =IFERROR(INDEX($B$5:$B$14,MATCH("X",$C$5:$C$14&$D$5:$D$14,0)),"-")

    In H2 - also array entered:

    =IFERROR(INDEX($B$5:$B$14,MATCH("X",IF(COUNTIF($H$2:H2,$B$5:$B$14)>0,"zz","")&$C$5:$C$14&$D$5:$D$14,0)),"-")

    Copy H2 downward as far as required.

    (Note: this assumes that the names will always be sorted by the ranking column).
    Steve D. a.k.a. Stephen Dunn

  3. #3
    Forum Contributor
    Join Date
    11-23-2013
    Location
    San Diego
    MS-Off Ver
    Excel 2013
    Posts
    457

    Re: Formula for Filling Data based on Criteria from a Drop Down

    Quote Originally Posted by stunn View Post
    In H1 - array entered (press Ctrl+Shift+Enter instead of just enter):

    =IFERROR(INDEX($B$5:$B$14,MATCH("X",$C$5:$C$14&$D$5:$D$14,0)),"-")

    In H2 - also array entered:

    =IFERROR(INDEX($B$5:$B$14,MATCH("X",IF(COUNTIF($H$2:H2,$B$5:$B$14)>0,"zz","")&$C$5:$C$14&$D$5:$D$14,0)),"-")

    Copy H2 downward as far as required.

    (Note: this assumes that the names will always be sorted by the ranking column).
    Frickin awesome! Thanks very much

  4. #4
    Registered User
    Join Date
    07-16-2012
    Location
    Newcastle upon Tyne
    MS-Off Ver
    Excel 2010
    Posts
    69

    Re: Formula for Filling Data based on Criteria from a Drop Down

    You're welcome, thanks for the feedback.

  5. #5
    Registered User
    Join Date
    07-16-2012
    Location
    Newcastle upon Tyne
    MS-Off Ver
    Excel 2010
    Posts
    69

    Re: Formula for Filling Data based on Criteria from a Drop Down

    Improved version:
    =IFERROR(INDEX($B$5:$B$14,MATCH("X",IF(COUNTIF($H$2:H2,$B$5:$B$14)=0,$C$5:$C$14)&$D$5:$D$14,0)),"-")

+ 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. Formula for Filling Data based on Criteria from another cell
    By mlbdc2012 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-03-2015, 01:55 AM
  2. Formula for Filling Data based on Criteria from a Drop Down
    By mlbdc2012 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-02-2015, 07:58 PM
  3. [SOLVED] Formula for Filling Data based on Criteria from another cell
    By mlbdc2012 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-02-2015, 01:27 AM
  4. [SOLVED] Formula for Filling Data based on Criteria from a Drop Down
    By mlbdc2012 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-31-2015, 05:35 PM
  5. [SOLVED] Formula for Filling Data based on Criteria from a Drop Down
    By mlbdc2012 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 01-31-2015, 02:49 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