+ Reply to Thread
Results 1 to 4 of 4

Formula to determine if all cells equal to X in Column A have Y as their text in Column B

  1. #1
    Registered User
    Join Date
    08-07-2017
    Location
    London
    MS-Off Ver
    MS 2010
    Posts
    4

    Formula to determine if all cells equal to X in Column A have Y as their text in Column B

    Hi there,

    I am trying to write a formula to pick up all X names from Column A and tell me if all the corresponding values in Column B equal Y.

    Any help would be appreciated!

    Thanks,
    Caroline
    Last edited by Caroline2; 08-15-2018 at 01:26 PM. Reason: More detailed title provided

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: If then formula

    Moderation request removed. Thanks for changing your thread title.
    Last edited by jason.b75; 08-15-2018 at 05:07 PM.

  3. #3
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Formula to determine if all cells equal to X in Column A have Y as their text in Colum

    HI Caroline

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

    This will count all occurrences of X in column A then subtract all occurrences where column A is X and column B is Y. If the answer is 0 you will know that all X's in column A have a Y in column B. If it is not 0 it will tell you how many occurrences of X in column A don't have a Y in column B.
    Please add reputation by clicking on the * if I have helped.
    Please mark the thread SOLVED if your issue has been resolved.
    Thanks, Glenn.

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Formula to determine if all cells equal to X in Column A have Y as their text in Colum

    If you just want to check that all X names in column A have Y value in column B then

    =COUNTIFS(A:A,"x",B:B,"<>y")

    Will tell you how many x names do not have y value in column B, which going by your question should always be 0.

+ 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: 5
    Last Post: 02-16-2018, 06:50 AM
  2. Replies: 8
    Last Post: 09-22-2017, 05:41 AM
  3. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  4. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  5. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04: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