<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Lookup values in a range using two or more criteria and return multiple matches in excel</title> <atom:link href="http://www.get-digital-help.com/2010/01/03/lookup-values-in-a-range-using-two-or-more-criteria-and-return-multiple-matches-in-excel/feed/" rel="self" type="application/rss+xml" /><link>http://www.get-digital-help.com/2010/01/03/lookup-values-in-a-range-using-two-or-more-criteria-and-return-multiple-matches-in-excel/</link> <description>Quality excel resource</description> <lastBuildDate>Sat, 11 Feb 2012 15:14:13 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Jarod</title><link>http://www.get-digital-help.com/2010/01/03/lookup-values-in-a-range-using-two-or-more-criteria-and-return-multiple-matches-in-excel/comment-page-1/#comment-20874</link> <dc:creator>Jarod</dc:creator> <pubDate>Thu, 24 Mar 2011 16:45:29 +0000</pubDate> <guid
isPermaLink="false">http://www.get-digital-help.com/?p=3323#comment-20874</guid> <description>Nevermind!  I searched some of the other posts on this site and found that a UDF would do the trick.
THANKS!</description> <content:encoded><![CDATA[<p>Nevermind!  I searched some of the other posts on this site and found that a UDF would do the trick.</p><p>THANKS!</p> ]]></content:encoded> </item> <item><title>By: Jarod</title><link>http://www.get-digital-help.com/2010/01/03/lookup-values-in-a-range-using-two-or-more-criteria-and-return-multiple-matches-in-excel/comment-page-1/#comment-20868</link> <dc:creator>Jarod</dc:creator> <pubDate>Thu, 24 Mar 2011 14:34:36 +0000</pubDate> <guid
isPermaLink="false">http://www.get-digital-help.com/?p=3323#comment-20868</guid> <description>Hello, not sure if this post is followed any more, but I am wondering if it is possible to complete the search as described above and concatenate all results into one cell?  (I realize depending on the search, we could be looking at hitting cell text limits)
Thanks for any help you can provide!</description> <content:encoded><![CDATA[<p>Hello, not sure if this post is followed any more, but I am wondering if it is possible to complete the search as described above and concatenate all results into one cell?  (I realize depending on the search, we could be looking at hitting cell text limits)</p><p>Thanks for any help you can provide!</p> ]]></content:encoded> </item> <item><title>By: Ian</title><link>http://www.get-digital-help.com/2010/01/03/lookup-values-in-a-range-using-two-or-more-criteria-and-return-multiple-matches-in-excel/comment-page-1/#comment-2922</link> <dc:creator>Ian</dc:creator> <pubDate>Thu, 25 Mar 2010 10:03:44 +0000</pubDate> <guid
isPermaLink="false">http://www.get-digital-help.com/?p=3323#comment-2922</guid> <description>Thank you.  That is exactly what I was looking for.  And, even better, I think I&#039;m beginning to understand how these things work, as well.
Thanks again.
Ian</description> <content:encoded><![CDATA[<p>Thank you.  That is exactly what I was looking for.  And, even better, I think I'm beginning to understand how these things work, as well.</p><p>Thanks again.</p><p>Ian</p> ]]></content:encoded> </item> <item><title>By: Oscar</title><link>http://www.get-digital-help.com/2010/01/03/lookup-values-in-a-range-using-two-or-more-criteria-and-return-multiple-matches-in-excel/comment-page-1/#comment-2912</link> <dc:creator>Oscar</dc:creator> <pubDate>Tue, 23 Mar 2010 21:50:20 +0000</pubDate> <guid
isPermaLink="false">http://www.get-digital-help.com/?p=3323#comment-2912</guid> <description> Ian,
Try this:
=INDEX(tbl, (SMALL(IF(COUNTIF(search_col, tbl)&gt;0, (COLUMN(tbl)-MIN(COLUMN(tbl))+1)+(ROW(tbl)-MIN(ROW(tbl))+1)/65536), ROW(A1))-SMALL(IF(COUNTIF(search_col, tbl)&gt;0, COLUMN(tbl)-MIN(COLUMN(tbl))+1), ROW(A1)))*65536, SMALL(IF(COUNTIF(search_col, tbl)&gt;0, COLUMN(tbl)-MIN(COLUMN(tbl))+1), ROW(A1))+1) + CTRL + SHIFT + ENTER. Copy cell and paste it down as far as needed.
Thanks for commenting!</description> <content:encoded><![CDATA[<p>Ian,</p><p>Try this:</p><p>=INDEX(tbl, (SMALL(IF(COUNTIF(search_col, tbl)>0, (COLUMN(tbl)-MIN(COLUMN(tbl))+1)+(ROW(tbl)-MIN(ROW(tbl))+1)/65536), ROW(A1))-SMALL(IF(COUNTIF(search_col, tbl)>0, COLUMN(tbl)-MIN(COLUMN(tbl))+1), ROW(A1)))*65536, SMALL(IF(COUNTIF(search_col, tbl)>0, COLUMN(tbl)-MIN(COLUMN(tbl))+1), ROW(A1))+1) + CTRL + SHIFT + ENTER. Copy cell and paste it down as far as needed.</p><p>Thanks for commenting!</p> ]]></content:encoded> </item> <item><title>By: Ian</title><link>http://www.get-digital-help.com/2010/01/03/lookup-values-in-a-range-using-two-or-more-criteria-and-return-multiple-matches-in-excel/comment-page-1/#comment-2900</link> <dc:creator>Ian</dc:creator> <pubDate>Mon, 22 Mar 2010 10:36:24 +0000</pubDate> <guid
isPermaLink="false">http://www.get-digital-help.com/?p=3323#comment-2900</guid> <description>Sorry, I wasn&#039;t clear, although this helps a lot with a couple of other things I&#039;m looking at.
In the example you used, the formula effectively searches each row in the table in turn so that the first result is from the third pair of columns (2009 March), the second result from the first pair of columns (2009 January), the third result from the second pair of columns (2009 February).  What this does is return all relevant results from the first row, then all relevant resutls from the second row, and so on.
What I&#039;m trying to do is to return all relevant result from the first pair of columns, then all relevant results from the second pair of columns, then all relevant results from the third pair of columns, and so on (there could be 4 or 5 pairs of columns, possibly more), where for each pair of columns the results are returned reading down the columns.  This would produce a set of results for your example which looks like:
Johnson
Miller
Taylor
Lopez
and so on and if South Dakota was added to the list of criteria, the results would look like:
Johnson
Williams
Miller
Wilson
Taylor
Lopez
I hope that makes more sense.  But is it possible to do it like that?  Thanks for your help so far.
Regards,
Ian</description> <content:encoded><![CDATA[<p>Sorry, I wasn't clear, although this helps a lot with a couple of other things I'm looking at.</p><p>In the example you used, the formula effectively searches each row in the table in turn so that the first result is from the third pair of columns (2009 March), the second result from the first pair of columns (2009 January), the third result from the second pair of columns (2009 February).  What this does is return all relevant results from the first row, then all relevant resutls from the second row, and so on.</p><p>What I'm trying to do is to return all relevant result from the first pair of columns, then all relevant results from the second pair of columns, then all relevant results from the third pair of columns, and so on (there could be 4 or 5 pairs of columns, possibly more), where for each pair of columns the results are returned reading down the columns.  This would produce a set of results for your example which looks like:</p><p>Johnson<br
/> Miller<br
/> Taylor<br
/> Lopez</p><p>and so on and if South Dakota was added to the list of criteria, the results would look like:</p><p>Johnson<br
/> Williams<br
/> Miller<br
/> Wilson<br
/> Taylor<br
/> Lopez</p><p>I hope that makes more sense.  But is it possible to do it like that?  Thanks for your help so far.</p><p>Regards,</p><p>Ian</p> ]]></content:encoded> </item> <item><title>By: Oscar</title><link>http://www.get-digital-help.com/2010/01/03/lookup-values-in-a-range-using-two-or-more-criteria-and-return-multiple-matches-in-excel/comment-page-1/#comment-2881</link> <dc:creator>Oscar</dc:creator> <pubDate>Fri, 19 Mar 2010 21:17:09 +0000</pubDate> <guid
isPermaLink="false">http://www.get-digital-help.com/?p=3323#comment-2881</guid> <description>Ian,
Question 1:
&lt;em&gt;I would like the results to appear in column-row order rather than the row-column order that appears here but can&#039;t work out how to do this let alone whether it is even possible.&lt;/em&gt;
Answer 1:  The results are in a column in the above example. I guess you want them in a row?
Copy this formula into a cell:
=INDEX(tbl, SMALL(IF(COUNTIF(search_col, tbl)&gt;0, ROW(tbl)-MIN(ROW(tbl))+1), COLUMN(A1)), (SMALL(IF(COUNTIF(search_col, tbl)&gt;0, ((ROW(tbl)-MIN(ROW(tbl))+1)+(COLUMN(tbl)-MIN(COLUMN(tbl))+1)/16384)*1), COLUMN(A1))-SMALL(IF(COUNTIF(search_col, tbl)&gt;0, ROW(tbl)-MIN(ROW(tbl))+1), COLUMN(A1)))*16384+1) + CTRL + SHIFT + ENTER. Copy the cell and paste it to the right as far as needed.</description> <content:encoded><![CDATA[<p>Ian,</p><p>Question 1:</p><p><em>I would like the results to appear in column-row order rather than the row-column order that appears here but can't work out how to do this let alone whether it is even possible.</em></p><p>Answer 1:  The results are in a column in the above example. I guess you want them in a row?</p><p>Copy this formula into a cell:</p><p>=INDEX(tbl, SMALL(IF(COUNTIF(search_col, tbl)&gt;0, ROW(tbl)-MIN(ROW(tbl))+1), COLUMN(A1)), (SMALL(IF(COUNTIF(search_col, tbl)&gt;0, ((ROW(tbl)-MIN(ROW(tbl))+1)+(COLUMN(tbl)-MIN(COLUMN(tbl))+1)/16384)*1), COLUMN(A1))-SMALL(IF(COUNTIF(search_col, tbl)&gt;0, ROW(tbl)-MIN(ROW(tbl))+1), COLUMN(A1)))*16384+1) + CTRL + SHIFT + ENTER. Copy the cell and paste it to the right as far as needed.</p> ]]></content:encoded> </item> <item><title>By: Ian</title><link>http://www.get-digital-help.com/2010/01/03/lookup-values-in-a-range-using-two-or-more-criteria-and-return-multiple-matches-in-excel/comment-page-1/#comment-2873</link> <dc:creator>Ian</dc:creator> <pubDate>Thu, 18 Mar 2010 16:13:37 +0000</pubDate> <guid
isPermaLink="false">http://www.get-digital-help.com/?p=3323#comment-2873</guid> <description>Thanks for all the examples you&#039;ve provided.  I&#039;ve been looking for a lookup like this one for some time and this does almost what I want.  Unfortunately, I can&#039;t make enough sense of what happens internally to adapt it exactly - it feels like trying to visualise 4 dimensions in a 3 dimensional world.  Ideally, I would like the results to appear in column-row order rather than the row-column order that appears here but can&#039;t work out how to do this let alone whether it is even possible.  I also can&#039;t work out why various bits related to the column number in the index function are multiplied or divided by 16384.  Can anyone point me in the right direction on this?
I&#039;d also quite like to find a way of sorting the results by search term so that, for example, all the results for the first search term (here, Maine) are listed, followed by all the results for the second search term (here South Carolina), and so on.  Again, is this possible?
I also found that changing the 1 prior to the /16384 had the same effect as changing the 1 after the *16384 but am not sure whether this was simply fortuitous or not.
Regards,
Ian</description> <content:encoded><![CDATA[<p>Thanks for all the examples you've provided.  I've been looking for a lookup like this one for some time and this does almost what I want.  Unfortunately, I can't make enough sense of what happens internally to adapt it exactly - it feels like trying to visualise 4 dimensions in a 3 dimensional world.  Ideally, I would like the results to appear in column-row order rather than the row-column order that appears here but can't work out how to do this let alone whether it is even possible.  I also can't work out why various bits related to the column number in the index function are multiplied or divided by 16384.  Can anyone point me in the right direction on this?</p><p>I'd also quite like to find a way of sorting the results by search term so that, for example, all the results for the first search term (here, Maine) are listed, followed by all the results for the second search term (here South Carolina), and so on.  Again, is this possible?</p><p>I also found that changing the 1 prior to the /16384 had the same effect as changing the 1 after the *16384 but am not sure whether this was simply fortuitous or not.</p><p>Regards,</p><p>Ian</p> ]]></content:encoded> </item> </channel> </rss>
