I tried that string of code with a couple of modifications (see below), and it gave me a paste range error (runtime error 1004, paste special method of range class failed) . . . I tried a couple of different things, including activating sheet 3, and redefining range, etc., but could not get it to work. I have a work around that involves generating SQL code in another database storage program and then exporting the code to SAS (another SQL) program. But, SQL and the programs I'll be using are WAY more foreign to me and, although they remove some limitations, they make me nervous b/c my big bosses NEED the data to be correct (obviously) and I really don't trust myself considering my own personal limitations.
Here's the code I tried, see if you think there's an easy fix. Either way, I appreciate you helping. I had a response to this string quite a bit sooner than I had suspected I would. With the boolean, I think I might just need an else / false statement (if returned result does not match the desired criteria then move to the next cell). I don't know, the more I think about it, the more lost I get. I didn't know if I needed the stuff I already had in the original equation to appear above your code, or if I would be able to omit it.
Bookmarks