• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Extract data based on criteria

Hello Everyone,

I want to extract data from a table, Where I select an item, it will extract the available place and amount. Attached kindly find the file.

Many many thanks in advance.
 

Attachments

  • Extract Data Based of Criteria.xlsx
    10.6 KB · Views: 13
Formula solution with Conditional Formatting for coloring cells and border.

1] In B21, criteria enter : "Manago", "Apple", "Banana" and "Guava"

2] In D22, copied down to D26 :

=IFERROR(INDEX(C$3:G$3,AGGREGATE(15,6,COLUMN(A$1:E$1)/(INDEX(C$4:G$7,MATCH(B$21,B$4:B$7,0),0)>0),ROW(A1))),"")

3] In E22, copied down to E26 :

=IFERROR(INDEX(C$4:G$7,MATCH(B$21,B$4:B$7,0),AGGREGATE(15,6,COLUMN(A1:E1)/(INDEX(C$4:G$7,MATCH(B$21,B$4:B$7,0),0)>0),ROW(A1))),"")

4] Conditional formatting for coloring cells and border to D22:D26 and E22:E26, please see :

60999

Regards
Bosco
 
maniknandi
Your: Without borders and colors?
You asked with those parameters...
( but You can add as many row 3 criteria as You needs )


Seems that others have something else for You.
 
I was trying to output the arrays of up to 5 values using a single array formula and failed using CSE though it worked with Dynamic Arrays.
Bosco's strategy of outputting each value independently would seem to sort the problem.
I have arranged things so that multiple copies of the dialogue will work if it copied and pasted but that may not be required.
 
Back
Top