<?xml version="1.0"?>
<rss version="2.0"><channel><title/><link>https://www.edugeek.net/blogs/blog/1168-handss-blog/</link><description/><language>en</language><item><title>Excel Macro to Populate a Range based on Info in Another Area of Workbook</title><link>https://www.edugeek.net/blogs/entry/666-excel-macro-to-populate-a-range-based-on-info-in-another-area-of-workbook/</link><description><![CDATA[<p>Here is the input:</p><p>
Activity, start week, end week</p><p> </p><p>
Based on the above info in the the first three columns of a spreadsheet, put a number or a string in the same row under the appropriate week number.  So if an activity happens from week  18 (this week) to week 25, the corresponding columns would be filled with the number 1.  So far I have not been able to figure out how to do this using macros. Seems pretty simple but I'm struggling since I have zero experience with Visual Basic and objects, methods, prodecures,etc. </p><p> </p><p>
I can get the desired result using Excel by putting the followiing statement in every column .... =IF(AND(week&lt;=start,week&gt;=stop), 1,""),  where week, start, stop are defined ranges.</p><p>
I tried to do the macro record but that doesn't yield a useful stating point</p>]]></description><guid isPermaLink="false">666</guid><pubDate>Fri, 04 May 2012 23:46:24 +0000</pubDate></item></channel></rss>
