+ Reply to Thread
Results 1 to 8 of 8

VBA Alternative to array index match

  1. #1
    Registered User
    Join Date
    09-03-2014
    Location
    South Africa
    MS-Off Ver
    MS Office 2010
    Posts
    40

    VBA Alternative to array index match

    Good day,

    I am currently using a Array index function to return multiple values based on data entered into cells D2-D10000.

    My workbook is divided into 7 sheets. A main data sheet whereby I enter data in columns A-Z.

    Depending on the letter(a,b,c,d) entered into D2-D10000, the data intered into E-Z in my main data sheet will then be "copied" to my other 6 sheets using an array index function based on the letter entered into D2-D10000 in my main data sheet.

    The array formula used in my 6 sheets to return multiple values:
    {=IFERROR(INDEX('Combined Cancellations'!$A:$Q,SMALL(IF('Combined Cancellations'!$D$2:$D$9892="b",ROW('Combined Cancellations'!$D$2:$D$9892)),ROW(1:2)),2),"")}

    Is there a VBA code I can use to perform a similar task?

    Any help would be appreciated

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: VBA Alternative to array index match

    "Is there a VBA code I can use to perform a similar task?"
    Yes certainly.
    What is the reason you need to turn to macro?
    Can you send a short sample of your data to help to prepare and debug the code.
    - Battle without fear gives no glory - Just try

  3. #3
    Registered User
    Join Date
    09-03-2014
    Location
    South Africa
    MS-Off Ver
    MS Office 2010
    Posts
    40

    Re: VBA Alternative to array index match

    Good day,

    Thank you for your response.

    I have attached the file. I removed all details due to size constraint. I believe you will get a feel for what I am trying to do.

    Basically the main data is entered into the Combined sheet and then distributed to Sheet 1 - Sheet 6 based on data entered into column d of combined sheet.
    The main data is pulled from clients sheet.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: VBA Alternative to array index match

    Do I'm wrong but there is no data in the file ...!

  5. #5
    Registered User
    Join Date
    09-03-2014
    Location
    South Africa
    MS-Off Ver
    MS Office 2010
    Posts
    40

    Re: VBA Alternative to array index match

    There is no data o. It is actual info of clients so I cannot publish the data. Can you not use "dummy' data?

  6. #6
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: VBA Alternative to array index match

    Can you not use "dummy' data? yes and please prepare your file with such data and pay attention to have the same data type: Date, String, Currency etc...

  7. #7
    Registered User
    Join Date
    09-03-2014
    Location
    South Africa
    MS-Off Ver
    MS Office 2010
    Posts
    40

    Re: VBA Alternative to array index match

    Good day,

    Please find updated file
    Attached Files Attached Files

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: VBA Alternative to array index match

    This should do
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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] Help with INDEX, MATCH and MAX formula - or alternative solution
    By glynnseal in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-04-2014, 08:50 AM
  2. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  3. Fast Index/Match Alternative in VBA
    By RS15 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-10-2014, 02:41 PM
  4. Replies: 1
    Last Post: 06-25-2013, 04:13 AM
  5. UDF Lookup function as an alternative to array functions & match/index
    By Andrew_Harris in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-15-2012, 09:34 PM
  6. [SOLVED] Index & Match Alternative?
    By jeversf in forum Excel General
    Replies: 2
    Last Post: 04-02-2012, 01:58 AM
  7. Replies: 3
    Last Post: 06-14-2011, 08:16 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