Why excel crashing when I drag down.

bernardmorrison

New Member
Joined
Jun 16, 2005
Messages
37
When I try to drag down a formula it is causing excel to crash.

I have 400,000 rows of data and the formula contains a vlookup, so this is quite intensive procedure.

However, if I write a vba sub which breaks the dragging down into 100 row bitesize pieces, it works fine. Takes a while but no crashing issues.

I am wondering is there anything I could have done to make the dragging down less intensive for excel and avoided the crashes. Apart from going to the hassle of having to write the VBA.

I am using excel 2010
 

Some videos you may like

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

Trevor G

Well-known Member
Joined
Jul 17, 2008
Messages
6,649
Office Version
2016
Platform
Windows
Have you tried double click auto fill
 

Jonmo1

MrExcel MVP
Joined
Oct 12, 2006
Messages
44,061
Maybe the formula itself could be made more efficient?
Would you care to post it?
 

Jonmo1

MrExcel MVP
Joined
Oct 12, 2006
Messages
44,061
I thought the formula contained VLOOKUP ?

Anyway...
Can the data in column C be sorted in Ascending order ?
If so, this would be MUCH more efficient.

=LOOKUP(C2,C3:$C$147969)<>C2
 

bernardmorrison

New Member
Joined
Jun 16, 2005
Messages
37
Yes, that column is sorted.

Out of interest, how come using the lookup function is more efficient than using the iserror match combo?
 

Jonmo1

MrExcel MVP
Joined
Oct 12, 2006
Messages
44,061
Match with 0 as the 3rd argument is an Exact Match search.
Forcing Excel to look at every single cell in the range.

Lookup does a binary search. A little difficult to explain but I'll try.
Don't quote me, this is probably not exactly right, but close enough to get the point..

Lookup assumes the data is sorted ascending.
It doesn't check if it actually is sorted, just proceeds as if it is.

It only looks at very small fraction of values in the range.
It basically cuts the range in half, and tests if the last value of the first half is Less or Equal to the lookup value.
And proceeds to either of the 2 halves depending on result of that test.
Continuing a process of elimination by testing the last value of each half as it goes.
 

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Threads
1,106,033
Messages
5,508,915
Members
408,700
Latest member
casco

This Week's Hot Topics

  • Turn fraction around
    Hello I need to turn a fraction around, for example I have 1/3 but I need to present as 3/1
  • TIme Clock record reformatting to ???
    Hello All, I'd like some help formatting this (Tbl-A)(Loaded via Power Query) [ATTACH type="full" width="511px" alt="PQdata.png"]22252[/ATTACH]...
  • TextBox Match
    hi, I am having a few issues with my code below, what I need it to do is when they enter a value in textbox8 (QTY) either 1,2 or 3 the 3 textboxes...
  • Using Large function based on Multiple Criteria
    Hello, I can't seem to get a Large formula to work based on two criteria's. I can easily get a oldest value based one value, but I'm struggling...
  • Can you check my code please
    Hi, Im going round in circles with a Compil Error End With Without With Here is the code [CODE=rich] Private Sub...
  • Combining 2 pivot tables into 1 chart
    Hello everyone, My question sounds simple but I do not know the answer. I have 2 pivot tables and 2 charts that go with this. However I want to...
Top