+ Reply to Thread
Results 1 to 8 of 8

what is the wrong of formula

  1. #1
    Registered User
    Join Date
    02-23-2015
    Location
    hk
    MS-Off Ver
    window7
    Posts
    240

    what is the wrong of formula

    dear sir

    What is the wrong of the formula which should match sheet 2 column a and column d for sheet 1 a2,b2. Pls find attached file

    =INDEX(Sheet2!$A$1:$D$150,MATCH(A2,Sheet1!$A$2:$A$2,0),MATCH(B2,Sheet1!$B$2:$B$2,0))

    tks
    tom
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: what is the wrong of formula

    MATCH(A2,Sheet1!$A$2:$A$2,0)
    is matching A2 against itself, result 1

    MATCH(B2,Sheet1!$B$2:$B$2,0)
    is matching B2 against itself, result 1

    The cell in INDEX(Sheet2!A1,D150,1,1) contains 42184 hence the value in Sheet1!D2
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: what is the wrong of formula

    You have to use INDEX(MATCH(IF...)))

    Try

    In D2
    =INDEX(Sheet2!$A$1:$D$150,MATCH($A2,IF($B2=Sheet2!$D$2:$D$14,Sheet2!$A$1:$A$14),0),COLUMN()-3)
    Array formula, use Ctrl-Shift-Enter

  4. #4
    Registered User
    Join Date
    02-23-2015
    Location
    hk
    MS-Off Ver
    window7
    Posts
    240

    Re: what is the wrong of formula

    dear special k

    sorry i still try but fail

    =INDEX(Sheet2!$A$1:$D$200,MATCH(B2,Sheet2!$D$1:$D$200,0),MATCH(A2,Sheet2!$A$1:$A$200,0))

    please kindly help

    tom

  5. #5
    Registered User
    Join Date
    02-23-2015
    Location
    hk
    MS-Off Ver
    window7
    Posts
    240

    Re: what is the wrong of formula

    Hi Special K
    D2,e2 work but f2,g2 dont work

    In D2
    =INDEX(Sheet2!$A$1:$D$150,MATCH($A2,IF($B2=Sheet2!$D$2:$D$14,Sheet2!$A$1:$A$14),0),COLUMN()-3)

    pls help

    tks
    tom

  6. #6
    Registered User
    Join Date
    02-23-2015
    Location
    hk
    MS-Off Ver
    window7
    Posts
    240

    Re: what is the wrong of formula

    hi speical k

    f2,g2,e3,f3,g3 dont work. pls help

    tks a lot
    tom

  7. #7
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,459

    Re: what is the wrong of formula

    Try:

    Please Login or Register  to view this content.
    Ctrl-shift-enter
    Quang PT

  8. #8
    Registered User
    Join Date
    02-23-2015
    Location
    hk
    MS-Off Ver
    window7
    Posts
    240

    Re: what is the wrong of formula

    dear sir,

    it dont work also when i put it in cell D2. please help

    Tks
    Tom

+ 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. Eh? What is wrong with my IF formula?
    By D_N_L in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-31-2014, 11:46 AM
  2. What's wrong about this formula?
    By etkraptor in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-22-2013, 05:07 AM
  3. [SOLVED] What is wrong with this formula?
    By AAAAmy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-01-2012, 10:21 PM
  4. what's wrong w/ this formula?
    By zazzz in forum Excel General
    Replies: 10
    Last Post: 08-19-2011, 10:11 AM
  5. What is wrong with this formula?
    By ashncg in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 02-02-2011, 12:21 PM
  6. What is wrong with this formula?
    By scott45 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-27-2005, 02:05 PM
  7. formula around wrong way
    By Micayla Bergen in forum Excel General
    Replies: 3
    Last Post: 06-06-2005, 02:05 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