+ Reply to Thread
Results 1 to 19 of 19

If, and, vlookup, istext

  1. #1
    Registered User
    Join Date
    02-27-2018
    Location
    TX
    MS-Off Ver
    2016
    Posts
    54

    If, and, vlookup, istext

    Hello all,

    I am trying to combine several functions to do the following -

    Lookup data on another worksheet to find a match, once the match is found, check another column on the same worksheet and see if it contains ANY text. IF it contains text, return a value of "Complete", if it does NOT contain text, return a value of "WIP"

    The current formula is not working and is only returning "No" and not picking up the text in the box. Attached is my example sheet. All of my columns/tables have to stay as they are so I cannot add or take away any columns/tables.

    Thank you!
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: If, and, vlookup, istext

    Hi,

    Try

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,878

    Re: If, and, vlookup, istext

    In B3

    =IF(ISTEXT(VLOOKUP(A2,Table1,2,0)),"Complete","WIP")

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,977

    Re: If, and, vlookup, istext

    First, your VLOOKUP is looking in Table2, which is on Sheet1. I think you mean to look in Table1, which is in Sheet2.

    Second, the formula you have does not look quite like what you described; it has Yes and No, not Complete or WIP.

    I do not understand what you are trying to do with this part of your formula: (ISTEXT(Sheet2!B:B="*"))

    Based on your description above here is what I think you want:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Note that the third argument for VLOOKUP is 2, which means pull the answer out of the second column of the table.

    What result do you want if the job number is not found on Sheet2?
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  5. #5
    Registered User
    Join Date
    02-27-2018
    Location
    TX
    MS-Off Ver
    2016
    Posts
    54

    Re: If, and, vlookup, istext

    Those seem to both looking for text in the 1st column on the second sheet, but I need to find the match, THEN look up text in the second column and return the values based on their being text/a blank.

  6. #6
    Registered User
    Join Date
    02-27-2018
    Location
    TX
    MS-Off Ver
    2016
    Posts
    54

    Re: If, and, vlookup, istext

    Quote Originally Posted by 6StringJazzer View Post
    First, your VLOOKUP is looking in Table2, which is on Sheet1. I think you mean to look in Table1, which is in Sheet2.

    Second, the formula you have does not look quite like what you described; it has Yes and No, not Complete or WIP.

    I do not understand what you are trying to do with this part of your formula: (ISTEXT(Sheet2!B:B="*"))

    Based on your description above here is what I think you want:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Note that the third argument for VLOOKUP is 2, which means pull the answer out of the second column of the table.

    What result do you want if the job number is not found on Sheet2?

    So the Job numbers are on two sheets, but not in the same order. I'm trying to have it first find it's match, then look down to another column and see if there is any text in the cell on the associated row. IF there is text, I want it to return "Complete" and if there is no text, return "WIP"

    Sorry for the confusion. I did the example sheet after I wrote it all out and didn't realize I had written a detailed explanation. My sheet uses the complete and WIP, and I just put yes and no on the example to simplify it. Does that help clarify at all what I'm trying to accomplish?

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: If, and, vlookup, istext

    Quote Originally Posted by mrsbrannon View Post
    Those seem to both looking for text in the 1st column on the second sheet, but I need to find the match, THEN look up text in the second column and return the values based on their being text/a blank.
    But the formulae you've been given do exactly that, the only variabe being whether you want a Yes/No or a complete/WIP answer.

    The MATCH you mention is accomplished by the VLOOKUP which looks in column 1 of Table 1 and returns the value in the 2nd column. If that is indeed text then they return "Complete", or "Yes", depending on which variations you want.

    However your #5 is confusing since it now mentions you seemingly want the text value instead.

    It would help if you manually add the actual results you expect.

  8. #8
    Registered User
    Join Date
    02-27-2018
    Location
    TX
    MS-Off Ver
    2016
    Posts
    54

    Re: If, and, vlookup, istext

    Quote Originally Posted by Richard Buttrey View Post
    But the formulae you've been given do exactly that, the only variabe being whether you want a Yes/No or a complete/WIP answer.

    The MATCH you mention is accomplished by the VLOOKUP which looks in column 1 of Table 1 and returns the value in the 2nd column. If that is indeed text then they return "Complete", or "Yes", depending on which variations you want.

    However your #5 is confusing since it now mentions you seemingly want the text value instead.

    It would help if you manually add the actual results you expect.


    If you look at the example I uploaded, on Sheet 2 I've put some random text next to job number 465 under the column "Data". The result I want would then show YES next to job number 456 on the Sheet 1. Does that help?

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,878

    Re: If, and, vlookup, istext

    IF there is text, I want it to return "Complete" and if there is no text, return "WIP"
    =IF(ISTEXT(VLOOKUP(A2,Table1,2,0)),"Complete","WIP")

    or


    =IF(ISTEXT(VLOOKUP(A2,Table1,2,0)),"Yes","No")

  10. #10
    Registered User
    Join Date
    02-27-2018
    Location
    TX
    MS-Off Ver
    2016
    Posts
    54

    Re: If, and, vlookup, istext

    Quote Originally Posted by JohnTopley View Post
    =IF(ISTEXT(VLOOKUP(A2,Table1,2,0)),"Complete","WIP")

    or


    =IF(ISTEXT(VLOOKUP(A2,Table1,2,0)),"Yes","No")
    I'm sorry I've done such a horrible job explaining this! If you look at the example I uploaded, on Sheet 2 I've put some random text next to job number 465 under the column "Data". The result I want would then show YES next to job number 456 on the Sheet 1. Does that help?

  11. #11
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,878

    Re: If, and, vlookup, istext

    Have you actual TRIED any formulae provided???

  12. #12
    Registered User
    Join Date
    02-27-2018
    Location
    TX
    MS-Off Ver
    2016
    Posts
    54

    Re: If, and, vlookup, istext

    Quote Originally Posted by JohnTopley View Post
    Have you actual TRIED any formulae provided???
    I have tried them all. None of them return any data.

  13. #13
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,878

    Re: If, and, vlookup, istext

    Well they do in your test file
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    02-27-2018
    Location
    TX
    MS-Off Ver
    2016
    Posts
    54

    Re: If, and, vlookup, istext

    Quote Originally Posted by JohnTopley View Post
    Well they do in your test file
    Okay, maybe it's something I'm doing wrong. Thanks. I will play with it and try to find out what I'm doing wrong. Out of curiosity, what is the "0" doing in the Vlookup formula? Looking for blanks? Thanks again.

  15. #15
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,878

    Re: If, and, vlookup, istext

    You can use "0" or FALSE so it looks for an exact match

  16. #16
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: If, and, vlookup, istext

    Quote Originally Posted by mrsbrannon View Post
    Okay, maybe it's something I'm doing wrong. Thanks. I will play with it and try to find out what I'm doing wrong. Out of curiosity, what is the "0" doing in the Vlookup formula? Looking for blanks? Thanks again.
    Do you know how to type =VLOOKUP in a cell and then use the formula bar by clicking on the fx symbol and seeing the help for the function arguments?

    We like to help people and indeed give turnkey solutions but we also like people to put in a little effort themselves. Can I respectfully suggest you click on that little fx symbol when creating a vlookup and just read what the various parameter argumenst mean.
    Last edited by Richard Buttrey; 03-13-2018 at 04:54 PM.

  17. #17
    Registered User
    Join Date
    02-27-2018
    Location
    TX
    MS-Off Ver
    2016
    Posts
    54

    Re: If, and, vlookup, istext

    I FINALLY figured out why it's not working. The job number column on the second sheet is not to the far left. I remember now that Vlookup can only look to its left. I have attached a new example to show what it's doing with the current formula. No idea how to fix it except maybe using Index/Match?
    Attached Files Attached Files

  18. #18
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: If, and, vlookup, istext

    Yes, as you've discovered a VLOOKUP must use the first column and you're correct in that an INDEX(MATCH()) formula will be needed.
    e.g.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  19. #19
    Registered User
    Join Date
    02-27-2018
    Location
    TX
    MS-Off Ver
    2016
    Posts
    54

    Re: If, and, vlookup, istext

    Quote Originally Posted by Richard Buttrey View Post
    Yes, as you've discovered a VLOOKUP must use the first column and you're correct in that an INDEX(MATCH()) formula will be needed.
    e.g.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    THANK YOU!!!!!!! I appreciate it so much. I've got to learn more about INDEX/MATCH, as Vlookup seems to be more limited. Thanks again!

+ 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. ISTEXT or BLANK ?
    By kemble in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-08-2015, 05:15 PM
  2. If istext do something if not do something else
    By dontstress3 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-07-2015, 11:06 AM
  3. [SOLVED] nesting istext
    By mojobaabby in forum Excel General
    Replies: 1
    Last Post: 03-29-2013, 09:05 AM
  4. Vlookup w/ istext?
    By gfunkb7 in forum Excel General
    Replies: 11
    Last Post: 04-28-2011, 03:38 PM
  5. Replies: 6
    Last Post: 07-01-2010, 04:13 AM
  6. VLookup, Istext combination???
    By RodBrush in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-27-2008, 01:15 PM
  7. [SOLVED] ISTEXT
    By Micayla Bergen in forum Excel General
    Replies: 1
    Last Post: 05-18-2005, 10: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