+ Reply to Thread
Results 1 to 20 of 20

index match return value

Hybrid View

  1. #1
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,433

    Re: index match return value

    If you're already using VBA to clear cells, then just add another line of code to put the formula back.

    For example:

    Range("X30").Formula = "=INDEX(Index!$E$2:$AP$300, MATCH(A$2, Index!$A$2:$A$300, 0), ROW($A1))"
    Change "X30" to the cell where you want the formula to go (where it was originally)


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  2. #2
    Registered User
    Join Date
    05-23-2015
    Location
    Sydney, Australia
    MS-Off Ver
    Office for Mac 2011
    Posts
    68

    Re: index match return value

    Quote Originally Posted by TMS View Post
    If you're already using VBA to clear cells, then just add another line of code to put the formula back.

    Change "X30" to the cell where you want the formula to go (where it was originally)
    TMS,
    thanks so very muchly for your awesome help i used your line in the vba i have adding it to the end of the reset function and then changed the "X30" as advised and it worked perfectly!! so thanks.

    oh and i learned something odd, in the sheet i have, the formula goes into a 50 by 50 cell grid but not the top 2 rows as thats where i have some text and the cascading drop downs, so i was confounded briefly on how i would change the cell reference to put the formula back into all 50 rows and columns without it going into the top 2 rows.
    first i tried the reference A3:A50 and that worked fine for the first row. then i just wildly guessed that if i put a comma after the A50 i could reference the second row like this A3:A50,B3:B50 and that worked too. but then i realised if i was going to do it this way, i would have to do it for all 50 columns and that would be just ridiculous so i guessed again wildly and thought what would happen if i just referenced the lot like this A3:AX50 thinking it would show an error for trying to put the formula in rows 1 and 2 but to my surprise, it only put the formula in to rows 3 onwards. so it worked perfectly.

    your help has been soo awesome i thank you so very much

+ 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. Replies: 5
    Last Post: 10-16-2016, 02:33 AM
  2. [SOLVED] Vlookup/index/match to return all values that match
    By Asil01 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-09-2014, 12:49 PM
  3. [SOLVED] Combining 3 Formulas: Return all Names that Match Criteria Using Index/Match
    By bchilme in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 09-29-2014, 09:28 AM
  4. Using Index/Match to return multiple values for one match
    By superboy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-10-2014, 06:21 PM
  5. [SOLVED] INDEX MATCH then return a 0 instead of #N/A
    By AlixNB in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-02-2014, 05:02 AM
  6. VLOOKUP/INDEX/MATCH to return all values that match
    By lijia00 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-05-2014, 11:56 AM
  7. Replies: 3
    Last Post: 05-08-2013, 02:10 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