Conditional Autofill

U

uberathlete

Hi all! I've got this problem and it's really bugging me!!

Say, I've got Sheet 1 (attached) and there's some formula (assume it'
some VLOOKUP formula) on D3. I basically need some macro that woul
autofill the formula in D3 down to all the other cells in column D
EXCEPT for those cells with no corresponding value in the B column an
those with "Total".

Any help would be greatly appreciated. Thanks

+-------------------------------------------------------------------
|Filename: Sheet 1.JPG
|Download: http://www.excelforum.com/attachment.php?postid=4019
+-------------------------------------------------------------------
 
D

Dave O

Instead of code, how about a formula to do exactly the same thing. It
works by nesting your VLOOKUP into an IF:
=IF(AND(B1<>"",ISNUMBER(SEARCH("total",D1,1))), your vlookup formula
here,"")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top