+ Reply to Thread
Results 1 to 6 of 6

What wrong in array formula-vlookup & Match

  1. #1
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 365
    Posts
    1,255

    Post What wrong in array formula-vlookup & Match

    Dear Sir,

    Pls find enclosed in attachment a sample excel.

    I have a problem that I want value in 3rd column looking the criteria of 1st column and 2nd column and filling the value in 3rd column from next sheet picking up value from there.

    Can anybody help in this regard.

    Thanks in advance.

    With Regds,

    Suresh
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: What wrong in array formula-vlookup & Match

    1st, you seem to have calcs set to manual (change under Formulas/Calculation)
    then tr this regular formula, copied down...
    =VLOOKUP(B3,Data!$B$2:$G$7,IF(C3="S",3,6),0)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: What wrong in array formula-vlookup & Match

    If you want to use your version, change it to this regular formula...
    =VLOOKUP(B3,Data!$B$2:$G$7,MATCH(C3&"-Value",Data!$B$1:$G$1,0),0)
    or
    =VLOOKUP(B3,Data!$B$2:$G$7,MATCH(C3&"*",Data!$B$1:$G$1,0),0)

    In your version...
    =VLOOKUP(B3,Data!$B$2:$G$7,MATCH(Sheet1!C3,Data!$C$2:$C$7,0)+5,0)
    the MATCH is trying to find S in the 2nd row. but even if you were looking in the 1st row, there is no S, only S-Value

    Hope this helps?

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: What wrong in array formula-vlookup & Match

    This formula will work too:

    =IF(C3="S",OFFSET(Data!$B$1,MATCH(B3,Data!$B$2:$B$7,0),2),OFFSET(Data!$B$1,MATCH(B3,Data!$B$2:$B$7,0),5))
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 365
    Posts
    1,255

    Re: What wrong in array formula-vlookup & Match

    Dear Sir,

    Thanks for your prompt reply.
    All your formula gives me the desired result,except last formula-
    =VLOOKUP(B3,Data!$B$2:$G$7,MATCH(Sheet1!C3,Data!$C$2:$C$7,0)+5,0)

    Any how thanks very much.

    With Regds,
    Suresh



    Quote Originally Posted by FDibbins View Post
    If you want to use your version, change it to this regular formula...
    =VLOOKUP(B3,Data!$B$2:$G$7,MATCH(C3&"-Value",Data!$B$1:$G$1,0),0)
    or
    =VLOOKUP(B3,Data!$B$2:$G$7,MATCH(C3&"*",Data!$B$1:$G$1,0),0)

    In your version...
    =VLOOKUP(B3,Data!$B$2:$G$7,MATCH(Sheet1!C3,Data!$C$2:$C$7,0)+5,0)
    the MATCH is trying to find S in the 2nd row. but even if you were looking in the 1st row, there is no S, only S-Value

    Hope this helps?

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: What wrong in array formula-vlookup & Match

    Happy to help, and by the way, that last formula was the 1 you showed us in your file

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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] VLOOKUP with MATCH... Displaying wrong column information
    By oneillgirl808 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-13-2013, 09:14 PM
  2. What's wrong with my array formula
    By M.Siler in forum Excel General
    Replies: 4
    Last Post: 05-27-2005, 05:05 PM
  3. [SOLVED] What's wrong with my array formula
    By M.Siler in forum Excel General
    Replies: 4
    Last Post: 05-27-2005, 05:05 PM
  4. Array Formula: What am I doing wrong?
    By frankybenali in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-17-2005, 07:41 AM
  5. [SOLVED] Match / Vlookup within an Array formula
    By Hari Prasadh in forum Excel General
    Replies: 3
    Last Post: 02-03-2005, 01:06 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