+ Reply to Thread
Results 1 to 9 of 9

IF Function with Lookup from Right to Left

  1. #1
    Registered User
    Join Date
    05-09-2019
    Location
    Mumbai
    MS-Off Ver
    Office 365 2019
    Posts
    3

    IF Function with Lookup from Right to Left

    I am trying to lookup a value from one sheet to another, ensure that a certain criteria of the matched value is met (using the IF function) and hence I want my return value to be from the same row, a few columns to the left.

    Formula I am using:

    =IF(vlookup(lookup value, table array, column number, FALSE)="Accepted", return value from same row but 5 columns to the left)

    I hope I made sense
    Last edited by AliGW; 05-09-2019 at 03:37 AM.

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Help needed on IF Function

    VLOOKUP will only work when looking from left to right not right to left.

    Maybe look at using INDEX/MATCH.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,375

    Re: IF Finction with Lookup from Right to Left

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. As you are new, I have done it for you this time.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    05-09-2019
    Location
    Mumbai
    MS-Off Ver
    Office 365 2019
    Posts
    3

    Re: IF Finction with Lookup from Right to Left

    Thanks Ali Understood your point.

  5. #5
    Registered User
    Join Date
    05-09-2019
    Location
    Mumbai
    MS-Off Ver
    Office 365 2019
    Posts
    3

    Re: Help needed on IF Function

    ok let me research on index/match and see if it can work

  6. #6
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,605

    Re: Help needed on IF Function

    Quote Originally Posted by kersplash View Post
    VLOOKUP will only work when looking from left to right not right to left.

    Maybe look at using INDEX/MATCH.
    Errrr, it can be used to look from right to left

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,375

    Re: Help needed on IF Function

    Quote Originally Posted by Pepe Le Mokko View Post
    Errrr, it can be used to look from right to left
    Not natively - you have to add a CHOOSE function to make it work. INDEX MATCH can be used either way without a workaround.

  8. #8
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,605

    Re: IF Function with Lookup from Right to Left

    On the pontification trail again?

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,375

    Re: IF Function with Lookup from Right to Left

    No, just pointing out a fact.

    Errrr, it can be used to look from right to left
    This is somewhat misleading. VLOOKUP cannot do this natively. You have to add a CHOOSE function to do it (as I said above). Something like this:

    =VLOOKUP(F2,CHOOSE({1,2},B2:B4,A2:A4),2,0)

    See here for more on the technique: https://www.myonlinetraininghub.com/...t-using-choose

+ 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: 8
    Last Post: 06-02-2016, 03:00 AM
  2. [SOLVED] a function to copy the things needed from one sheet to another. only the ones needed
    By karim.zheng in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-31-2015, 09:49 AM
  3. [SOLVED] IF function help needed please
    By ballst in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-03-2014, 10:58 AM
  4. [SOLVED] If Function Help Needed
    By wheatgrass in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-03-2012, 05:07 PM
  5. If Then Function Help needed
    By wheatgrass in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-14-2012, 01:41 PM
  6. sum function help needed
    By novice2430 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 12-12-2008, 04:50 PM
  7. Help needed with IF function
    By onzmachine in forum Excel General
    Replies: 9
    Last Post: 02-20-2007, 12:08 AM

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.6.0 RC 1