Senin, 05 September 2011

[ExcelVBA] Re: Relative Speed: Find vs VLookup

 

I finished implementing my search program using VLOOKUP in place of Find, and it runs in 1-2 minutes instead of 1-2 hours, so thank you for the very helpful suggesting.

--- In ExcelVBA@yahoogroups.com, "mickey11030" <mickey11030@...> wrote:
>
> OMG! I just checked the copyright page on "Running Excel 5" and it's 1994! I guess using a reference book, even a very good one, that is 17 years old is not such a great idea.
>
> --- In ExcelVBA@yahoogroups.com, "david braithwaite" <dbraithwaite@> wrote:
> >
> > Hi
> >
> >
> >
> > Agree with DaveS that you might as well do it on the sheet with formulas
> > rather than VBA.
> >
> >
> >
> > I dummied up your 40,000 on sheet1 one and 60,000 on sheet2 and copied down
> > the formula in C1
> >
> > =INDEX(Sheet2!$A$1:$B$60000,VLOOKUP(A1,Sheet2!$A$1:$A$60000,1,FALSE),2)
> >
> > and it was nearly immediate.
> >
> >
> >
> > Db
> >
> >
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>

__._,_.___
Recent Activity:
----------------------------------
Be sure to check out TechTrax Ezine for many, free Excel VBA articles! Go here: http://www.mousetrax.com/techtrax to enter the ezine, then search the ARCHIVES for EXCEL VBA.

----------------------------------
Visit our ExcelVBA group home page for more info and support files:
http://groups.yahoo.com/group/ExcelVBA

----------------------------------
More free tutorials and resources available at:
http://www.mousetrax.com

----------------------------------
MARKETPLACE

Stay on top of your group activity without leaving the page you're on - Get the Yahoo! Toolbar now.


A bad score is 579. A good idea is checking yours at freecreditscore.com.
.

__,_._,___

Tidak ada komentar:

Posting Komentar