<?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"
	>
<channel>
	<title>Comments on: Macro or not???</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/macro-or-not/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/macro-or-not/</link>
	<description></description>
	<pubDate>Sat, 26 May 2012 02:28:16 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Chippy088</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/macro-or-not/#comment-101431</link>
		<dc:creator>Chippy088</dc:creator>
		<pubDate>Mon, 09 Jan 2012 22:09:58 +0000</pubDate>
		<guid isPermaLink="false">#comment-101431</guid>
		<description>Not that hard to do. I have done a similar work book with a sheet for sales people at a shop, weekly sales totals for that shop, consolidated under an area manager.

The way I'd do it, if I understand it right, is as follows.

sheet 1 is the consolidation sheet..
sheet 2 is the sheet for agent 1
sheet 3 is the sheet for agent 2
etc

Assuming the cell you want to copy is on  the agent(x)_tab in column 1 (we'll call it a:20 for want of a definitive cell)

On consolidation sheet in cell B2, (against agent 1) enter this         =IF(Sheet2!A20=""," ",)
On consolidation sheet in cell C2, (against agent 1) enter this         =IF(Sheet2!B20=""," ",)

This copies the content of cell a20 of tab 2 ( stats for agent 1) . If the sheet hasn't been used it will be empty, and the if formula shows the content if not empty cell, else it leaves it blank.

If you don't use the if formula, then a 0 will be copied into the cell. It will look better if the cell is empty when you print it out.

Do the same for Sheet2!B20 to the last cell you want on the consolidation sheet.
Then do the same foreach agent on their own line.

The consolidation sheet will look something like this.

Agent 1	 agent 1 week 1	 agent 1 week 2	 agent 1 week 3	 agent 1 week 4	 agent 1 week 5	 
Agent 2	 agent 2 week 1	 agent 2 week 2	 agent 2 week 3	 agent 2 week 4	 agent 2 week 5	
Agent 3	 agent 3 week 1		etc	
Agent 4	agent 4 week 1		etc	

I decided to do it this way because it was easier than a macro, and did the job.</description>
		<content:encoded><![CDATA[<p>Not that hard to do. I have done a similar work book with a sheet for sales people at a shop, weekly sales totals for that shop, consolidated under an area manager.</p>
<p>The way I&#8217;d do it, if I understand it right, is as follows.</p>
<p>sheet 1 is the consolidation sheet..<br />
sheet 2 is the sheet for agent 1<br />
sheet 3 is the sheet for agent 2<br />
etc</p>
<p>Assuming the cell you want to copy is on  the agent(x)_tab in column 1 (we&#8217;ll call it a:20 for want of a definitive cell)</p>
<p>On consolidation sheet in cell B2, (against agent 1) enter this         =IF(Sheet2!A20="",&#8221; &#8220;,)<br />
On consolidation sheet in cell C2, (against agent 1) enter this         =IF(Sheet2!B20="",&#8221; &#8220;,)</p>
<p>This copies the content of cell a20 of tab 2 ( stats for agent 1) . If the sheet hasn&#8217;t been used it will be empty, and the if formula shows the content if not empty cell, else it leaves it blank.</p>
<p>If you don&#8217;t use the if formula, then a 0 will be copied into the cell. It will look better if the cell is empty when you print it out.</p>
<p>Do the same for Sheet2!B20 to the last cell you want on the consolidation sheet.<br />
Then do the same foreach agent on their own line.</p>
<p>The consolidation sheet will look something like this.</p>
<p>Agent 1	 agent 1 week 1	 agent 1 week 2	 agent 1 week 3	 agent 1 week 4	 agent 1 week 5<br />
Agent 2	 agent 2 week 1	 agent 2 week 2	 agent 2 week 3	 agent 2 week 4	 agent 2 week 5<br />
Agent 3	 agent 3 week 1		etc<br />
Agent 4	agent 4 week 1		etc	</p>
<p>I decided to do it this way because it was easier than a macro, and did the job.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- dynamic -->
