<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel>
	  <title>Ask MetaFilter questions tagged with row</title>
      <link>http://ask.metafilter.com/tags/row</link>
      <description>Questions tagged with 'row' at Ask MetaFilter.</description>
	  <pubDate>Fri, 01 Feb 2008 17:33:34 -0800</pubDate> <lastBuildDate>Fri, 01 Feb 2008 17:33:34 -0800</lastBuildDate>

      <language>en-us</language>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <ttl>60</ttl>	  
	<item>
	<title>How can I conditionally format an entire row in Excel based upon the data in one of the columns in that row?</title>
	<link>http://ask.metafilter.com/82598/How%2Dcan%2DI%2Dconditionally%2Dformat%2Dan%2Dentire%2Drow%2Din%2DExcel%2Dbased%2Dupon%2Dthe%2Ddata%2Din%2Done%2Dof%2Dthe%2Dcolumns%2Din%2Dthat%2Drow</link>	
	<description>How can I conditionally format an entire row in Excel 2007 based upon the contents of a particular column in that row? Say row 1 column J, row 4 column J, and row 19 column J all contain &quot;Alice.&quot; I&apos;d like rows 1, 4, and 19 all to appear with a red background. Say row 2 column J, row 44 column J, and row 45 column J all contain &quot;Bob.&quot; I&apos;d like for rows 2, 44, and 45 all to appear with a blue background. And so forth.&lt;br&gt;
&lt;br&gt;
Basically, what I&apos;m asking is how to make a relative column reference in a formula. I remember doing precisely this using VBScript for Excel years ago, but for the life of me can&apos;t locate that old code. Anyway, something along the lines of the following psuedo-code entered into the Conditional Formatting dialog box:&lt;br&gt;
&lt;br&gt;
Apply &quot;Format 1&quot; according to the following formula [assuming (y,x) refers to (column y, row x)]:&lt;br&gt;
&lt;br&gt;
=IF((J,ROW())=&quot;Alice&quot;)&lt;br&gt;
&lt;br&gt;
It might also be nice to do this with a named range, so that if I apply the name &quot;First_Name&quot; to the entirety of row J, the formula is then a bit clearer:&lt;br&gt;
&lt;br&gt;
=IF((First_Name,ROW())=&quot;Alice&quot;)&lt;br&gt;
&lt;br&gt;
Total n00b0 question, I&apos;m sure, but I don&apos;t spend much time in Excel, and am would very much appreciate the help.  Thanks!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.82598</guid>
	<pubDate>Fri, 01 Feb 2008 17:33:34 -0800</pubDate>
	<category>2007</category>
	<category>conditional</category>
	<category>conditionalformatting</category>
	<category>excel</category>
	<category>excel2007</category>
	<category>format</category>
	<category>formatting</category>
	<category>microsoft</category>
	<category>row</category>
	<dc:creator>ChasFile</dc:creator>
	</item>
	<item>
	<title>What&apos;s the total number of death row inmates and the average cost to hold them?</title>
	<link>http://ask.metafilter.com/67260/Whats%2Dthe%2Dtotal%2Dnumber%2Dof%2Ddeath%2Drow%2Dinmates%2Dand%2Dthe%2Daverage%2Dcost%2Dto%2Dhold%2Dthem</link>	
	<description>How much money could be saved if California executed all the prisoners on death row tomorrow? What about the country? So I&apos;ve been trying to find state or national prison statistics on the number of people currently on death row and the average cost per day to hold them. This is unsurprisingly difficult. Most of the statistics I can find are either outdated by many years or don&apos;t include anything related to death row.&lt;br&gt;
&lt;br&gt;
Any ideas?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2007:site.67260</guid>
	<pubDate>Wed, 18 Jul 2007 09:19:45 -0800</pubDate>
	<category>death</category>
	<category>prison</category>
	<category>row</category>
	<category>statistics</category>
	<category>taxes</category>
	<dc:creator>sipher</dc:creator>
	</item>
	<item>
	<title>A query connundrum.</title>
	<link>http://ask.metafilter.com/45807/A%2Dquery%2Dconnundrum</link>	
	<description>&lt;b&gt;Attention SQL gurus&lt;/b&gt;.  This has me completely stumped.  How can I find the index (position) of a row in a table without querying the entire set? Here is the situation:&lt;br&gt;
&lt;br&gt;
I have a web application that has some ajaxified tables on many of the pages.  These tables show various slices of data.  Most of the tables are about 10 rows per page, so for example, if the table was a list of all Customers, and you&apos;ve got 10,000 customers, that would be 1,000 &lt;i&gt;pages&lt;/i&gt; of customers.&lt;br&gt;
&lt;br&gt;
To initially show the table, I have to do two queries: one is the initial 10 rows that are to be displayed, the other is a count(*) to get the total amount of rows.&lt;br&gt;
&lt;br&gt;
Here is the problem:&lt;br&gt;
&lt;br&gt;
I have a &lt;i&gt;particular&lt;/i&gt; customer ID in my hand.  I&apos;d like the webtable to take this ID and jump to the correct page that will show that customer.  Naturally, it has to take into account sorting.&lt;br&gt;
&lt;br&gt;
Hypothetical simplified example:&lt;br&gt;
&lt;code&gt;ID    NAME&lt;br&gt;
1102  C_D&apos;s Tavern&lt;br&gt;
1294  Bob&apos;s Discount Dairy&lt;br&gt;
1299  Chico&apos;s House of Wicker&lt;br&gt;
...&lt;br&gt;
9309  Larry&apos;s Llama Emporium&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
If I sort by ID (natural order), the index of Bob&apos;s Discount Dairy would be 2, Chico&apos;s Hosue of Wicker would be 3, etc.  If I&apos;m displaying &quot;page 1&quot;, that means the first 10 indexes, so I know those two would be on the first page.  &quot;OK, so what page is ID# 5129 on?&quot; That&apos;s the problem.&lt;br&gt;
&lt;br&gt;
What I want to know is if there&apos;s a way to figure out the index of a particular ID without having to query the entire dataset.  Or if I &lt;b&gt;do&lt;/b&gt; have to query the entire dataset, I&apos;d like it to be as painless as possible.  Another important note: some of these queries are being run off of VIEWs, which could complicate things.&lt;br&gt;
&lt;br&gt;
This is on Microsoft SQL Server 2000.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2006:site.45807</guid>
	<pubDate>Sun, 03 Sep 2006 05:51:38 -0800</pubDate>
	<category>index</category>
	<category>microsoft</category>
	<category>mssql</category>
	<category>offset</category>
	<category>page</category>
	<category>row</category>
	<category>sql</category>
	<dc:creator>Civil_Disobedient</dc:creator>
	</item>
	
	</channel>
</rss>

