+ Reply to Thread
Results 1 to 12 of 12

If Vlookup finds result, return specific "Phrase"

Hybrid View

  1. #1
    Registered User
    Join Date
    08-13-2013
    Location
    My House, AL.
    MS-Off Ver
    Excel 2010
    Posts
    39

    If Vlookup finds result, return specific "Phrase"

    =If(VLOOKUP(B2,'HDM- Charts Coded Not Released '!$E:$E,1,FALSE),"HIM",(vlookup(B2,'HDM- Charts Coded Released'!$D:$D,1,false),"HIM",(vlookup('KG REASON for Hold Outpat'!$F:$F,1,false),"HIM",(vlookup('OBER Data'!S2,Assumptions!$B:$E,4,false)

    The logic is:
    If vlookup1 = yes than HIM
    If N/A than vlookup2 = yes than HIM
    If N/A than vlookup3 = yes than HIM
    If N/A than vlookup4
    Last edited by rwmeis; 08-20-2013 at 05:09 PM.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Help with a formula

    Try

    =IF(AA6="Series","Wound Care",IFERROR(VLOOKUP(S6,Assumptions!$B:$E,4,FALSE),"HIM"))

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Help with a formula

    rwmeis,

    Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem. Once you have done this please send me a PM and I will remove this request.

    To change a Title on your post, click EDIT POST then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  4. #4
    Registered User
    Join Date
    08-13-2013
    Location
    My House, AL.
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Help with a formula

    Is that descriptive enough?

  5. #5
    Registered User
    Join Date
    08-13-2013
    Location
    My House, AL.
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Help with a formula

    Your formula above worked unfortunately my logic was off sequentially. Thank you for the help though!

    =If(VLOOKUP(B2,'HDM- Charts Coded Not Released '!$E:$E,1,FALSE),"HIM",(vlookup(B2,'HDM- Charts Coded Released'!$D:$D,1,false),"HIM",(vlookup('KG REASON for Hold Outpat'!$F:$F,1,false),"HIM",(vlookup('OBER Data'!S2,Assumptions!$B:$E,4,false)

    The logic is:
    If vlookup1 = yes than HIM
    If N/A than vlookup2 = yes than HIM
    If N/A than vlookup3 = yes than HIM
    If N/A than vlookup4

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Help with a formula

    Perhaps Vlookup isn't even the best tool for your task.
    You're using 1 as the column Index, indicating you're really just verifying the existance of B2 in one of the sheets..

    Try

    =IF(COUNTIF('HDM- Charts Coded Not Released '!$E:$E,B2),"HIM",IF(COUNTIF('HDM- Charts Coded Released'!$D:$D,B2),"HIM",IF(COUNTIF('KG REASON for Hold Outpat'!$F:$F,B2),"HIM",vlookup('OBER Data'!S2,Assumptions!$B:$E,4,false))))

    The advantage here is that Countif doesn't error if the value isn't found.

  7. #7
    Registered User
    Join Date
    08-13-2013
    Location
    My House, AL.
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Please help with If/Iferror formula

    Thanks everyone for the help. This site is awesome!

  8. #8
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: IFerror , Ifthan, vlookup Formula

    Don't you have another thread going on the same thing?
    http://www.excelforum.com/excel-form...mula-asap.html

  9. #9
    Registered User
    Join Date
    08-13-2013
    Location
    My House, AL.
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: IFerror , Ifthan, vlookup Formula

    completely different logic. I have learned iferror aspect. I am confused about how to make it return the value "HIM", if the vlookup is yes.
    Last edited by rwmeis; 08-20-2013 at 05:05 PM.

  10. #10
    Registered User
    Join Date
    08-13-2013
    Location
    My House, AL.
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: IFerror , Ifthan, vlookup Formula

    Quote Originally Posted by Jonmo1 View Post
    Don't you have another thread going on the same thing?
    http://www.excelforum.com/excel-form...mula-asap.html
    If you don't have anything to contribute why even bother to waste your time?

  11. #11
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: IFerror , Ifthan, vlookup Formula

    I did contribute, thank you .
    Quote Originally Posted by Jonmo1 View Post
    Try

    =IF(AA6="Series","Wound Care",IFERROR(VLOOKUP(S6,Assumptions!$B:$E,4,FALSE),"HIM"))
    Quote Originally Posted by rwmeis View Post
    Your formula above worked unfortunately my logic was off sequentially. Thank you for the help though!

  12. #12
    Registered User
    Join Date
    08-13-2013
    Location
    My House, AL.
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: IFerror , Ifthan, vlookup Formula

    My bad...Thanks....

+ 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: 6
    Last Post: 10-08-2009, 03:45 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