Warning: Cannot modify header information - headers already sent by (output started at /home/excel13/public_html/blog/wp-content/themes/cordobo-green-park-09-beta-09/functions.php:2) in /home/excel13/public_html/blog/wp-includes/feed-rss2-comments.php on line 8
Comments on: Dealing with VLOOKUP and GETPIVOTDATA errors http://www.excelguru.ca/blog/2009/03/18/dealing-with-vlookup-and-getpivotdata-errors/ More geeky stuff from the author of www.excelguru.ca... Mon, 31 Oct 2011 15:51:25 +0000 hourly 1 http://wordpress.org/?v=3.3.1 By: John Franco http://www.excelguru.ca/blog/2009/03/18/dealing-with-vlookup-and-getpivotdata-errors/comment-page-1/#comment-176362 John Franco Tue, 21 Sep 2010 23:19:17 +0000 http://www.excelguru.ca/blog/2009/03/18/dealing-with-vlookup-and-getpivotdata-errors/#comment-176362 Great tip Ken, Yes, Vlookup is a very resource-intensive function I did a simple test... IFERROR is 30% faster than IF+ISERROR If your sheet takes 7 minutes to calculate using the IFERROR formula, it would take 10 minutes with the IF+ISERROR version And when I did the suggested test by Jon Peltier, I got these results... IFERROR (with MATCH) is 10% faster than IFERROR (with VLOOKUP) Great tip Ken,

Yes, Vlookup is a very resource-intensive function

I did a simple test…

IFERROR is 30% faster than IF+ISERROR

If your sheet takes 7 minutes to calculate using the IFERROR formula, it would take 10 minutes with the IF+ISERROR version

And when I did the suggested test by Jon Peltier, I got these results…

IFERROR (with MATCH) is 10% faster than IFERROR (with VLOOKUP)

]]>
By: Tim Otero http://www.excelguru.ca/blog/2009/03/18/dealing-with-vlookup-and-getpivotdata-errors/comment-page-1/#comment-175658 Tim Otero Mon, 02 Nov 2009 23:02:42 +0000 http://www.excelguru.ca/blog/2009/03/18/dealing-with-vlookup-and-getpivotdata-errors/#comment-175658 @Nick, I tihink I figured this one out a few years ago, then forgot it. I knew there was an easier way, but I couldn't quite grasp it again. Thanks for bringing it up. I'm filling that one away. Great tip. @Nick, I tihink I figured this one out a few years ago, then forgot it. I knew there was an easier way, but I couldn’t quite grasp it again. Thanks for bringing it up. I’m filling that one away.

Great tip.

]]>
By: Allen http://www.excelguru.ca/blog/2009/03/18/dealing-with-vlookup-and-getpivotdata-errors/comment-page-1/#comment-144853 Allen Mon, 30 Mar 2009 19:41:46 +0000 http://www.excelguru.ca/blog/2009/03/18/dealing-with-vlookup-and-getpivotdata-errors/#comment-144853 You can write a VBA routined called IFERROR() for your 2003 deployment, which mimics the built-in version in 2007. After all upgraded to 2007, then delete the VBA function, and all will be right with the world... You can write a VBA routined called IFERROR() for your 2003 deployment, which mimics the built-in version in 2007. After all upgraded to 2007, then delete the VBA function, and all will be right with the world…

]]>
By: Alternative lookup formulas - Code For Excel And Outlook Blog http://www.excelguru.ca/blog/2009/03/18/dealing-with-vlookup-and-getpivotdata-errors/comment-page-1/#comment-142799 Alternative lookup formulas - Code For Excel And Outlook Blog Tue, 24 Mar 2009 13:54:54 +0000 http://www.excelguru.ca/blog/2009/03/18/dealing-with-vlookup-and-getpivotdata-errors/#comment-142799 [...]     I was reading Dealing with VLOOKUP and GETPIVOTDATA errors by Ken Puls and noticed he wraps VLOOKUP formulas in IF statements like this: [...] [...]     I was reading Dealing with VLOOKUP and GETPIVOTDATA errors by Ken Puls and noticed he wraps VLOOKUP formulas in IF statements like this: [...]

]]>
By: Ken Puls http://www.excelguru.ca/blog/2009/03/18/dealing-with-vlookup-and-getpivotdata-errors/comment-page-1/#comment-141616 Ken Puls Thu, 19 Mar 2009 22:48:19 +0000 http://www.excelguru.ca/blog/2009/03/18/dealing-with-vlookup-and-getpivotdata-errors/#comment-141616 Ah! Okay, I get it. Sorry, just a little slow on the uptake there. ;) That is interesting... Ah! Okay, I get it. Sorry, just a little slow on the uptake there. ;)

That is interesting…

]]>
By: Nick Burns http://www.excelguru.ca/blog/2009/03/18/dealing-with-vlookup-and-getpivotdata-errors/comment-page-1/#comment-141612 Nick Burns Thu, 19 Mar 2009 22:28:01 +0000 http://www.excelguru.ca/blog/2009/03/18/dealing-with-vlookup-and-getpivotdata-errors/#comment-141612 Ken, I'm not sure where you would run into trouble. Given: Lookup Table = "A1:G100" on Sheet1 Lookup Value = "A1" on Sheet2 The formula in B1 on Sheet 2 would read: =IF(COUNTIF(Sheet1!A1:A100,A1)>0,VLOOKUP(A1,Sheet1!A1:G100,5,FALSE),0) if the countif fails (ie, returns 0), there's no reason to issue the VLOOKUP as it wouldn't find the value anyhow. Ken, I’m not sure where you would run into trouble.
Given:
Lookup Table = “A1:G100″ on Sheet1
Lookup Value = “A1″ on Sheet2

The formula in B1 on Sheet 2 would read:
=IF(COUNTIF(Sheet1!A1:A100,A1)>0,VLOOKUP(A1,Sheet1!A1:G100,5,FALSE),0)

if the countif fails (ie, returns 0), there’s no reason to issue the VLOOKUP as it wouldn’t find the value anyhow.

]]>
By: Jon Peltier http://www.excelguru.ca/blog/2009/03/18/dealing-with-vlookup-and-getpivotdata-errors/comment-page-1/#comment-141581 Jon Peltier Thu, 19 Mar 2009 17:37:37 +0000 http://www.excelguru.ca/blog/2009/03/18/dealing-with-vlookup-and-getpivotdata-errors/#comment-141581 I suspect Nick's COUNTIF may be faster than MATCH. Someday I may even test them against each other. I suspect Nick’s COUNTIF may be faster than MATCH. Someday I may even test them against each other.

]]>
By: Ken Puls http://www.excelguru.ca/blog/2009/03/18/dealing-with-vlookup-and-getpivotdata-errors/comment-page-1/#comment-141566 Ken Puls Thu, 19 Mar 2009 15:34:49 +0000 http://www.excelguru.ca/blog/2009/03/18/dealing-with-vlookup-and-getpivotdata-errors/#comment-141566 Hi guys, Nick, your approach is a little lighter, but to me it's still almost as bulky as writing the original approach. I haven't tested it myself, but I'd be concerned that the initial result would leave me open to a later error with the VLOOKUP if they didn't return the exact same results. Peder, glad you found this useful. Sadly, the "What's New" help article in Excel 2007 doesn't actually list any of the new functions. The closest I found was <a href="http://visio.mvps.org/Excel_2007.htm" rel="nofollow">this article</a> on the Visio MVP's site. For VBA, there were some issues being tracked at VBA Express in <a href="http://www.vbaexpress.com/forum/showthread.php?t=18978" rel="nofollow">this thread</a>. Jon, fair point on MATCH's speed. I always seem to reach to VLOOKUP first, as old habits die hard. It would still leave you with a pretty long formula though. I wish IFERROR had been there several versions ago, as this approach is much cleaner. (Would help to speed up to use MATCH within that, rather than VLOOKUP though.) Hi guys,

Nick, your approach is a little lighter, but to me it’s still almost as bulky as writing the original approach. I haven’t tested it myself, but I’d be concerned that the initial result would leave me open to a later error with the VLOOKUP if they didn’t return the exact same results.

Peder, glad you found this useful. Sadly, the “What’s New” help article in Excel 2007 doesn’t actually list any of the new functions. The closest I found was this article on the Visio MVP’s site. For VBA, there were some issues being tracked at VBA Express in this thread.

Jon, fair point on MATCH’s speed. I always seem to reach to VLOOKUP first, as old habits die hard. It would still leave you with a pretty long formula though. I wish IFERROR had been there several versions ago, as this approach is much cleaner. (Would help to speed up to use MATCH within that, rather than VLOOKUP though.)

]]>
By: Jon Peltier http://www.excelguru.ca/blog/2009/03/18/dealing-with-vlookup-and-getpivotdata-errors/comment-page-1/#comment-141543 Jon Peltier Thu, 19 Mar 2009 12:20:20 +0000 http://www.excelguru.ca/blog/2009/03/18/dealing-with-vlookup-and-getpivotdata-errors/#comment-141543 You could speed up the IF(ISNA) thing if you check for an error in MATCH instead of in VLOOKUP. I don't know what the difference in speed is, but MATCH is a lighter function than VLOOKUP. You could speed up the IF(ISNA) thing if you check for an error in MATCH instead of in VLOOKUP. I don’t know what the difference in speed is, but MATCH is a lighter function than VLOOKUP.

]]>
By: Peder Schmedling http://www.excelguru.ca/blog/2009/03/18/dealing-with-vlookup-and-getpivotdata-errors/comment-page-1/#comment-141498 Peder Schmedling Thu, 19 Mar 2009 07:19:40 +0000 http://www.excelguru.ca/blog/2009/03/18/dealing-with-vlookup-and-getpivotdata-errors/#comment-141498 Great tip, I'll definitely use this one! We're going to start using Office 2007 in my department in the near future. In regards to this I'm on the lookout for some good resources about differences between Excel 2003 and 2007 and also possibly a list of new functions/functionality (like the IFERROR formula). I'm not sure if it even exists, but I would very much like a summary of VBA pitfalls when developing in Excel 2007 from a Excel 2003 point of view. Also some perspective on what to be on the lookout for when converting old 2003 projects to 2007. Any good recommendations on where to start reading up? Great tip, I’ll definitely use this one!

We’re going to start using Office 2007 in my department in the near future. In regards to this I’m on the lookout for some good resources about differences between Excel 2003 and 2007 and also possibly a list of new functions/functionality (like the IFERROR formula).

I’m not sure if it even exists, but I would very much like a summary of VBA pitfalls when developing in Excel 2007 from a Excel 2003 point of view. Also some perspective on what to be on the lookout for when converting old 2003 projects to 2007.

Any good recommendations on where to start reading up?

]]>