+ Reply to Thread
Results 1 to 14 of 14

How to find if a cell value existing in multiple columns

  1. #1
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    How to find if a cell value existing in multiple columns

    Dear Sir,

    I want to find if a cell C1 is existing in columns A, B, D, or E. So I want to specify multiple discrete columns in a match function. Do you know how to accomplish this?

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,767

    Re: How to find if a cell value existing in multiple columns

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


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Re: How to find if a cell value existing in multiple columns

    Quote Originally Posted by :) Sixthsense :) View Post
    Something like this........
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Hi Sir, thanks for your reply. Sorry that I did not not explain it clearly.

    What I want to find is if cell C1 exists in any of the columns A, B, D or E. So I hope to have a formula which can incorporate columns, A, B, D, E... in a single formula, not do it in separate steps

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,767

    Re: How to find if a cell value existing in multiple columns

    Just adapt the ranges to your desired range like the below
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Re: How to find if a cell value existing in multiple columns

    Thanks again for your reply, sir. But C1 is in column C, and I just want to ignore column C and specify it as A, B, D, E. How can I do that?

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,767

    Re: How to find if a cell value existing in multiple columns

    Still not clear about your requirement the suggestions are offered based on the description you have provided in your earlier posts.

  7. #7
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Re: How to find if a cell value existing in multiple columns

    Hi Sixthsense, sorry for the trouble. Basically, can I specify it as: MATCH(C1,CHOOSE({1,2,3,4},A:A,B:B,D:D,E:E),0). This does not work. Hope this explains what I look for. Thanks.

  8. #8
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,767

    Re: How to find if a cell value existing in multiple columns

    Please describe your requirement in details for better understanding instead of showing your formula

  9. #9
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Re: How to find if a cell value existing in multiple columns

    Sorry again, Sixthsense. I want to find if cell C1 exists in any of columns A, B, D, E. If it exists, then return 1; if not, return 0. I don't mind how many times C1 exist, just want to check if it is there in any of the columns A, B, D and E.

  10. #10
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,767

    Re: How to find if a cell value existing in multiple columns

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


    Or

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

  11. #11
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Re: How to find if a cell value existing in multiple columns

    Hi Sixthsense.

    How can you find C1 in the range of A:E? Of course, it will always be there as C1 is exactly in column C. I'm afraid your answer will never work.
    Last edited by BNCOXUK; 03-13-2013 at 08:16 AM.

  12. #12
    Forum Contributor
    Join Date
    05-04-2009
    Location
    ME
    MS-Off Ver
    Excel 2003,2007
    Posts
    157

    Re: How to find if a cell value existing in multiple columns

    May be like this

    Please Login or Register  to view this content.

  13. #13
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Re: How to find if a cell value existing in multiple columns

    Hi, nawas, your formula will always return "Match". C1 is always in A:E.

  14. #14
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,767

    Re: How to find if a cell value existing in multiple columns

    Quote Originally Posted by BNCOXUK View Post
    I'm afraid your answer will never work.
    Attach a sample workbook with expected output to avoid conflicts

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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