Solved

limt array range to increase speed

Posted on 2011-09-12
8
248 Views
Last Modified: 2012-05-12
I am using the following as an array lookup and it works but the speed is killing me.

={IFERROR(INDEX(Data!F:F,MATCH($A$31&$C39,Data!A:A&Data!D:D,0)),0)}

I only need columns A-J and Rows 5 - 2000 with row 5 being the field name.  How can I adjust this lookup to get me more speed?

Thanks

0
Comment
Question by:vmccune
  • 5
  • 3
8 Comments
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
ID: 36524618
Clearly you can limit the format to those rows,....perhaps also a different syntax, try

=IFERROR(INDEX(Data!F$5:F$2000,MATCH(1,IF(Data!A$5:A$2000=$A$31,IF(Data!D$5:D$2000=$C39,1)),0)),0)

confirmed with CTRL+SHIFT+ENTER

How many of these do you have?

regards, barry
0
 

Author Comment

by:vmccune
ID: 36524647
1000 rows and about 40 columns.
0
 

Author Comment

by:vmccune
ID: 36524693
the syntax above returne FALSE in the cell and crtl-shift-enter does not provice the right "}"


0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

Author Comment

by:vmccune
ID: 36524756
I got the syntax copied and it works but if I copy it down I get the same value in each row.

0
 
LVL 50

Expert Comment

by:barry houdini
ID: 36524762
It's working OK for me......!

Sorry if you know.....how are you doing CTRL+SHIFT+ENTER? You need to click in the cell with the formula and then press F2 to select - then hold down CTRL and SHIFT while pressing enter.....

Is the A31 fixed for all the formulas with C39 changing as you copy down - what about the lookup ranges does col A + Col D become B and E then C and F etc.?

barry
0
 

Author Comment

by:vmccune
ID: 36524766
forgot to recalc.  its working.  Checking speed now.
0
 
LVL 50

Expert Comment

by:barry houdini
ID: 36524775
>I got the syntax copied and it works but if I copy it down I get the same value in each row

make sure calculation is set to auto....or press F9 to re-calculate.....
0
 

Author Closing Comment

by:vmccune
ID: 36524801
Great!  Thanks.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question