+ Reply to Thread
Results 1 to 6 of 6

Vlookup and Nested IF condition checker

  1. #1
    Registered User
    Join Date
    07-16-2019
    Location
    Chennai
    MS-Off Ver
    2019
    Posts
    3

    Post Vlookup and Nested IF condition checker

    HI All,

    I have a table which has denial codes and whether it is part of a group which is available in sheet - "Codes"

    I have another table (sheet-'Data") where for a transaction multiple denial codes arise, and if any is part of the group in the previous table, then the output should be Yes
    We are currently, delimiting the denial codes, using vlookup and manually checking whether yes or no arises. Is there anyway to do it dynamically using formula.
    Attached Files Attached Files
    Last edited by Bhurockgun; 07-16-2019 at 06:13 AM.

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Vlookup and Nested IF condition checker

    Not entirely sure I follow the requirement - but if you're saying you should have Yes returned in Column C where 1+ code in Col B can be found in first sheet with Yes assigned then...

    Assuming latest XL version

    D1:=","&TEXTJOIN(",",TRUE,INDEX(REPT(SUBSTITUTE(Codes!A2:A9," ",""),Codes!B2:B9="Yes"),0))&","

    C2:=REPT("Yes",ISNUMBER(LOOKUP(9.99E+307,1/COUNTIF(D$1,"*,"&SUBSTITUTE(TRIM(MID(SUBSTITUTE($B2,",",REPT(" ",100)),1+100*(ROW($1:$10)-1),100))," ","")&",*"))))
    copied down to C6

    above would return Yes in C2, C4, C5 & C6

  3. #3
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Vlookup and Nested IF condition checker

    See attached file, I used this code:
    Please Login or Register  to view this content.
    Regards,
    Antonio
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-16-2019
    Location
    Chennai
    MS-Off Ver
    2019
    Posts
    3

    Re: Vlookup and Nested IF condition checker

    It is working, but very difficult to understand the formula In the C2 cell. Thanks a lot.

  5. #5
    Registered User
    Join Date
    07-16-2019
    Location
    Chennai
    MS-Off Ver
    2019
    Posts
    3

    Re: Vlookup and Nested IF condition checker

    Brilliant Thanks a lot. This would be helpful if it is combined with =IF(ISNUMBER(SEARCH("Yes",C2)),"Yes","No").

  6. #6
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Vlookup and Nested IF condition checker

    Excuse me, I didn't understand fine.

    Please try new attached file, I hope that it's what you need.

    I used this code:
    Please Login or Register  to view this content.
    Regards,
    Antonio
    Attached Files Attached Files

+ 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. How to use multi nested - If with a and or condition
    By NewLearner01 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-02-2019, 11:37 AM
  2. [SOLVED] Need help in nested if condition
    By marimuthuravi in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-08-2018, 04:27 AM
  3. [SOLVED] Nested vlookup or nested IFAND function?
    By jeptik in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-11-2017, 02:27 AM
  4. [SOLVED] Nested If condition
    By nawas in forum Excel General
    Replies: 7
    Last Post: 02-05-2016, 01:42 AM
  5. [SOLVED] Nested If condition
    By nawas in forum Excel General
    Replies: 3
    Last Post: 01-15-2015, 05:00 AM
  6. [SOLVED] Nested IF Condition
    By Enigma Trio in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-11-2014, 01:35 AM
  7. Need Formula on Nested IF Condition
    By Regina HR in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-01-2014, 02:49 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