+ Reply to Thread
Results 1 to 9 of 9

Array Formula

  1. #1
    Registered User
    Join Date
    07-11-2012
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    18

    Array Formula

    {=IFERROR(INDEX('C:\Shared Documents\Mandatory Training\[Email Data 2014.xls]Sheet 1'!$C$1:$L$60000,(MATCH(C5&$E$2,'C:\Shared Documents\Mandatory Training\[Email Data 2014.xls]Sheet 1'!$C$1:$C$60000&'C:\Shared Documents\Mandatory Training\[Email Data 2014.xls]Sheet1'!$E$1:$E$60000,0)),4),$O$2)}

    The above formula is entered as an array formula and does the following.
    Having looked at my data file & matched the person (cell C5) with the course name ($E$2) the formula returns the value in 4th column or if it can’t match the person/course name it returns the value that I place in cell $O$2 e.g. “not registered”

    What I want to know is whether or not there is an easier and less demanding (on excel) formula. This is because I am looking to set this up to cover probably 2000 people (so 2,000 rows & about 6 columns to cover the different courses) and the data file could cover some 50,000 rows of data and it seems to take excel an awful long time to ‘update links’ successfully and also once I've input the formula in 1 row as an array formula - for me to drag the formula down just 500 rows seems to take absolutely ages or even freezes excel.

    Could anyone help please?

    Dave

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Array Formula

    Hi,

    Performing the concatenations in helper columns and referencing those ranges instead should improve things considerably.

    As I imagine would having the source file open during re-calculation.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    07-11-2012
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Array Formula

    I did try having the source file open but still seemed to take ages. Can you explain how i could use the concatentate formula to help in this situation??

    Thanks

    Dave

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Array Formula

    You're already concatenating!

    I mean, instead of performing the concatenation (the ampersands) of the two source ranges within the formula, so that, effectively, each formula has to perform this concatenation as part of its calculation, why don't you add an extra column to your source data and use this to concatenate columns C and D?

    You then simply reference this one column in the formula instead.

    You can also do a similar exercise for the match_values, for which you are also performing the concatenation within the formula itself, and therefore adding extra resource into the calculation.

    Also consider whether 60,000 is an absolute minimum upper limit for your range references. Array formulas will calculate over all cells in the specified range, whether empty or not.

    Regards
    Last edited by XOR LX; 03-20-2014 at 02:04 PM.

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Array Formula

    In fact, I forgot the most important point!!

    If you don't need to concatenate within the formula, then this formula doesn't need to be entered as an array formula!

    Regards

  6. #6
    Registered User
    Join Date
    07-11-2012
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Array Formula

    Sorry but I have only 'some' knowledge of excel and don't really understand what exactly you mean. I have uploaded a sample which hopefully shows better what I need to accomplish. Also not sure whether I need to 'Concatenate' or not but basically I need a formula that will look to match 2 pre-defined items (Employee No and course name) within my data and give an answer on the same row where it finds this information.

    sorry if that isn't very well explained but hopefully my upload will be a little clearer ?

    Thanks again

    Dave
    Attached Files Attached Files

  7. #7
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Array Formula

    I'll try once more.

    Add an extra column to your DATA sheet. Let's use column K for now since it is empty.

    Put this formula in cell K2:

    =D2&E2

    Copy down as required.

    Your formula in D2 of the FINAL SHEET is now:

    =IFERROR(INDEX(DATA!$D$1:$J$6000,MATCH($B2&$D$1,DATA!$K$1:$K$6000,0),3),$O$2)

    and no longer needs to be entered as an array formula.

    Regards

  8. #8
    Registered User
    Join Date
    07-11-2012
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Array Formula

    Thanks that seems to work so i will try it on my data sheet and hopefully that will make it much quicker. Thanks for the help but don't think there was a need for "I'll try once more". We're not all familiar with many excel formula's hence the forums...

  9. #9
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Array Formula

    You're welcome. And you're right - there was no need for it, so apologies.

    Regards

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Evaluate Named Range Array formula to VBA Array
    By cmore in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-07-2014, 09:06 PM
  2. Array formula + Array formula with criteria that lookups a Table
    By anrichards22 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-16-2013, 11:41 AM
  3. Replace hard coded array in formula with link to input array
    By David Brown in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-08-2011, 07:45 AM
  4. Converting 3x10 array to a 1X30 array to run a Match formula
    By NBVC in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-08-2009, 07:45 AM
  5. [SOLVED] Tricky array formula issue - Using array formula on one cell, then autofilling down a range
    By aspenbordr in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-27-2005, 11:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1