+ Reply to Thread
Results 1 to 12 of 12

Lookup criteria from dropdown list and return row

  1. #1
    Registered User
    Join Date
    04-02-2014
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    79

    Lookup criteria from dropdown list and return row

    Hi,

    pls help me with a excel formula to get result as in the attached file.I tried using autofilter but not able to acheive.

    Thanks
    Shreeja
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Lookup criteria from dropdown list and return row

    do you want MACRO or Function ?
    Thanks - Naveed
    -----------------------------
    If the suggestion helps you, then Click * to Add Reputation
    To Attach File: Go Advanced>>Manage Attachments>>Add Files (In Top Right Corner)>>SelectFiles>>.........Locate Your File(s)>>Upload Files>>Done (In Bottom Right)
    1. Use [code] code tags [\code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  3. #3
    Registered User
    Join Date
    04-02-2014
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    79

    Re: Lookup criteria from dropdown list and return row

    excel formulas will be good.

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Lookup criteria from dropdown list and return row

    In C17 Cell - Array Formula - Requires CTRL+SHIFT+ENTER


    =IFERROR(INDEX($C$2:$E$11,SMALL(IF($C$2:$C$11=$C$14,ROW($C$2:$C$11)-MIN(ROW($C$2:$C$11))+1),ROWS($1:1)),COLUMNS($A:A)),"")


    Drag it down and right...

    Array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  5. #5
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Lookup criteria from dropdown list and return row

    Try this Attached macro file

    is it what u looking for
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-02-2014
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    79

    Re: Lookup criteria from dropdown list and return row

    Thanks sixth sense, it works well..
    But I need to pull only "PENDING" from HEADER 2. this formula pulls all rows based on drop down criteria from HEADER 1.
    I need to filter drop down criteria from HEADER 1 and criteria "PENDING" (fixed) from HEADER 2 and return entire available rows.

  7. #7
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Lookup criteria from dropdown list and return row

    I Just add that criteria to Sixthsense Function

    =IFERROR(INDEX($C$2:$E$11,SMALL(IF(($C$2:$C$11=$C$14)*($D$2:$D$11="PENDING"),ROW($C$2:$C$11)-MIN(ROW($C$2:$C$11))+1),ROWS($1:1)),COLUMNS($A:A)),"")

    replace that with above

  8. #8
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Lookup criteria from dropdown list and return row

    Quote Originally Posted by shreeja178 View Post
    But I need to pull only "PENDING" from HEADER 2. this formula pulls all rows based on drop down criteria from HEADER 1.
    Try this revised formula

    =IFERROR(INDEX($C$2:$E$11,SMALL(IF(($C$2:$C$11=$C$14)*($D$2:$D$11="Pending"),ROW($C$2:$C$11)-MIN(ROW($C$2:$C$11))+1),ROWS($1:1)),COLUMNS($A:A)),"")


    Edit: Hm... Naveed Raza has already given the addition of condition
    Last edited by :) Sixthsense :); 11-04-2014 at 03:01 AM.

  9. #9
    Registered User
    Join Date
    04-02-2014
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    79

    Re: Lookup criteria from dropdown list and return row

    Thanks Naveed & thanks Sixth sense.. both works perfectly.

  10. #10
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Lookup criteria from dropdown list and return row

    Glad to Help & thanks for Rep

  11. #11
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: Lookup criteria from dropdown list and return row

    hI, Try this in C17 and drag it across and down

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Click just below left if it helps, Boo?ath?

  12. #12
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Lookup criteria from dropdown list and return row

    Quote Originally Posted by Naveed Raza View Post
    Glad to Help & thanks for Rep
    Ha ha No rep for me (from the OP) lol

+ 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. [SOLVED] Lookup/dropdown/Return fuctions
    By LEEDA12345 in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 12-06-2013, 10:29 AM
  2. Replies: 0
    Last Post: 06-05-2013, 12:36 PM
  3. Return Data from Dropdown List if they meet the specified criteria's
    By GenericPat in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-16-2012, 11:11 AM
  4. [SOLVED] Perform Lookup for Dropdown List
    By jpmiller0530 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-09-2012, 09:38 PM
  5. Dropdown list and lookup function
    By hasin in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-19-2008, 03:41 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