Closed Thread
Results 1 to 4 of 4

Extract values

  1. #1
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Extract values

    Looking for formula to extract values if criteria is met. There is one drop down. Letter drop-down list. Looking for a formula that will extract values in table A1:C10 if the criteria is met.

    For example, if you select letter A from the drop-down in A13 , values extracted should be:

    See attached file. Extract.Fruits.File.answer.1.xlsx

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Extract values

    In the attached file I put zero in D1 and this formula in D2:

    =IF(LEFT(A2)=$A$13,MAX(D$1:D1)+1,"")

    which is copied down to D10 (and coloured blue).

    Then I used this formula in A17:

    =IF(ROWS($1:1)>MAX($D:$D),"",INDEX(A$2:A$10,MATCH(ROWS($1:1),$D$2:$D$10,0)))

    which can be copied across and down the tan area. I've used Conditional Formatting on cells A18:B27 with a formula of =A18=A17 to change the foreground colour to the background colour, to effectively hide the values that are the same as the row above (i.e. Apples, Antioxidants etc.)

    Just change the value in the drop-down to see it all in action.

    Hope this helps.

    Pete
    Attached Files Attached Files

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Extract values

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.
    http://www.excelforum.com/showthread.php?t=1131443 [SOLVED???]
    Thread Closed.
    Ben Van Johnson

  4. #4
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Re: Extract values

    Pete_UK: works like a charm. I modified the file to achieve the desired outcome

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Match values from an Invoice list with bank extract values
    By fleyd in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-14-2016, 12:52 PM
  2. [SOLVED] Extract values (row values and column values) with formula
    By bjnockle in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 08-17-2014, 10:13 AM
  3. Replies: 2
    Last Post: 09-06-2013, 03:15 PM
  4. Replies: 5
    Last Post: 04-12-2011, 12:59 PM
  5. Macro Loop to Extract Specific Values and Min/Max Values From Column/Rows Range
    By ExcelQuestFL in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 12-19-2010, 09:19 AM
  6. Extract Unique Values, Then Extract Again to Remove Suffixes
    By Karl Burrows in forum Excel General
    Replies: 23
    Last Post: 06-25-2005, 08:05 PM

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