+ Reply to Thread
Results 1 to 6 of 6

Helper column instead of array?

  1. #1
    Forum Contributor
    Join Date
    11-04-2015
    Location
    Copenhagen, Denmark
    MS-Off Ver
    2010
    Posts
    114

    Helper column instead of array?

    Example attached

    I have 2 workbooks and I need one column of data from workbook 1 into workbook 2.

    There are 2 criteria I can use (date and flight number) to identify the needed data (customer name).

    I have roughly 108.000 rows of data.

    I tried an array formula but after roughly 15 hours it was not done and I assume it never will be.

    So, any alternatives? I was considering creating a new column in each workbook by combining date&flight number and then use a standard index-match.

    Would this work? How would it work?

    Any other tips?
    Attached Files Attached Files

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

    Re: Helper column instead of array?

    In that example book, you could use A as your helper column
    A6: =B6&"|"&C6

    Then in I6
    =INDEX(D$1:D$110000,match(G6&"|"&H6,A$1:A$110000,0))

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,740

    Re: Helper column instead of array?

    In workbook 1 you would join the date and the flight number together, for example put this formula in E6:

    =B6&"-"&C6

    I've just used a hyphen to separate the two parts. This formula would be copied down to cover all your data. Then in workbook 2 you would have your INDEX/MATCH formula - e.g. use this formula in I6:

    =INDEX(D:D,MATCH(G6&"-"&H6,E:E,0))

    although you will probably use semicolons ( ; ) instead of commas ( , ) in the formula. Again, this is copied down as far as you need to. You can avoid #N/A errors (where the combination is not found in sheet1), by doing this:

    =IFERROR(INDEX(D:D,MATCH(G6&"-"&H6,E:E,0)),"")

    Hope this helps.

    Pete

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Helper column instead of array?

    I'm afraid the file you attached is not helpful because it does not show how the data is organized in workbook 1. It is just an explanation of your question.

    I am skeptical that you have the correct array formula, if it is hanging for 15 hours. You would get a more complete response here if you attached a small version of your file, with maybe 1000 rows.

    The alternative you want is to create a helper column like this in workbook 1, in column D:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Then in workbook 2

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Helper column instead of array?

    My answer was the latest and not necessarily the best but as you can see they are all essentially the same. I will just mention that all three of us included a separator character between the two values (| - +). When you concatenate like this, a date will be converted to an integer. The separator prevents ambiguity between cases like

    42824 123

    and

    4282 4123

    There is unlikely to be ambiguity with dates (the difference between the two dates I showed above is about 110 years) but it's a best practice.

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

    Re: Helper column instead of array?

    I am skeptical that you have the correct array formula, if it is hanging for 15 hours.
    I thought about that too, but being an advocate for the use of helper columns, I'm certainly not going to tell someone to NOT use one.. lol.

+ 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] Using SUMPRODUCT/ARRAY formula instead of helper column
    By esbencito in forum Excel General
    Replies: 6
    Last Post: 01-23-2018, 10:22 PM
  2. [SOLVED] Adapt array formula to remove need for helper row
    By JayUSA in forum Excel General
    Replies: 2
    Last Post: 09-20-2017, 10:56 PM
  3. Replies: 1
    Last Post: 08-02-2017, 01:51 PM
  4. Sort by helper column even if values in helper are alike
    By NoSleepForMe in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-10-2016, 04:14 AM
  5. [SOLVED] Using array formula instead of creating a helper column
    By jasonleewkd in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-10-2014, 12:55 PM
  6. [SOLVED] Removing helper columns, need array substitute (attachment)
    By ottoex in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-08-2014, 05:13 AM
  7. Array Formulas instead of helper columns
    By ElmerS in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 11-25-2009, 03:52 PM

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