+ Reply to Thread
Results 1 to 9 of 9

VLOOKUP and TEXT if data is present

  1. #1
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    VLOOKUP and TEXT if data is present

    Hi guys,

    I have a master list of employees and I would like to see if they worked in specific quarters on a project.

    Can someone help me with what I think should be a VLOOKUp formula?

    Column A is my master list.

    Column B has the employee codes which i am trying to lookup against Column A. Also, if the employees are returned as being present in Column A, I would like it to say 'YES' and 'N0' if they are not in the list.

    Can anyone pls help?

    thanks!

    The file won't let me upload for some reason.
    Thanks,

    R.



  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,726

    Re: VLOOKUP and TEXT if data is present

    It is difficult to advise with such sketchy details, as you make reference to where the quarters data is located. Try to upload the file again:

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post. Don't try to use the Paperclip icon (Attachments button), as it doesn't work on this forum.

    Pete

  3. #3
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Re: VLOOKUP and TEXT if data is present

    Hi pete,

    I have uploaded an image - sorry my sentence about quarters was more of a contextual thing.

    Anyway Columns A, B, C and D are visible in the screenshot.

    Thank you!
    Attached Images Attached Images

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: VLOOKUP and TEXT if data is present

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Re: VLOOKUP and TEXT if data is present

    Hi

    I have reduced some text and saved it as a new workbook and that has uploaded

    I kept getting error messages below (saying file upload failed).

    Thank you!
    Attached Files Attached Files

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: VLOOKUP and TEXT if data is present

    Try this:

    =IFNA(IF(VLOOKUP(D2,$B$2:$B$19,1,0)>0,"Yes"),"No")

    or this:

    =IF(COUNTIF($B$2:$B$19,D2)>0,"Yes","No")

    Lots of ways to skin this particular cat.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  7. #7
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: VLOOKUP and TEXT if data is present

    Assuming original explanation about master column A, use:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and copy it down, as well to other columns.
    of course you can use it in conditional formatting rule, or nest it within IF, like:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  8. #8
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Re: VLOOKUP and TEXT if data is present

    Quote Originally Posted by AliGW View Post
    Try this:

    =IFNA(IF(VLOOKUP(D2,$B$2:$B$19,1,0)>0,"Yes"),"No")

    or this:

    =IF(COUNTIF($B$2:$B$19,D2)>0,"Yes","No")

    Lots of ways to skin this particular cat.
    Thanks Ali! Nice quote lol

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

    Re: VLOOKUP and TEXT if data is present

    No problem.

+ 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. VLOOKUP NA Data missing error even when data is present
    By BCLChris in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-13-2018, 01:08 PM
  2. How to present my text data in chart
    By satabp in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 09-05-2014, 11:02 AM
  3. combining text with comma if any of the cells data is present in 3 columns
    By paradise2sr in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-21-2013, 10:02 AM
  4. Add Data to Vlookup table if data is not already present
    By jfolson in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-08-2013, 07:29 AM
  5. [SOLVED] Auto Hiding rows based on range/data present or not present.
    By raze in forum Excel Programming / VBA / Macros
    Replies: 27
    Last Post: 02-10-2013, 11:27 AM
  6. Formula to display whether a text data is present or not in a column
    By shuresh in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-11-2009, 03:42 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