Results 1 to 5 of 5

Thread: How to check if a number belongs to a column or not in Excel

  1. #1
    Join Date
    Nov 2008
    Posts
    1,221

    How to check if a number belongs to a column or not in Excel

    I am on Excel. I would just like a formula that might check if a number belongs to a column or not.

    Style:

    = IF (A1 "is in column B," "YES"; "NO")

    The question is: how to translate "belongs to in column B"?

  2. #2
    Join Date
    May 2008
    Posts
    685

    Re: How to check if a number belongs to a column or not in Excel

    Good evening

    = if (Column (A1) = 2; "Column B", "No column B") <(--- is necessarily the "No column B"...

    The function column relates to column number and not the index "B"

    To find "B" share a table with a match I can not tell you.

    Best regards

  3. #3
    Join Date
    Nov 2008
    Posts
    1,221

    Re: How to check if a number belongs to a column or not in Excel

    Hmmm ... I think it does not help me at all.

    What is it a match?

  4. #4
    Join Date
    May 2008
    Posts
    685

    Re: How to check if a number belongs to a column or not in Excel

    It can not help you at all, yet that is exactly what you require. So may be more accurate ... Because A1, before the cell is in column B, it will rain in a rainstorm ...

    As = IF (A1 "is in column B," "YES"; "NO")
    and
    = if (Column (A1) = 2; "Column B", "No column B")

    that's exactly what you want ...

  5. #5
    Join Date
    Feb 2008
    Posts
    194

    Re: How to check if a number belongs to a column or not in Excel

    When you speak of A1 is a value to search, or it represents cell A1? A value, I suppose, since you are looking for a value in column B. What I want to do everything really does seem silly.

    Let's say in column A, I have the following values:

    1 2 3 4 5 6 7 8 9 10

    And in column B, I:

    3 4 6 8 9

    The result in column C would be:

    NO NO YES YES NO YES NO YES YES

    In column C, for each line in column A, I would like to display "YES" if Ax is also in column B, and "NO" otherwise.

Similar Threads

  1. What is the way to sum up number of column in Pivot Table
    By Dvimida in forum MS Office Support
    Replies: 2
    Last Post: 09-02-2012, 07:31 PM
  2. Sort a row or column in MS Excel
    By Itronix in forum Tips & Tweaks
    Replies: 1
    Last Post: 15-06-2011, 09:52 AM
  3. How to find particular column name by using Excel Macro
    By Eleder in forum Windows Software
    Replies: 5
    Last Post: 05-04-2011, 10:49 PM
  4. How to count number of text occurences in Excel column
    By Anas in forum Windows Software
    Replies: 3
    Last Post: 09-06-2009, 05:01 PM
  5. How to reverse column in excel
    By Vishant in forum Windows Software
    Replies: 2
    Last Post: 09-06-2009, 01:53 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
  •  
Page generated in 1,713,407,934.76661 seconds with 16 queries