+ Reply to Thread
Results 1 to 4 of 4

Matching values

  1. #1
    Registered User
    Join Date
    11-20-2017
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    8

    Unhappy Matching values

    I need to find out if a record is in a database
    --> the Record is a mixture of text and number hence i am lost about what to do.
    Example
    i want to check if "S9050423A" appears in another excel file.
    if it appears, the cell will reflect "yes"
    else
    it will reflect "no".

    may i know how to go about it?:|
    i been seeing examples but am still confused.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Matching values

    hi there. you mentioned "another excel file", so you have 2 excel files? assuming "S9050423A" on formula file in cell A2.
    do this on the file you are going to input the formula,
    =COUNTIF(

    refer to the file which you want to find "S9050423A". it could be in column F for eg. click on column F. it should turn out like:
    =COUNTIF([Book2]Sheet1!$F:$F

    put comma and refer to A2, where "S9050423A" is at. do a close parenthesis. press ENTER
    =COUNTIF([Book2]Sheet1!$F:$F,A2)

    that counts how many times "S9050423A" appeared in another file. if you want yes or no, add in the IF formula:
    =IF(COUNTIF([Book2]Sheet1!$F:$F,A2)>0,"yes","no")

    both files must be open for it to work.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    11-20-2017
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    8

    Re: Matching values

    TQ!appreciate your help!

  4. #4
    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,780

    Re: Matching values

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    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.

+ 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: 7
    Last Post: 09-16-2017, 11:58 AM
  2. List unique values matching a criteria that has duplicate values
    By Andrewjs in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-11-2017, 10:11 PM
  3. VBA help needed to fill cell values (offset values) by matching various conditions
    By krjoshi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-06-2013, 02:14 PM
  4. Replies: 1
    Last Post: 07-24-2013, 05:18 AM
  5. [SOLVED] Return cell values for non-matching & matching criteria
    By jenz_skallemose in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 11-13-2012, 11:52 AM
  6. Replies: 8
    Last Post: 07-28-2012, 03:22 PM
  7. [SOLVED] Fill values into a listbox matching selected values from a combobox
    By Jon in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-25-2005, 01: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