+ Reply to Thread
Results 1 to 11 of 11

Check ready when two columns match requirements

  1. #1
    Registered User
    Join Date
    02-08-2022
    Location
    Japan
    MS-Off Ver
    Office 365 proplus
    Posts
    20

    Check ready when two columns match requirements

    Dear all,

    I am looking today for a simple function that I cannot recall.

    Please see attached the corresponding book with expected C2:E2 results

    Context :
    Clients ask for multiple items that must be prepared.
    Name is noted down, and a "x" to the corresponding row of the item.
    When item is prepared, "yes" is noted down.
    When all "x"s of the client are "yes", "R" is put under the clients name to show all items are ready.

    In the file we use everyday, more than 100 items are listed and we usually use filter and manually check "x"s and manually type "R", but it takes time.

    I have tried an IF function but when the first "yes" shows, it reports "R" but does not take into consideration the second "x" being not yet "yes".

    I hope I was clear enough, and thank you in advance.
    Attached Files Attached Files
    Last edited by Abbioka; 05-24-2022 at 04:19 AM.

  2. #2
    Registered User
    Join Date
    02-08-2022
    Location
    Japan
    MS-Off Ver
    Office 365 proplus
    Posts
    20

    Re: Check ready when two columns match requirements

    I think I made it work with

    =IF(COUNTIFS(D3:D8,"x",$B$3:$B$8,"Yes")=COUNTIF(D3:D8,"x"),"R","F")

  3. #3
    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: Check ready when two columns match requirements

    Thanks for letting us know.

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

  4. #4
    Registered User
    Join Date
    02-08-2022
    Location
    Japan
    MS-Off Ver
    Office 365 proplus
    Posts
    20

    Re: Check ready when two columns match requirements

    I have one issue,

    When I extend the formula where there is neither "x" or "yes" (blank space, ready to be filled) it returns "R" as the amount of x and yes is matching (0).
    What could I add to make it only start at higher than 1 ?

  5. #5
    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: Check ready when two columns match requirements

    Is this what you mean?

    =IF(COUNTIFS(D3:D8,"x",$B$3:$B$8,"Yes")=COUNTIFS(D3:D8,"x",$B$3:$B$8,"<>"),"R","F")

    If not, attach an updated sample.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.

  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: Check ready when two columns match requirements

    Perhaps this would be more efficient?

    =IF(COUNTIFS(D$3:D$11,"x",$B$3:$B$11,"")>0,"F","R")

  7. #7
    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: Check ready when two columns match requirements

    If that takes care of your original question, please select 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.

  8. #8
    Registered User
    Join Date
    02-08-2022
    Location
    Japan
    MS-Off Ver
    Office 365 proplus
    Posts
    20

    Re: Check ready when two columns match requirements

    Thank you for your answer,

    I have updated the folder with instructions.
    Still shows R when no X are present.
    Still shows R after removing one X
    Wanted :
    Shows "" (blank) when no X on the column
    Turns from R to F when one X is removed

    Thank you.
    Attached Files Attached Files

  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: Check ready when two columns match requirements

    Turns from R to F when one X is removed
    This criterion is impossible with a formula. Excel cannot 'remember' that there was once an 'x' there. You are going to need VBA - shall I move the thread for you?

    This is the closest you can get with a formula:

    =IF(COUNTIF(C$3:C$12,"x")=0,"",IF(COUNTIFS($B$3:$B$12,"YES",C$3:C$12,"x")=COUNTIF(C$3:C$12,"x"),"R","F"))

  10. #10
    Registered User
    Join Date
    02-08-2022
    Location
    Japan
    MS-Off Ver
    Office 365 proplus
    Posts
    20

    Re: Check ready when two columns match requirements

    Worked, AND was missing at the start to make >0 work

    =IF(AND(COUNTIF(C3:C12,"x")=COUNTIFS(C3:C12,"x",$B3:$B12,"Yes"),(COUNTIF(C3:C12,"x")>0)),"R","")

  11. #11
    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: Check ready when two columns match requirements

    Glad to have helped.

    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.

+ 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. [SOLVED] Cross Check Columns for Index Match Match
    By Harr in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 12-31-2015, 11:35 AM
  2. [SOLVED] Using Index & Match (or similar) to check two columns for a match
    By dvs in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-30-2015, 07:07 PM
  3. [SOLVED] VBA - check if user name matches requirements, if not, dont open
    By galvinpaddy in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-16-2015, 02:28 PM
  4. Check three columns for match to a single column
    By rrbest in forum Excel General
    Replies: 2
    Last Post: 09-25-2011, 10:43 AM
  5. VLOOKUP with two match requirements
    By Russell719 in forum Excel General
    Replies: 4
    Last Post: 12-23-2008, 09:51 AM
  6. Check sum of Columns and Rows match
    By Lost again in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-02-2008, 08:16 PM
  7. [SOLVED] Check columns for data match...
    By Paulc in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-24-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