+ Reply to Thread
Results 1 to 9 of 9

Array Alternative

  1. #1
    Registered User
    Join Date
    11-18-2016
    Location
    Seattle, Washington
    MS-Off Ver
    2013
    Posts
    60

    Array Alternative

    Hi,

    I'm looking for an alternative to the current array formula I'm using.

    If I have the following table:

    A B C
    1 Order No. Vendor Hours Left
    2 10043572MI Company 1 13.00
    3 10043574MI Company 1 13.00
    4
    5 10043585NJ Company 2 23.00
    6 10043625IL Company 2 37.00
    7
    8 10043590FL Company 3 23.00
    9 10043591FL Company 3 7.00
    10 10043595MI Company 3 28.00
    11 10043603NJ Company 3 28.00
    12 10043619OR Company 3 37.00

    And I want to return an list separting the orders on a seperate sheet.

    I currently use:

    Please Login or Register  to view this content.
    As an array. Ctrl, Shift, Enter.

    So it looks for the company name on "Duplicates!$A$3" and matches it in VendorEmail!B:B and returns the corresponding value in VendorEmail!A:A. VALUE(P2) is the # rows down. So P2=1 for company 3, we get:

    8 10043590FL Company 3 23.00

    P2=4 we get:

    11 10043603NJ Company 3 28.00

    Is there a faster alternative to this array formula?

    Thank you!

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Array Alternative

    The greatest contributing factor to the slowness of that formula is the use of entire column references like A:A
    You should restrict all those ranges to the actual used area of the sheet like A$1:A$1000

    The indirect probably doesn't help much either.
    But I'm not clear on what the indirect is there for, what exactly is in Duplicates!$A$3

  3. #3
    Registered User
    Join Date
    11-18-2016
    Location
    Seattle, Washington
    MS-Off Ver
    2013
    Posts
    60

    Re: Array Alternative

    Wow, just typed this twice in a row and hit 'reply to thread' instead of post quick reply.

    Anyways, I will definitely get to those after I solve this array issue.

    Duplicates!$A$3 is the company name I'm looking up/matching. Duplicates!$A$4 will be another and so on.

    Thank you for the feedback!

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Array Alternative

    Then I don't see the need for it to be INDIRECT..
    VendorEmail!B:B=INDIRECT("Duplicates!$A$3")
    can just be
    VendorEmail!B$1:B$1000=Duplicates!$A$3

  5. #5
    Registered User
    Join Date
    11-18-2016
    Location
    Seattle, Washington
    MS-Off Ver
    2013
    Posts
    60

    Re: Array Alternative

    VBA on Duplicate! removes duplicate company names and therefore deletes cells creating a reference error.

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Array Alternative

    Maybe add code to your existing code that puts the formula back in the cells correctly ?
    Just going through things that cause slowness, indirect is a big one.

    Maybe instead of indirect, try Index
    VendorEmail!B$1:B$1000=INDEX(Duplicates!$A:$A,3)

  7. #7
    Registered User
    Join Date
    11-18-2016
    Location
    Seattle, Washington
    MS-Off Ver
    2013
    Posts
    60

    Re: Array Alternative

    That certainly works so far. Thank you!

    Do you know of any alternatives to the index small array?

  8. #8
    Registered User
    Join Date
    11-18-2016
    Location
    Seattle, Washington
    MS-Off Ver
    2013
    Posts
    60

    Re: Array Alternative

    Anybody have any suggestions on alternatives to the array?

    Please Login or Register  to view this content.

  9. #9
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Array Alternative

    I said ALL the ranges.
    And each should be the same rows (the one in the index that used to be indirect is ok)
    Quote Originally Posted by theskyscraper1 View Post
    Please Login or Register  to view this content.

+ 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] Array formula alternative
    By steve@stanley in forum Excel General
    Replies: 4
    Last Post: 03-20-2017, 06:41 AM
  2. Alternative to array formula
    By dmschave in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 03-26-2015, 10:11 AM
  3. [SOLVED] Array functions & COUNTIFS (or alternative f-n)
    By akamenov88 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-29-2015, 03:51 PM
  4. NthMatch UDF as An Alternative to Array function...
    By Vikas_Gautam in forum Tips and Tutorials
    Replies: 27
    Last Post: 01-13-2015, 11:47 PM
  5. [SOLVED] Array formula too slow. Need an alternative..
    By cool_anu4u in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-28-2013, 04:56 AM
  6. Alternative to an array formula.
    By RunHard in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-16-2009, 09:18 AM
  7. Array Formula Alternative
    By smninos in forum Excel General
    Replies: 10
    Last Post: 07-15-2009, 04:31 PM

Tags for this Thread

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