+ Reply to Thread
Results 1 to 27 of 27

Find "by VLOOKUP" from the right

  1. #1
    Registered User
    Join Date
    08-29-2014
    Location
    Abu Dhabi
    MS-Off Ver
    2003
    Posts
    303

    Find "by VLOOKUP" from the right

    Find "by VLOOKUP" from the "LEFT"
    I do not want to use any other formula
    I want to use" VLOOKUP" formula
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Find "by VLOOKUP" from the right

    If you want to do it with VLookup you have to re-arange your data.

    VLookup can not find a value on the left side of the table.

    See the attached file, with the VLookup formula.

    As stated I changed the format.

    If you don't want to change the format, you need to rely on index/match.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Find "by VLOOKUP" from the right

    VLOOKUP only works from left to right. Consequently, you need to work *with* Excel, instead of *against* it.
    The best approach to lookup the ID (an the others, frankly) is to use an INDEX/MATCH combination. It's faster and more flexible.
    Please Login or Register  to view this content.
    And the "School Year" and "fail / succee" would be done this way.
    Please Login or Register  to view this content.
    I hope that helps.
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  4. #4
    Registered User
    Join Date
    08-29-2014
    Location
    Abu Dhabi
    MS-Off Ver
    2003
    Posts
    303

    Re: Find "by VLOOKUP" from the right

    I am very sorry Mister "Oeldere"
    I want to use without changing columns

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Find "by VLOOKUP" from the right

    Like this...

    =VLOOKUP(J5,CHOOSE({1,2},D6:D12,C6:C12),2,0)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Find "by VLOOKUP" from the right

    Then rely on the solutions in #3.

  7. #7
    Registered User
    Join Date
    08-29-2014
    Location
    Abu Dhabi
    MS-Off Ver
    2003
    Posts
    303

    Re: Find "by VLOOKUP" from the right

    Yes Mister "Tony"
    This is exactly the desired
    Are there other ways and other formats can be used

  8. #8
    Registered User
    Join Date
    08-29-2014
    Location
    Abu Dhabi
    MS-Off Ver
    2003
    Posts
    303

    Re: Find "by VLOOKUP" from the right

    Unfortunately Mister "Oeldere"
    I do not want to transfer any columns
    Last edited by shimaa01234; 09-05-2014 at 06:10 PM.

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Find "by VLOOKUP" from the right

    Depending on what version of Excel you're using, I can think of a couple other ways to do this but they are not the BEST solutions for this type of application.

    KISS - Keep It Simple Stupid!

  10. #10
    Registered User
    Join Date
    08-29-2014
    Location
    Abu Dhabi
    MS-Off Ver
    2003
    Posts
    303

    Re: Find "by VLOOKUP" from the right

    Unfortunately Mister "Tony" also did not work with the rest of the columns
    I use Office 2003
    Last edited by shimaa01234; 09-05-2014 at 09:51 AM.

  11. #11
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Find "by VLOOKUP" from the right

    The other columns would use a normal VLOOKUP (left to right).

    However, if you use the INDEX/MATCH, as others have suggested, you can enter a single formula and just drag copy it.

    Using VLOOKUP requires 2 different formulas.

  12. #12
    Registered User
    Join Date
    08-29-2014
    Location
    Abu Dhabi
    MS-Off Ver
    2003
    Posts
    303

    Re: Find "by VLOOKUP" from the right

    I want a function "vlookup"
    Looking in from the left, you can add them any other formula, you search for such a function, "index" with "match"

  13. #13
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Find "by VLOOKUP" from the right

    Please Login or Register  to view this content.
    The statement above from #10 (is not clear to me.)

    you have received reply's from several forummembers.

    In that case it is usefull to add to who you are replying.

  14. #14
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Find "by VLOOKUP" from the right

    please reply on my request in #13.

  15. #15
    Registered User
    Join Date
    08-29-2014
    Location
    Abu Dhabi
    MS-Off Ver
    2003
    Posts
    303

    Re: Find "by VLOOKUP" from the right

    I am very sorry Mister "Oilder"
    your idea is great, but I want you solve formulas without moving columns

  16. #16
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,662

    Re: Find "by VLOOKUP" from the right

    Please don't insult members (#14) by deliberately mis-spelling their names (#16).
    Post reported.
    Ben Van Johnson

  17. #17
    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,956

    Re: Find "by VLOOKUP" from the right

    You dont want to move/arrange columns, you dont want to use a (complex but) proven formula (post #5) and you dont want to use the suggested Index/Match function. Unfortunately, the "magic wand" forum has magic'd itself away for a vacation, so I'm not sure how much more we can help
    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

  18. #18
    Registered User
    Join Date
    08-29-2014
    Location
    Abu Dhabi
    MS-Off Ver
    2003
    Posts
    303

    Re: Find "by VLOOKUP" from the right

    I am very sorry
    I did not mean any insult, of course, but it's just a mistake in writing

  19. #19
    Registered User
    Join Date
    08-29-2014
    Location
    Abu Dhabi
    MS-Off Ver
    2003
    Posts
    303

    Re: Find "by VLOOKUP" from the right

    I "Arabic woman" so it can be a mistake in the translation
    Unfortunately again
    Last edited by shimaa01234; 09-05-2014 at 06:18 PM.

  20. #20
    Registered User
    Join Date
    08-29-2014
    Location
    Abu Dhabi
    MS-Off Ver
    2003
    Posts
    303

    Re: Find "by VLOOKUP" from the right

    Thank you very much Mr. "FDibbins"
    This answer, simple and wonderful

  21. #21
    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,956

    Re: Find "by VLOOKUP" from the right

    Intentions are sometimes lost in translation, and your explanation and apology, im sure, will be accepted by all

    Having said that, apart from the suggestions already made, Im not sure what else we can offer to help you. Your insistence on using VLOOKUP (is this homework), when there are other, relatively simple, options open to you that will, I think, give you want you want, is puzzling to me

  22. #22
    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: Find "by VLOOKUP" from the right

    Here is another variation of the LEFT(Reverse) lookup

    =VLOOKUP(J5,IF({1,0,0},$D$6:$D$12,$C$6:$C$12),2,0)
    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

  23. #23
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Find "by VLOOKUP" from the right

    Hello Shimaa,

    For ID you can use any formula suggested by Tony (Post#5) or AlKey (Post#22)

    For School Year & Fail/Success, you can use normal VLOOKUP

    ID: =VLOOKUP(J5,IF({1,0},D6:D12,C6:C12),2,0)

    School Year: =VLOOKUP(J5,D6:F12,2,0)

    Fail / Success: =VLOOKUP(J5,D6:F12,3,0)
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  24. #24
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    24,010

    Re: Find "by VLOOKUP" from the right

    Look at the attached
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  25. #25
    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: Find "by VLOOKUP" from the right

    I don't understand why does it have to be VLOOKUP only! There are ways of getting it done with one formula.

    In J6 and copy down.

    =INDEX($C$6:$F$12,MATCH(J$5,$D$6:$D$12,0),LOOKUP(ROWS(J$5:J5),{1,1;2,3;3,4}))

    C
    D
    E
    F
    G
    H
    I
    J
    5
    ID
    STUDENT NAME
    School year
    fail / succee
    NAME
    A
    6
    10034
    A
    1
    succeed
    ID
    10034
    7
    10035
    B
    2
    succeed
    School year
    1
    8
    10036
    C
    3
    Fail
    fail / succee
    succeed
    9
    10037
    D
    4
    succeed
    10
    10038
    E
    5
    succeed
    11
    10039
    F
    6
    succeed
    12
    10040
    G
    7
    Fail



    And Here is with VLOOKUP

    In J6 and copy down.

    =VLOOKUP($J$5,CHOOSE({1,2,3,4},$D$6:$D$12,$C$6:$C$12,$E$6:$E$12,$F$6:$F$12),ROWS(J$5:J5)+1,0)
    Last edited by AlKey; 09-05-2014 at 10:40 PM.

  26. #26
    Registered User
    Join Date
    08-29-2014
    Location
    Abu Dhabi
    MS-Off Ver
    2003
    Posts
    303

    Re: Find "by VLOOKUP" from the right

    Thank you very much for all your generosity
    And I'm sorry again for the misunderstanding
    And very thankful you gave me a helping
    Thank you very much Mr. "Oeldere"
    Thank you very much Mr. "Ron Coderre"
    Thank you very much Mr. "FDibbins"
    Thank you very much Mr. "Alkey"
    Thank you very much Mr. "Haseeb A"
    Thank you very much Mr. "alansidman"
    All solutions beautiful
    Last edited by shimaa01234; 09-06-2014 at 01:58 PM.

  27. #27
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Find "by VLOOKUP" from the right

    Please Login or Register  to view this content.
    Since you been pointed out writing the correct name while refering, I wonder why you consist in wrong writing my name !!!

    Edit:

    Since you was on the forum, when I posted this comment, I expected you would reply.
    Last edited by oeldere; 09-06-2014 at 08:40 AM. Reason: edit added

+ 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: 4
    Last Post: 11-17-2013, 12:05 PM
  2. [SOLVED] Find multiple "text" criteria and return as ""Yes" in Matrix
    By bertrand82 in forum Excel General
    Replies: 11
    Last Post: 04-30-2012, 09:20 AM
  3. Replies: 2
    Last Post: 07-17-2006, 06:55 PM
  4. Replies: 5
    Last Post: 06-26-2006, 09:23 PM
  5. [SOLVED] IF(VLOOKUP("MYDATA", MYNAME, 4) = 0, "TRUE", "FALSE")
    By Souris in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-17-2005, 01: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