+ Reply to Thread
Results 1 to 4 of 4

Thread: Index match modification

  1. #1
    Registered User
    Join Date
    03-02-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    17

    Index match modification

    I would greatly appreciate some help tweaking the below formula. The formula works great but is restricted to the specific values within the datasheet ranges. Is it possible to add to the formula or tweak it so that if I input a value that was not contained in the data ranges it would automatically input the data contained in cells: Costings!Z1:Z100


    =INDEX(PipeOD!$B$3:$B$810,LOOKUP(9.9E+307,CHOOSE({1,2},MATCH(G6,PipeOD!$A$3:$A$810,0),MATCH(G6,PipeO D!$B$3:$B$810,0),)))

    My excel skills suck so any help is appreciated!!!

  2. #2
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: Index match modification

    I am not exactly sure what you mean by:

    if I input a value that was not contained in the data ranges it would automatically input the data contained in cells: Costings!Z1:Z100
    So if the formula above errors out you want to invoke an entirely different lookup formula?

    Can you elaborate?
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Registered User
    Join Date
    03-02-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Index match modification

    Yes that is correct. The above formula references sheet 'PipeOD'. Currently on sheet 'Costings' I can enter either one of two data formats and the formula will search the data contained in sheet 'PipeOD' and enter the value in column B.

    E.g. If I enter either 2" or just 50.8mm in sheet 'Costings', another column also in 'Costings' will be populated by 50.8mm automatically. There is a data set in sheet 'PipeOD' that is being referenced, however if I enter a figure that is not contained within that dataset it just displays error. Basically what I want is for the formula to automatically enter the figure contained in cell G6 (the original data entry cell where I put 2" or 50.8mm) in the event of error.

    This is a bit confusing, but thanks.

  4. #4
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    567

    Re: Index match modification

    =IFERROR(INDEX(PipeOD!$B$3:$B$810,LOOKUP(9.9E+307,CHOOSE({1,2},MATCH(G6,PipeOD!$A$3:$A$810,0),MATCH( G6,PipeO D!$B$3:$B$810,0),))),G6)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.2.0