+ Reply to Thread
Results 1 to 6 of 6

I want to put "ok" if the match with conditions between tables are filled.

  1. #1
    Forum Contributor
    Join Date
    11-07-2020
    Location
    Paris
    MS-Off Ver
    Microsoft office 365
    Posts
    236

    I want to put "ok" if the match with conditions between tables are filled.

    Good morning to the community.
    I'm working on the file "recherche".

    I would like to put "ok" in column I if I find the same values in the table 1 and in the table 2 with 3 columns selected (Nom1, Nom2, Nom3).
    For example, if i select the columns Nom1, Nom2, Nom3 in Table 2 with the respecting values (13,test23,10) and i find in table 1 the same values, i put "ok" on column I.
    However, I i don't find match, i put "pas ok" in column I.

    Attachment 796739

    Thank you for your help.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,209

    Re: I want to put "ok" if the match with conditions between tables are filled.

    Try this:

    =IF(COUNTIFS($A$2:$A$5,E5,$B$2:$B$5,F5,$C$2:$C$5,G5)>0,"ok","pas ok")

    =SI(NB.SI.ENS($A$2:$A$5;E5;$B$2:$B$5;F5;$C$2:$C$5;G5)>0;"ok";"pas ok")
    Attached Files Attached Files
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,140

    Re: I want to put "ok" if the match with conditions between tables are filled.

    this may not be the full answer - as not sure on Norm1,2,3 etc
    anyway
    =IF(COUNTIFS($A$2:$A$13,E5,$B$2:$B$13,F5,$C$2:$C$13,G5)>0,"OK","Pas OK")
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,209

    Re: I want to put "ok" if the match with conditions between tables are filled.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

  5. #5
    Forum Contributor
    Join Date
    11-07-2020
    Location
    Paris
    MS-Off Ver
    Microsoft office 365
    Posts
    236

    Re: I want to put "ok" if the match with conditions between tables are filled.

    Thank you its is working very well!

    Why is the meaning of >0 in the formula?

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,140

    Re: I want to put "ok" if the match with conditions between tables are filled.

    Greater than 0
    if the values do not exist , then it will be 0
    so that will return a FALSE
    as 0 is not greater than 0 and so gives you the false condition which is "Pas OK"

+ 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. Formula for "true" or "false" based on whether or not a row has a color filled cell
    By the_red_engine in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-04-2021, 10:24 PM
  2. Replies: 3
    Last Post: 11-19-2020, 08:30 PM
  3. Replies: 0
    Last Post: 02-14-2018, 06:14 PM
  4. Replies: 2
    Last Post: 07-24-2017, 02:19 AM
  5. "Add Row" and "Remove Row" Buttons... adding rows with formulas down filled
    By excelatnothing in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-15-2015, 02:44 AM
  6. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  7. Replies: 7
    Last Post: 05-13-2006, 05:02 PM

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