<?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 for Business Analyst: Ryan Kirgan's Blog</title>
	<atom:link href="http://blog.kirgs.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.kirgs.com</link>
	<description></description>
	<lastBuildDate>Wed, 03 Mar 2010 23:00:24 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on The weighing twelve (12) balls riddle &#8211; which one is a different weight? by admin</title>
		<link>http://blog.kirgs.com/2009/02/13/the-weighing-twelve-12-balls-riddle-which-one-is-a-different-weight/comment-page-1/#comment-413</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 03 Mar 2010 23:00:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kirgs.com/?p=25#comment-413</guid>
		<description>From Chaz Morantz of California Polytechnic State University...

There are 12 poker chips and one of them is different in weight than the others. Using only a calibrated balance scale, how can you determine the odd chip in only 3 weighings?
-	Step 1: Balance 2 piles of 4 chips
-	Case 1: Both Piles Level
o	Step 2: Take 3 of the 4 unknown chips and weigh against 3 of the known normals
	Case 1: Both Piles Level
•	Step 3: Take the remaining chip and weigh against a known normal to get answer
	Case 2: Piles not level
•	Take the 3 potentially light or heavy chips (you know which one they are now) and balance two of them to see which is the lighter or heaver one or if it’s the one in your hand.
-	Case 2 (Worst Case): Piles not Level
o	Identify the 4 potentially heavy and 4 potentially light chips from step 1
o	Step 2
	Side 1 of scale: 3 potentially light chips and 1 of the potentially heavy chips
	Side 2 of scale: 3 of the 4 known normal chips from step 1 and the 1 leftover potentially light chip
	Case 1: Both Piles Level
•	Step 3: Take the remaining 3 potentially heavy chips and balance 2 of them, seeing which is the heaver one or if it’s the 3rd one in your hand
	Case 2: Side 1 is higher
•	Step 3: As none of the chips on side 2 can be heavy, it must be one of the 3 potentially light chips on side 1, so do like step 3 above for them to determine the light chip
	Case 3: Side 2 is higher
•	Step 3: Since there is only one heavy chip on side 1 and one light chip on side 2, we know that one of them is the culprit, so take one of them and weigh it against a known normal chip and get your answer!
I came to this conclusion by thinking about how I wanted to have 3 chips at the end that were either all potentially heavy or potentially light. This made me want to eliminate 5 of the 8 unknowns in step 2. The key was having only one potentially heavy chip on side 1 and only one potentially light chip on side 2 so that if side 2 becomes higher, it must be one of those two chips. I kinda lucked out picking groups of 4 for step one, but I spent considerable time examining other groupings for step1 and 3 groups of 4 seemed to be getting the closest.
-Chaz Morantz

Thanks Chaz.</description>
		<content:encoded><![CDATA[<p>From Chaz Morantz of California Polytechnic State University&#8230;</p>
<p>There are 12 poker chips and one of them is different in weight than the others. Using only a calibrated balance scale, how can you determine the odd chip in only 3 weighings?<br />
-	Step 1: Balance 2 piles of 4 chips<br />
-	Case 1: Both Piles Level<br />
o	Step 2: Take 3 of the 4 unknown chips and weigh against 3 of the known normals<br />
	Case 1: Both Piles Level<br />
•	Step 3: Take the remaining chip and weigh against a known normal to get answer<br />
	Case 2: Piles not level<br />
•	Take the 3 potentially light or heavy chips (you know which one they are now) and balance two of them to see which is the lighter or heaver one or if it’s the one in your hand.<br />
-	Case 2 (Worst Case): Piles not Level<br />
o	Identify the 4 potentially heavy and 4 potentially light chips from step 1<br />
o	Step 2<br />
	Side 1 of scale: 3 potentially light chips and 1 of the potentially heavy chips<br />
	Side 2 of scale: 3 of the 4 known normal chips from step 1 and the 1 leftover potentially light chip<br />
	Case 1: Both Piles Level<br />
•	Step 3: Take the remaining 3 potentially heavy chips and balance 2 of them, seeing which is the heaver one or if it’s the 3rd one in your hand<br />
	Case 2: Side 1 is higher<br />
•	Step 3: As none of the chips on side 2 can be heavy, it must be one of the 3 potentially light chips on side 1, so do like step 3 above for them to determine the light chip<br />
	Case 3: Side 2 is higher<br />
•	Step 3: Since there is only one heavy chip on side 1 and one light chip on side 2, we know that one of them is the culprit, so take one of them and weigh it against a known normal chip and get your answer!<br />
I came to this conclusion by thinking about how I wanted to have 3 chips at the end that were either all potentially heavy or potentially light. This made me want to eliminate 5 of the 8 unknowns in step 2. The key was having only one potentially heavy chip on side 1 and only one potentially light chip on side 2 so that if side 2 becomes higher, it must be one of those two chips. I kinda lucked out picking groups of 4 for step one, but I spent considerable time examining other groupings for step1 and 3 groups of 4 seemed to be getting the closest.<br />
-Chaz Morantz</p>
<p>Thanks Chaz.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Matching data in a table in Excel® using INDEX and MATCH (- a VLOOKUP alternative) by ryankirgan</title>
		<link>http://blog.kirgs.com/2009/02/02/matching-data-in-a-table-in-excel%c2%ae-using-index-and-match-a-vlookup-alternative/comment-page-1/#comment-347</link>
		<dc:creator>ryankirgan</dc:creator>
		<pubDate>Thu, 23 Apr 2009 06:22:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kirgs.com/?p=3#comment-347</guid>
		<description>I thought about this a bit more...

If you don&#039;t want to use INDEX() and MATCH() you might like to try:

=SUMPRODUCT(($A2=dataName)*(B$1=dataID)*(dataResult)) in B2.  It&#039;s not an array formula (so no Ctrl + Shift + Enter) and it&#039;s a lot more intuitive.

Where there&#039;s no match, you&#039;ll see a 0.  You can hide these in a number of ways:

1. =IF(SUMPRODUCT(($A2=dataName)*(B$1=dataID)*(dataResult))=0,&quot;&quot;,SUMPRODUCT(($A2=dataName)*(B$1=dataID)*(dataResult)))

2. Select the cells, right-click and select &quot;Format Cells&quot;.  From the &quot;Custom&quot; menu, append two semi-colons to the format.  e.g. &quot;General&quot; becomes &quot;General;;&quot;

Plus others.</description>
		<content:encoded><![CDATA[<p>I thought about this a bit more&#8230;</p>
<p>If you don&#8217;t want to use INDEX() and MATCH() you might like to try:</p>
<p>=SUMPRODUCT(($A2=dataName)*(B$1=dataID)*(dataResult)) in B2.  It&#8217;s not an array formula (so no Ctrl + Shift + Enter) and it&#8217;s a lot more intuitive.</p>
<p>Where there&#8217;s no match, you&#8217;ll see a 0.  You can hide these in a number of ways:</p>
<p>1. =IF(SUMPRODUCT(($A2=dataName)*(B$1=dataID)*(dataResult))=0,&#8221;",SUMPRODUCT(($A2=dataName)*(B$1=dataID)*(dataResult)))</p>
<p>2. Select the cells, right-click and select &#8220;Format Cells&#8221;.  From the &#8220;Custom&#8221; menu, append two semi-colons to the format.  e.g. &#8220;General&#8221; becomes &#8220;General;;&#8221;</p>
<p>Plus others.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Matching data in a table in Excel® using INDEX and MATCH (- a VLOOKUP alternative) by ryankirgan</title>
		<link>http://blog.kirgs.com/2009/02/02/matching-data-in-a-table-in-excel%c2%ae-using-index-and-match-a-vlookup-alternative/comment-page-1/#comment-346</link>
		<dc:creator>ryankirgan</dc:creator>
		<pubDate>Thu, 23 Apr 2009 01:47:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kirgs.com/?p=3#comment-346</guid>
		<description>You can download the file from here: &lt;a href=&quot;http://businessanalyst.kirgs.com/documents/Multiple Criteria INDEX MATCH demo for Alvin.xls&quot; rel=&quot;nofollow&quot;&gt;Multiple Criteria INDEX MATCH demo for Alvin.xls&lt;/a&gt; (22k)</description>
		<content:encoded><![CDATA[<p>You can download the file from here: <a href="http://businessanalyst.kirgs.com/documents/Multiple Criteria INDEX MATCH demo for Alvin.xls" rel="nofollow">Multiple Criteria INDEX MATCH demo for Alvin.xls</a> (22k)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Matching data in a table in Excel® using INDEX and MATCH (- a VLOOKUP alternative) by ryankirgan</title>
		<link>http://blog.kirgs.com/2009/02/02/matching-data-in-a-table-in-excel%c2%ae-using-index-and-match-a-vlookup-alternative/comment-page-1/#comment-345</link>
		<dc:creator>ryankirgan</dc:creator>
		<pubDate>Thu, 23 Apr 2009 01:33:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kirgs.com/?p=3#comment-345</guid>
		<description>&lt;p&gt;Hi again,&lt;/p&gt;

&lt;p&gt;I had a look at the &lt;em&gt;email &lt;/em&gt;of your post (that maintained the correct formatting for some reason) and think I have an idea as to what you are after.  My interpretation is that you want to match two criteria; the name in the leftmost column of &lt;strong&gt;Sheet1&lt;/strong&gt; and the number in the top row &lt;strong&gt;Sheet1&lt;/strong&gt; - if there&#8217;s a match in &lt;strong&gt;Sheet2&lt;/strong&gt;, then return the value in the rightmost column of &lt;strong&gt;Sheet2&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Lets start with &lt;strong&gt;Sheet2&lt;/strong&gt; because this is where your raw data is kept.  In fact, if it&#8217;s ok, I&#8217;ll rename the worksheet to &lt;strong&gt;Data&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Data&lt;/strong&gt;&lt;/p&gt;
&lt;table style=&quot;text-align: center;&quot; border=&quot;0&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td style=&quot;color:silver;text-align:center;&quot;&gt;A&lt;/td&gt;
&lt;td style=&quot;color:silver;text-align:center;&quot;&gt;B&lt;/td&gt;
&lt;td style=&quot;color:silver;text-align:center;&quot;&gt;C&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;color:silver;font-weight:normal;&quot;&gt;1&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;&quot;&gt;1&lt;/td&gt;

&lt;td style=&quot;border:solid black 1px;&quot;&gt;name1&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;&quot;&gt;5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;color:silver;font-weight:normal;&quot;&gt;2&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;&quot;&gt;2&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;&quot;&gt;name2&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;&quot;&gt;6&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;color:silver;font-weight:normal;&quot;&gt;3&lt;/td&gt;

&lt;td style=&quot;border:solid black 1px;&quot;&gt;3&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;&quot;&gt;name3&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;&quot;&gt;7&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;color:silver;font-weight:normal;&quot;&gt;4&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;&quot;&gt;4&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;&quot;&gt;name4&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;&quot;&gt;8&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td style=&quot;color:silver;font-weight:normal;&quot;&gt;5&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;&quot;&gt;5&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;&quot;&gt;name5&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;&quot;&gt;9&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;color:silver;font-weight:normal;&quot;&gt;6&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;&quot;&gt;6&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;&quot;&gt;name6&lt;/td&gt;

&lt;td style=&quot;border:solid black 1px;&quot;&gt;9&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;color:silver;font-weight:normal;&quot;&gt;7&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;&quot;&gt;7&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;&quot;&gt;name7&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;&quot;&gt;10&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;color:silver;font-weight:normal;&quot;&gt;8&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;&quot;&gt;8&lt;/td&gt;

&lt;td style=&quot;border:solid black 1px;&quot;&gt;name8&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;&quot;&gt;11&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;color:silver;font-weight:normal;&quot;&gt;9&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;&quot;&gt;9&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;&quot;&gt;name9&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;&quot;&gt;12&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;At this point, I&#8217;d always recommend using named ranges on these columns, but to keep the solution in cell reference terms, we can substitute this in later.&lt;/p&gt;
&lt;p&gt;Now, turning our attention to &lt;strong&gt;Sheet1&lt;/strong&gt; (which I&#8217;ll call &lt;strong&gt;Output&lt;/strong&gt;)&#8230;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Output&lt;/strong&gt;&lt;/p&gt;
&lt;table style=&quot;text-align: center;&quot; border=&quot;0&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;

&lt;td style=&quot;color:silver;text-align:center;&quot;&gt;A&lt;/td&gt;
&lt;td style=&quot;color:silver;text-align:center;&quot;&gt;B&lt;/td&gt;
&lt;td style=&quot;color:silver;text-align:center;&quot;&gt;C&lt;/td&gt;
&lt;td style=&quot;color:silver;text-align:center;&quot;&gt;D&lt;/td&gt;
&lt;td style=&quot;color:silver;text-align:center;&quot;&gt;E&lt;/td&gt;
&lt;td style=&quot;color:silver;text-align:center;&quot;&gt;F&lt;/td&gt;
&lt;td style=&quot;color:silver;text-align:center;&quot;&gt;G&lt;/td&gt;
&lt;td style=&quot;color:silver;text-align:center;&quot;&gt;H&lt;/td&gt;
&lt;td style=&quot;color:silver;text-align:center;&quot;&gt;I&lt;/td&gt;

&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;color:silver;font-weight:normal;&quot;&gt;1&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;text-align:center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;text-align:center;&quot;&gt;1&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;text-align:center;&quot;&gt;2&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;text-align:center;&quot;&gt;3&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;text-align:center;&quot;&gt;4&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;text-align:center;&quot;&gt;5&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;text-align:center;&quot;&gt;6&lt;/td&gt;

&lt;td style=&quot;border:solid black 1px;text-align:center;&quot;&gt;7&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;text-align:center;&quot;&gt;8&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;color:silver;font-weight:normal;&quot;&gt;2&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;&quot;&gt;name1&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;

&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;color:silver;font-weight:normal;&quot;&gt;3&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;&quot;&gt;name2&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;

&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;color:silver;font-weight:normal;&quot;&gt;4&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;&quot;&gt;name3&lt;/td&gt;

&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td style=&quot;color:silver;font-weight:normal;&quot;&gt;5&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;&quot;&gt;name4&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;

&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;color:silver;font-weight:normal;&quot;&gt;6&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;&quot;&gt;name5&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;

&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;color:silver;font-weight:normal;&quot;&gt;7&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;&quot;&gt;name6&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;

&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;color:silver;font-weight:normal;&quot;&gt;8&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;&quot;&gt;name7&lt;/td&gt;

&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td style=&quot;color:silver;font-weight:normal;&quot;&gt;9&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;&quot;&gt;name8&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;

&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;???&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;To reiterate, what I think you want to do is populate the coloured cells (containing &lt;strong&gt;???&lt;/strong&gt;) when there is a match to the column and row.  As mentioned, there are more ways to do this than I care to mention, but the first that comes to mind involves using INDEX() and MATCH() (thank goodness, being the title of the blog entry and all &lt;img src=&#039;http://blog.kirgs.com/wp-includes/images/smilies/icon_wink.gif&#039; alt=&#039;;)&#039; class=&#039;wp-smiley&#039; /&gt; &lt;/p&gt;
&lt;p&gt;Let&#8217;s start by clicking on the first cell we want to calculate on the &lt;strong&gt;Output&lt;/strong&gt; worksheet: &lt;strong&gt;B2&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;From earlier, INDEX() can be described as:&lt;/p&gt;
&lt;p&gt;=&lt;strong&gt;INDEX&lt;/strong&gt;(&lt;strong&gt;array,row_num,column_num)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Here, the &lt;strong&gt;array&lt;/strong&gt; we are after is the rightmost column in the &lt;strong&gt;Data&lt;/strong&gt; worksheet (&lt;strong&gt;Data!$C$1:$C$8&lt;/strong&gt;).  Being only one column wide, the only &lt;strong&gt;column_num&lt;/strong&gt; we can have is &lt;strong&gt;1&lt;/strong&gt;.  But how do we work out the &lt;strong&gt;row_num&lt;/strong&gt; when there are two criteria?  One way to do this is to concatenate the two search terms.  You do this by using an ampersand (&amp;).  You then concatenate the columns you want to search so you&#8217;re comparing apples to apples (so to speak.)&lt;/p&gt;

&lt;p&gt;Describing MATCH():&lt;/p&gt;
&lt;p&gt;=&lt;strong&gt;MATCH&lt;/strong&gt;(&lt;strong&gt;Lookup_value&lt;/strong&gt;,&lt;strong&gt;Lookup_array&lt;/strong&gt;,&lt;strong&gt;Match_type&lt;/strong&gt;)&lt;/p&gt;
&lt;p&gt;So our &lt;strong&gt;Lookup_value&lt;/strong&gt; for this first cell is &lt;strong&gt;$A2&amp;B$1&lt;/strong&gt;.  We use the dollar ($) symbol in front of the &lt;strong&gt;A&lt;/strong&gt; in &lt;strong&gt;$A1&lt;/strong&gt; to confine the search queries to the first column (i.e. the ones with &lt;strong&gt;name1&lt;/strong&gt;&#8230;&lt;strong&gt;name8&lt;/strong&gt; in them).  Similarly, we use the dollar ($) symbol in from of the &lt;strong&gt;1&lt;/strong&gt; in &lt;strong&gt;B$1&lt;/strong&gt; to confine the searches to the first row.  That way, when we copy the formula to the other cells, we&#8217;re always matching the leftmost/top column that corresponds the cell we&#8217;re in.&lt;/p&gt;

&lt;p&gt;As mentioned, our &lt;strong&gt;Lookup_array&lt;/strong&gt; is also a concatenation, however this time it is &lt;strong&gt;Data!$B$1:$B$8&amp;Data!$A$1:$A$8&lt;/strong&gt;.  We have dollar ($) symbols in front of of all row and column references here because the raw data doesn&#8217;t move (i.e. its position is not relative the cells).&lt;/p&gt;
&lt;div style=&quot;float:left;margin: 12px;&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-1187278084106795&quot;;
/* 468x60, created 4/7/09 */
google_ad_slot = &quot;0262602933&quot;;
google_ad_width = 468;
google_ad_height = 60;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;&lt;p&gt;This results in:&lt;br /&gt;
=MATCH(Output!$A2&amp;Output!B$1,Data!$B$1:$B$8&amp;Data!$A$1:$A$8,0)&lt;/p&gt;

&lt;p&gt;So&#8230;putting it altogether we have:&lt;/p&gt;
&lt;p&gt;=INDEX(Data!$C$1:$C$8,MATCH(Output!$A2&amp;Output!B$1,Data!$B$1:$B$8&amp;Data!$A$1:$A$8,0),1)&lt;/p&gt;
&lt;p&gt;but pressing return results in &lt;strong&gt;#VALUE&lt;/strong&gt;.  This is because concatenating strings in a function such as this returns an array.  To formulate cells like this instead of press &lt;strong&gt;Enter&lt;/strong&gt; after entering the formula, you need to press &lt;strong&gt;Shift and Enter&lt;/strong&gt; at the same time.  This will put curly brackets ({ and }) around the formula. In doing so, for this example, you should now see the number &lt;strong&gt;5&lt;/strong&gt; in &lt;strong&gt;B2&lt;/strong&gt; which corresponds to the two criteria in the raw data.&lt;/p&gt;

&lt;p&gt;You only need to do this once, as we&#8217;re going to now place the cursor on the bottom right-hand corner of &lt;strong&gt;B2&lt;/strong&gt; until the cross appears and will drag the formula to the other cells in the table.  You can&#8217;t copy and paste the formula to more than one cell as Excel will complain that you &#8220;cannot change part of an array.&#8221;&lt;/p&gt;
&lt;p&gt;The only problem now is that there are &lt;strong&gt;#N/As&lt;/strong&gt; where there isn&#8217;t a corresponding value in the raw data &lt;img src=&#039;http://blog.kirgs.com/wp-includes/images/smilies/icon_neutral.gif&#039; alt=&#039;:&#124;&#039; class=&#039;wp-smiley&#039; /&gt;  What&#8217;s a quick way to get rid of this.  What I do is use a simple if statement to return nothing if the result is an &lt;strong&gt;#N/A&lt;/strong&gt;.  What I do in this instance is use a combination of the &lt;strong&gt;IF()&lt;/strong&gt; and &lt;strong&gt;ISNA()&lt;/strong&gt; functions.&lt;/p&gt;

&lt;p&gt;To describe this in broad terms:&lt;br /&gt;
=IF(ISNA(&lt;em&gt;cell value&lt;/em&gt;),&lt;em&gt;nothing&lt;/em&gt;,&lt;em&gt;something&lt;/em&gt;)&lt;/p&gt;
&lt;p&gt;i.e. if the cell value is #N/A then return nothing; otherwise, return something.  In this case, it&#8217;s the &lt;strong&gt;MATCH()&lt;/strong&gt; function that is returning the &lt;strong&gt;#N/A&lt;/strong&gt;, so we only need to use that as the  in the above.&lt;/p&gt;
&lt;p&gt;Our formula for &lt;strong&gt;B2&lt;/strong&gt; now becomes:&lt;/p&gt;

&lt;p&gt;={IF(ISNA(MATCH(Output!$A2&amp;Output!B$1,Data!$B$1:$B$8&amp;Data!$A$1:$A$8,0)),&#8221;&quot;,INDEX(Data!$C$1:$C$8,MATCH(Output!$A2&amp;Output!B$1,Data!$B$1:$B$8&amp;Data!$A$1:$A$8,0),1))}&lt;/p&gt;
&lt;p&gt;(without the curly brackets - these are put in the cells formula after pressing &lt;strong&gt;Shift&lt;/strong&gt; + &lt;strong&gt;Enter&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;As you can see, this formula is ridiculously long.  Named ranges will improve this.  For instance defining:&lt;/p&gt;
&lt;p&gt;dataID =&gt; Data!$A$1:$A$8&lt;br /&gt;

dataName =&gt; Data!$B$1:$B$8&lt;br /&gt;
dataResult =&gt; Data!$C$1:$C$8&lt;/p&gt;
&lt;p&gt;reduces the formula to:&lt;/p&gt;
&lt;p&gt;={IF(ISNA(MATCH($A2&amp;B$1,dataName&amp;dataID,0)),&#8221;&quot;,INDEX(dataResult,MATCH($A2&amp;B$1,dataName&amp;dataID,0),1))}&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Output&lt;/strong&gt;&lt;/p&gt;
&lt;table style=&quot;text-align: center;&quot; border=&quot;0&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td style=&quot;color:silver;text-align:center;&quot;&gt;A&lt;/td&gt;
&lt;td style=&quot;color:silver;text-align:center;&quot;&gt;B&lt;/td&gt;
&lt;td style=&quot;color:silver;text-align:center;&quot;&gt;C&lt;/td&gt;
&lt;td style=&quot;color:silver;text-align:center;&quot;&gt;D&lt;/td&gt;
&lt;td style=&quot;color:silver;text-align:center;&quot;&gt;E&lt;/td&gt;
&lt;td style=&quot;color:silver;text-align:center;&quot;&gt;F&lt;/td&gt;

&lt;td style=&quot;color:silver;text-align:center;&quot;&gt;G&lt;/td&gt;
&lt;td style=&quot;color:silver;text-align:center;&quot;&gt;H&lt;/td&gt;
&lt;td style=&quot;color:silver;text-align:center;&quot;&gt;I&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;color:silver;font-weight:normal;width:5px;&quot;&gt;1&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;text-align:center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;text-align:center;&quot;&gt;1&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;text-align:center;&quot;&gt;2&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;text-align:center;&quot;&gt;3&lt;/td&gt;

&lt;td style=&quot;border:solid black 1px;text-align:center;&quot;&gt;4&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;text-align:center;&quot;&gt;5&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;text-align:center;&quot;&gt;6&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;text-align:center;&quot;&gt;7&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;text-align:center;&quot;&gt;8&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;color:silver;font-weight:normal;&quot;&gt;2&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;&quot;&gt;name1&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;5&lt;/td&gt;

&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;color:silver;font-weight:normal;&quot;&gt;3&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;&quot;&gt;name2&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;6&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;

&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;color:silver;font-weight:normal;&quot;&gt;4&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;&quot;&gt;name3&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;7&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;

&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;color:silver;font-weight:normal;&quot;&gt;5&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;&quot;&gt;name4&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;8&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;

&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;color:silver;font-weight:normal;&quot;&gt;6&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;&quot;&gt;name5&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;9&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td style=&quot;color:silver;font-weight:normal;&quot;&gt;7&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;&quot;&gt;name6&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;10&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;color:silver;font-weight:normal;&quot;&gt;8&lt;/td&gt;

&lt;td style=&quot;border:solid black 1px;&quot;&gt;name7&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border: 1px solid black;background:#6DCFF6;&quot;&gt;11&lt;/td&gt;
&lt;td style=&quot;border: 1px solid black;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;color:silver;font-weight:normal;&quot;&gt;9&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;&quot;&gt;name8&lt;/td&gt;

&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border:solid black 1px;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border: 1px solid black;background:#6DCFF6;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;border: 1px solid black;background:#6DCFF6;&quot;&gt;12&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Hopefully this is what you were after</description>
		<content:encoded><![CDATA[<p>Hi again,</p>
<p>I had a look at the <em>email </em>of your post (that maintained the correct formatting for some reason) and think I have an idea as to what you are after.  My interpretation is that you want to match two criteria; the name in the leftmost column of <strong>Sheet1</strong> and the number in the top row <strong>Sheet1</strong> &#8211; if there&#8217;s a match in <strong>Sheet2</strong>, then return the value in the rightmost column of <strong>Sheet2</strong>.</p>
<p>Lets start with <strong>Sheet2</strong> because this is where your raw data is kept.  In fact, if it&#8217;s ok, I&#8217;ll rename the worksheet to <strong>Data</strong></p>
<p><strong>Data</strong></p>
<table style="text-align: center;" border="0">
<tbody>
<tr>
<td></td>
<td style="color:silver;text-align:center;">A</td>
<td style="color:silver;text-align:center;">B</td>
<td style="color:silver;text-align:center;">C</td>
</tr>
<tr>
<td style="color:silver;font-weight:normal;">1</td>
<td style="border:solid black 1px;">1</td>
<td style="border:solid black 1px;">name1</td>
<td style="border:solid black 1px;">5</td>
</tr>
<tr>
<td style="color:silver;font-weight:normal;">2</td>
<td style="border:solid black 1px;">2</td>
<td style="border:solid black 1px;">name2</td>
<td style="border:solid black 1px;">6</td>
</tr>
<tr>
<td style="color:silver;font-weight:normal;">3</td>
<td style="border:solid black 1px;">3</td>
<td style="border:solid black 1px;">name3</td>
<td style="border:solid black 1px;">7</td>
</tr>
<tr>
<td style="color:silver;font-weight:normal;">4</td>
<td style="border:solid black 1px;">4</td>
<td style="border:solid black 1px;">name4</td>
<td style="border:solid black 1px;">8</td>
</tr>
<tr>
<td style="color:silver;font-weight:normal;">5</td>
<td style="border:solid black 1px;">5</td>
<td style="border:solid black 1px;">name5</td>
<td style="border:solid black 1px;">9</td>
</tr>
<tr>
<td style="color:silver;font-weight:normal;">6</td>
<td style="border:solid black 1px;">6</td>
<td style="border:solid black 1px;">name6</td>
<td style="border:solid black 1px;">9</td>
</tr>
<tr>
<td style="color:silver;font-weight:normal;">7</td>
<td style="border:solid black 1px;">7</td>
<td style="border:solid black 1px;">name7</td>
<td style="border:solid black 1px;">10</td>
</tr>
<tr>
<td style="color:silver;font-weight:normal;">8</td>
<td style="border:solid black 1px;">8</td>
<td style="border:solid black 1px;">name8</td>
<td style="border:solid black 1px;">11</td>
</tr>
<tr>
<td style="color:silver;font-weight:normal;">9</td>
<td style="border:solid black 1px;">9</td>
<td style="border:solid black 1px;">name9</td>
<td style="border:solid black 1px;">12</td>
</tr>
</tbody>
</table>
<p>At this point, I&#8217;d always recommend using named ranges on these columns, but to keep the solution in cell reference terms, we can substitute this in later.</p>
<p>Now, turning our attention to <strong>Sheet1</strong> (which I&#8217;ll call <strong>Output</strong>)&#8230;</p>
<p><strong>Output</strong></p>
<table style="text-align: center;" border="0">
<tbody>
<tr>
<td></td>
<td style="color:silver;text-align:center;">A</td>
<td style="color:silver;text-align:center;">B</td>
<td style="color:silver;text-align:center;">C</td>
<td style="color:silver;text-align:center;">D</td>
<td style="color:silver;text-align:center;">E</td>
<td style="color:silver;text-align:center;">F</td>
<td style="color:silver;text-align:center;">G</td>
<td style="color:silver;text-align:center;">H</td>
<td style="color:silver;text-align:center;">I</td>
</tr>
<tr>
<td style="color:silver;font-weight:normal;">1</td>
<td style="border:solid black 1px;text-align:center;"></td>
<td style="border:solid black 1px;text-align:center;">1</td>
<td style="border:solid black 1px;text-align:center;">2</td>
<td style="border:solid black 1px;text-align:center;">3</td>
<td style="border:solid black 1px;text-align:center;">4</td>
<td style="border:solid black 1px;text-align:center;">5</td>
<td style="border:solid black 1px;text-align:center;">6</td>
<td style="border:solid black 1px;text-align:center;">7</td>
<td style="border:solid black 1px;text-align:center;">8</td>
</tr>
<tr>
<td style="color:silver;font-weight:normal;">2</td>
<td style="border:solid black 1px;">name1</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
</tr>
<tr>
<td style="color:silver;font-weight:normal;">3</td>
<td style="border:solid black 1px;">name2</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
</tr>
<tr>
<td style="color:silver;font-weight:normal;">4</td>
<td style="border:solid black 1px;">name3</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
</tr>
<tr>
<td style="color:silver;font-weight:normal;">5</td>
<td style="border:solid black 1px;">name4</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
</tr>
<tr>
<td style="color:silver;font-weight:normal;">6</td>
<td style="border:solid black 1px;">name5</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
</tr>
<tr>
<td style="color:silver;font-weight:normal;">7</td>
<td style="border:solid black 1px;">name6</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
</tr>
<tr>
<td style="color:silver;font-weight:normal;">8</td>
<td style="border:solid black 1px;">name7</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
</tr>
<tr>
<td style="color:silver;font-weight:normal;">9</td>
<td style="border:solid black 1px;">name8</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
<td style="border:solid black 1px;background:#6DCFF6;">???</td>
</tr>
</tbody>
</table>
<p>To reiterate, what I think you want to do is populate the coloured cells (containing <strong>???</strong>) when there is a match to the column and row.  As mentioned, there are more ways to do this than I care to mention, but the first that comes to mind involves using INDEX() and MATCH() (thank goodness, being the title of the blog entry and all <img src='http://blog.kirgs.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Let&#8217;s start by clicking on the first cell we want to calculate on the <strong>Output</strong> worksheet: <strong>B2</strong>.</p>
<p>From earlier, INDEX() can be described as:</p>
<p>=<strong>INDEX</strong>(<strong>array,row_num,column_num)</strong></p>
<p>Here, the <strong>array</strong> we are after is the rightmost column in the <strong>Data</strong> worksheet (<strong>Data!$C$1:$C$8</strong>).  Being only one column wide, the only <strong>column_num</strong> we can have is <strong>1</strong>.  But how do we work out the <strong>row_num</strong> when there are two criteria?  One way to do this is to concatenate the two search terms.  You do this by using an ampersand (&amp;).  You then concatenate the columns you want to search so you&#8217;re comparing apples to apples (so to speak.)</p>
<p>Describing MATCH():</p>
<p>=<strong>MATCH</strong>(<strong>Lookup_value</strong>,<strong>Lookup_array</strong>,<strong>Match_type</strong>)</p>
<p>So our <strong>Lookup_value</strong> for this first cell is <strong>$A2&amp;B$1</strong>.  We use the dollar ($) symbol in front of the <strong>A</strong> in <strong>$A1</strong> to confine the search queries to the first column (i.e. the ones with <strong>name1</strong>&#8230;<strong>name8</strong> in them).  Similarly, we use the dollar ($) symbol in from of the <strong>1</strong> in <strong>B$1</strong> to confine the searches to the first row.  That way, when we copy the formula to the other cells, we&#8217;re always matching the leftmost/top column that corresponds the cell we&#8217;re in.</p>
<p>As mentioned, our <strong>Lookup_array</strong> is also a concatenation, however this time it is <strong>Data!$B$1:$B$8&amp;Data!$A$1:$A$8</strong>.  We have dollar ($) symbols in front of of all row and column references here because the raw data doesn&#8217;t move (i.e. its position is not relative the cells).</p>
<div style="float:left;margin: 12px;"><script type="text/javascript"><!--
google_ad_client = "pub-1187278084106795";
/* 468x60, created 4/7/09 */
google_ad_slot = "0262602933";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p>This results in:<br />
=MATCH(Output!$A2&amp;Output!B$1,Data!$B$1:$B$8&amp;Data!$A$1:$A$8,0)</p>
<p>So&#8230;putting it altogether we have:</p>
<p>=INDEX(Data!$C$1:$C$8,MATCH(Output!$A2&amp;Output!B$1,Data!$B$1:$B$8&amp;Data!$A$1:$A$8,0),1)</p>
<p>but pressing return results in <strong>#VALUE</strong>.  This is because concatenating strings in a function such as this returns an array.  To formulate cells like this instead of press <strong>Enter</strong> after entering the formula, you need to press <strong>Shift and Enter</strong> at the same time.  This will put curly brackets ({ and }) around the formula. In doing so, for this example, you should now see the number <strong>5</strong> in <strong>B2</strong> which corresponds to the two criteria in the raw data.</p>
<p>You only need to do this once, as we&#8217;re going to now place the cursor on the bottom right-hand corner of <strong>B2</strong> until the cross appears and will drag the formula to the other cells in the table.  You can&#8217;t copy and paste the formula to more than one cell as Excel will complain that you &#8220;cannot change part of an array.&#8221;</p>
<p>The only problem now is that there are <strong>#N/As</strong> where there isn&#8217;t a corresponding value in the raw data <img src='http://blog.kirgs.com/wp-includes/images/smilies/icon_neutral.gif' alt=':|' class='wp-smiley' />  What&#8217;s a quick way to get rid of this.  What I do is use a simple if statement to return nothing if the result is an <strong>#N/A</strong>.  What I do in this instance is use a combination of the <strong>IF()</strong> and <strong>ISNA()</strong> functions.</p>
<p>To describe this in broad terms:<br />
=IF(ISNA(<em>cell value</em>),<em>nothing</em>,<em>something</em>)</p>
<p>i.e. if the cell value is #N/A then return nothing; otherwise, return something.  In this case, it&#8217;s the <strong>MATCH()</strong> function that is returning the <strong>#N/A</strong>, so we only need to use that as the  in the above.</p>
<p>Our formula for <strong>B2</strong> now becomes:</p>
<p>={IF(ISNA(MATCH(Output!$A2&amp;Output!B$1,Data!$B$1:$B$8&amp;Data!$A$1:$A$8,0)),&#8221;&#8221;,INDEX(Data!$C$1:$C$8,MATCH(Output!$A2&amp;Output!B$1,Data!$B$1:$B$8&amp;Data!$A$1:$A$8,0),1))}</p>
<p>(without the curly brackets &#8211; these are put in the cells formula after pressing <strong>Shift</strong> + <strong>Enter</strong>.</p>
<p>As you can see, this formula is ridiculously long.  Named ranges will improve this.  For instance defining:</p>
<p>dataID =&gt; Data!$A$1:$A$8</p>
<p>dataName =&gt; Data!$B$1:$B$8<br />
dataResult =&gt; Data!$C$1:$C$8</p>
<p>reduces the formula to:</p>
<p>={IF(ISNA(MATCH($A2&amp;B$1,dataName&amp;dataID,0)),&#8221;&#8221;,INDEX(dataResult,MATCH($A2&amp;B$1,dataName&amp;dataID,0),1))}</p>
<p><strong>Output</strong></p>
<table style="text-align: center;" border="0">
<tbody>
<tr>
<td></td>
<td style="color:silver;text-align:center;">A</td>
<td style="color:silver;text-align:center;">B</td>
<td style="color:silver;text-align:center;">C</td>
<td style="color:silver;text-align:center;">D</td>
<td style="color:silver;text-align:center;">E</td>
<td style="color:silver;text-align:center;">F</td>
<td style="color:silver;text-align:center;">G</td>
<td style="color:silver;text-align:center;">H</td>
<td style="color:silver;text-align:center;">I</td>
</tr>
<tr>
<td style="color:silver;font-weight:normal;width:5px;">1</td>
<td style="border:solid black 1px;text-align:center;"></td>
<td style="border:solid black 1px;text-align:center;">1</td>
<td style="border:solid black 1px;text-align:center;">2</td>
<td style="border:solid black 1px;text-align:center;">3</td>
<td style="border:solid black 1px;text-align:center;">4</td>
<td style="border:solid black 1px;text-align:center;">5</td>
<td style="border:solid black 1px;text-align:center;">6</td>
<td style="border:solid black 1px;text-align:center;">7</td>
<td style="border:solid black 1px;text-align:center;">8</td>
</tr>
<tr>
<td style="color:silver;font-weight:normal;">2</td>
<td style="border:solid black 1px;">name1</td>
<td style="border:solid black 1px;background:#6DCFF6;">5</td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
</tr>
<tr>
<td style="color:silver;font-weight:normal;">3</td>
<td style="border:solid black 1px;">name2</td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;">6</td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
</tr>
<tr>
<td style="color:silver;font-weight:normal;">4</td>
<td style="border:solid black 1px;">name3</td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;">7</td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
</tr>
<tr>
<td style="color:silver;font-weight:normal;">5</td>
<td style="border:solid black 1px;">name4</td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;">8</td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
</tr>
<tr>
<td style="color:silver;font-weight:normal;">6</td>
<td style="border:solid black 1px;">name5</td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;">9</td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
</tr>
<tr>
<td style="color:silver;font-weight:normal;">7</td>
<td style="border:solid black 1px;">name6</td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;">10</td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
</tr>
<tr>
<td style="color:silver;font-weight:normal;">8</td>
<td style="border:solid black 1px;">name7</td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border: 1px solid black;background:#6DCFF6;">11</td>
<td style="border: 1px solid black;background:#6DCFF6;"></td>
</tr>
<tr>
<td style="color:silver;font-weight:normal;">9</td>
<td style="border:solid black 1px;">name8</td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border:solid black 1px;background:#6DCFF6;"></td>
<td style="border: 1px solid black;background:#6DCFF6;"></td>
<td style="border: 1px solid black;background:#6DCFF6;">12</td>
</tr>
</tbody>
</table>
<p>Hopefully this is what you were after</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Matching data in a table in Excel® using INDEX and MATCH (- a VLOOKUP alternative) by ryankirgan</title>
		<link>http://blog.kirgs.com/2009/02/02/matching-data-in-a-table-in-excel%c2%ae-using-index-and-match-a-vlookup-alternative/comment-page-1/#comment-344</link>
		<dc:creator>ryankirgan</dc:creator>
		<pubDate>Thu, 23 Apr 2009 00:16:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kirgs.com/?p=3#comment-344</guid>
		<description>@Arvin

Hi Arvin,

I&#039;m not too sure what you&#039;re after as the table has become distorted in Wordpress, making it difficult to work out what values are in B1 &amp; A3.

Could you email me your spreadsheet to &lt;a href=&quot;mailto:ryan@kirgs.com?subject=Blog Query&quot; title=&quot;Blog Query&quot; rel=&quot;nofollow&quot;&gt;ryan@kirgs.com&lt;/a&gt;.

You can certainly use lookup functions across worksheets and you can also match multiple criteria.  As with most things, there are many ways to go about doing this, but with a bit more information I can hopefully provide you with a suitable approach - perhaps one that uses INDEX() and MATCH() rather than VLOOKUP() ;)

Ryan</description>
		<content:encoded><![CDATA[<p>@Arvin</p>
<p>Hi Arvin,</p>
<p>I&#8217;m not too sure what you&#8217;re after as the table has become distorted in Wordpress, making it difficult to work out what values are in B1 &amp; A3.</p>
<p>Could you email me your spreadsheet to <a href="mailto:ryan@kirgs.com?subject=Blog Query" title="Blog Query" rel="nofollow">ryan@kirgs.com</a>.</p>
<p>You can certainly use lookup functions across worksheets and you can also match multiple criteria.  As with most things, there are many ways to go about doing this, but with a bit more information I can hopefully provide you with a suitable approach &#8211; perhaps one that uses INDEX() and MATCH() rather than VLOOKUP() <img src='http://blog.kirgs.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Ryan</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Matching data in a table in Excel® using INDEX and MATCH (- a VLOOKUP alternative) by Arvin</title>
		<link>http://blog.kirgs.com/2009/02/02/matching-data-in-a-table-in-excel%c2%ae-using-index-and-match-a-vlookup-alternative/comment-page-1/#comment-343</link>
		<dc:creator>Arvin</dc:creator>
		<pubDate>Wed, 22 Apr 2009 09:49:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kirgs.com/?p=3#comment-343</guid>
		<description>is it possible for VLOOKUP to have  2 reference(lookup) “B1 and A3” and will look for sheet2 in Columns A and B if it matches the Cells B1 and A3 from sheet1 it will get the value from sheet2 Column C  and return to sheet1
SHEET1									
1	A	B	C	D	E	F	G	H	I
2		1	2	3	4	5	6	7	8
3	name1	5							
4	name2		6						
5	name3			7					
6	name4				8				
7	name5					9			
8	name6						10		
9	name7							11	
10	name8								12

SHEET2		
A	B	C
1	name1	5
2	name2	6
3	name3	7
4	name4	8
5	name5	9
6	name6	10
7	name7	11
8	name8	12</description>
		<content:encoded><![CDATA[<p>is it possible for VLOOKUP to have  2 reference(lookup) “B1 and A3” and will look for sheet2 in Columns A and B if it matches the Cells B1 and A3 from sheet1 it will get the value from sheet2 Column C  and return to sheet1<br />
SHEET1<br />
1	A	B	C	D	E	F	G	H	I<br />
2		1	2	3	4	5	6	7	8<br />
3	name1	5<br />
4	name2		6<br />
5	name3			7<br />
6	name4				8<br />
7	name5					9<br />
8	name6						10<br />
9	name7							11<br />
10	name8								12</p>
<p>SHEET2<br />
A	B	C<br />
1	name1	5<br />
2	name2	6<br />
3	name3	7<br />
4	name4	8<br />
5	name5	9<br />
6	name6	10<br />
7	name7	11<br />
8	name8	12</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The weighing twelve (12) balls riddle &#8211; which one is a different weight? by Ryan Kirgan</title>
		<link>http://blog.kirgs.com/2009/02/13/the-weighing-twelve-12-balls-riddle-which-one-is-a-different-weight/comment-page-1/#comment-339</link>
		<dc:creator>Ryan Kirgan</dc:creator>
		<pubDate>Thu, 16 Apr 2009 01:35:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kirgs.com/?p=25#comment-339</guid>
		<description>@Joseph Demke
This is a really good point - I just assumed it would be easier, but come to think of it the balance scales really do give you more information.

Back to the drawing board ;)</description>
		<content:encoded><![CDATA[<p>@Joseph Demke<br />
This is a really good point &#8211; I just assumed it would be easier, but come to think of it the balance scales really do give you more information.</p>
<p>Back to the drawing board <img src='http://blog.kirgs.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The weighing twelve (12) balls riddle &#8211; which one is a different weight? by Joseph Demke</title>
		<link>http://blog.kirgs.com/2009/02/13/the-weighing-twelve-12-balls-riddle-which-one-is-a-different-weight/comment-page-1/#comment-303</link>
		<dc:creator>Joseph Demke</dc:creator>
		<pubDate>Tue, 14 Apr 2009 19:18:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kirgs.com/?p=25#comment-303</guid>
		<description>With a balance scale, this problem is fairly easy. However, I was more intrigued by the idea of an electronic scale (to figure weight). Is it possible for this riddle to be done with a weighing devices and not a balance device, in only 3 tries? Just trying to figure it out using that method.</description>
		<content:encoded><![CDATA[<p>With a balance scale, this problem is fairly easy. However, I was more intrigued by the idea of an electronic scale (to figure weight). Is it possible for this riddle to be done with a weighing devices and not a balance device, in only 3 tries? Just trying to figure it out using that method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The weighing twelve (12) balls riddle &#8211; which one is a different weight? by Ryan Kirgan</title>
		<link>http://blog.kirgs.com/2009/02/13/the-weighing-twelve-12-balls-riddle-which-one-is-a-different-weight/comment-page-1/#comment-10</link>
		<dc:creator>Ryan Kirgan</dc:creator>
		<pubDate>Tue, 24 Feb 2009 08:13:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kirgs.com/?p=25#comment-10</guid>
		<description>The first (external) post to this blog entry (in fact, the first external post to this blog) is absolutely brilliant!

Your very articulate response is much appreciated and I look forward to trying the method out!

Thanks.</description>
		<content:encoded><![CDATA[<p>The first (external) post to this blog entry (in fact, the first external post to this blog) is absolutely brilliant!</p>
<p>Your very articulate response is much appreciated and I look forward to trying the method out!</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The weighing twelve (12) balls riddle &#8211; which one is a different weight? by Sumudu Fernando</title>
		<link>http://blog.kirgs.com/2009/02/13/the-weighing-twelve-12-balls-riddle-which-one-is-a-different-weight/comment-page-1/#comment-7</link>
		<dc:creator>Sumudu Fernando</dc:creator>
		<pubDate>Tue, 17 Feb 2009 06:49:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kirgs.com/?p=25#comment-7</guid>
		<description>The key to this is essentially base-three counting.  Each ball gets labeled with a unique 3-digit base three number.  The digits tell us where to put the ball for each weighing (e.g. 0 means not weighed, 1 means put it on the left, 2 means put it on the right).

The idea is then that we do the weighings, and the results tell us the label of the odd ball.  So if the weighings were: left pan heavy, right pan heavy, balance, then the odd ball is 120

However, since we don&#039;t know whether the ball is heavy or light, each ball has to get two labels which are opposites of each other (so 120 would also have 210).

There are twenty-seven possible labels, but we leave out 000, 111, and 222.  This leaves 24, which when paired up gives us exactly twelve sets.  These sets have the property that the balls are split up 4-4-4 for each weighing.

What I&#039;ve written isn&#039;t a proof, but it should get you started.  At the very least, it is an easy way to remember the solution to this problem.</description>
		<content:encoded><![CDATA[<p>The key to this is essentially base-three counting.  Each ball gets labeled with a unique 3-digit base three number.  The digits tell us where to put the ball for each weighing (e.g. 0 means not weighed, 1 means put it on the left, 2 means put it on the right).</p>
<p>The idea is then that we do the weighings, and the results tell us the label of the odd ball.  So if the weighings were: left pan heavy, right pan heavy, balance, then the odd ball is 120</p>
<p>However, since we don&#8217;t know whether the ball is heavy or light, each ball has to get two labels which are opposites of each other (so 120 would also have 210).</p>
<p>There are twenty-seven possible labels, but we leave out 000, 111, and 222.  This leaves 24, which when paired up gives us exactly twelve sets.  These sets have the property that the balls are split up 4-4-4 for each weighing.</p>
<p>What I&#8217;ve written isn&#8217;t a proof, but it should get you started.  At the very least, it is an easy way to remember the solution to this problem.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
