+ Reply to Thread
Results 1 to 5 of 5

Problem with IF(INDEX,(Match))

  1. #1
    Forum Contributor
    Join Date
    09-09-2009
    Location
    Columbus. Ohio
    MS-Off Ver
    Excel 2000
    Posts
    199

    Problem with IF(INDEX,(Match))

    I have a dropdown list that references seperate worksheets. I am trying to pull data (text) but only from tables on each sheet dependent on the name in the list. The following formula works only for the first IF statement, if I select a different name I get a FALSE statement. I will have a total of 5 sheets and 5 names on the list but only am showing 2 names for clarity.


    Please Login or Register  to view this content.

    At present the sheets as shown in the formula have the data in the same columns on each sheet. Not all 5 sheets will have the data in the same column but if necessary I can shift the data.

    Thanks

    Jim O
    Last edited by Jogier505; 07-07-2010 at 04:00 PM.

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

    Re: Problem with IF(INDEX,(Match))

    A missing parenthesis...

    Try:


    Please Login or Register  to view this content.
    Could possibly be shortened to?:

    =IF($F$2="","",INDEX(INDIRECT("'"&$F$2&"!$D$2:$D$78"),MATCH($F$4,INDIRECT("'"&$F$2&"!$C$2:$C$78"),0)))

    this is a volatile formula though.... because of INDIRECT
    Where there is a will there are many ways.

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

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

  3. #3
    Forum Contributor
    Join Date
    09-09-2009
    Location
    Columbus. Ohio
    MS-Off Ver
    Excel 2000
    Posts
    199

    Re: Problem with IF(INDEX,(Match))

    NBVC,

    I am getting a #REF error. I have attached a sample file to explaine the issue further.



    Jim O
    Attached Files Attached Files

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Problem with IF(INDEX,(Match))

    I missed a couple of apostrophes.. .my apologies...

    =IF($F$2="","",INDEX(INDIRECT("'"&$F$2&"'!$D$2:$D$78"),MATCH($F$4,INDIRECT("'"&$F$2&"'!$C$2:$C$78"),0)))

  5. #5
    Forum Contributor
    Join Date
    09-09-2009
    Location
    Columbus. Ohio
    MS-Off Ver
    Excel 2000
    Posts
    199

    Re: Problem with IF(INDEX,(Match))

    NBVC

    That works beautifully.

    Thanks for your time.

    JIm O

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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