+ Reply to Thread
Results 1 to 5 of 5

Search matching values in the same range

  1. #1
    Registered User
    Join Date
    10-30-2018
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    30

    Search matching values in the same range

    Dear All,

    Please see my file attached.
    The thing i'm trying to do is to create a lookup field in column X.
    This field looks up in column B if a file number appears more than 1 time.
    I have a formula for this if the same number appears right above or under the selected line.

    =IF(B6=B7;"Gecombineerd";"")&IF(B6=B5;"Gecombineerd";"")

    But I actually want to look up in the whole column B, except for the selected cell of course.

    Can someone help me?
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Search matching values in the same range

    You only need one Gecombineerd if there's a duplicate though, not all of them strung together.

    Try

    in X4
    =IF(COUNTIF(B$4:B$1000,B4)>1,"Geocombineerd","")
    and copy down the column
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Search matching values in the same range

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

  4. #4
    Registered User
    Join Date
    10-30-2018
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: Search matching values in the same range

    Thanks both! works perfectly.

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Search matching values in the same range

    You're welcome & thanks for the feedback

+ 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. Search for a value in a column and copy row to new sheet for all matching values
    By gopi2417 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-02-2017, 09:11 AM
  2. Excel 2003 vba search sheet for all matching values
    By Ditch1983 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-02-2017, 02:31 AM
  3. Search Range for matching value return and to active cell
    By morbdetro in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-01-2013, 11:43 AM
  4. Search Range for matching value and delete.
    By morbdetro in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-30-2013, 03:02 PM
  5. search for all matching values failure
    By gherzberg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-06-2012, 04:01 PM
  6. [SOLVED] Search and count matching values in each column
    By sans in forum Excel Programming / VBA / Macros
    Replies: 27
    Last Post: 05-25-2012, 02:50 AM
  7. [SOLVED] Search for a value in a column and copy row to new sheet for all matching values
    By mrcois in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-20-2012, 12:09 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