+ Reply to Thread
Results 1 to 6 of 6

If range equals another range

  1. #1
    Forum Contributor
    Join Date
    08-07-2013
    Location
    mo
    MS-Off Ver
    Excel 2010
    Posts
    453

    If range equals another range

    I have two sets of data:
    B4:D28 & H4:J28

    What I need to do is:
    check B4:D4 and if matches exactly any row in H4:J28 than put the letter Y in E4

    then check B5:D5 and if matches exactly any row in H4:J28 than put the letter Y in E5

    and so on all the way from B4:D4 through B28:D28

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: If range equals another range

    Try this:

    Please Login or Register  to view this content.
    Last edited by stnkynts; 04-09-2014 at 05:10 PM.

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646

    Re: If range equals another range

    Try this.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: If range equals another range

    How about a formula? In E2, confirmed with Ctrl+Shift+Enter,

    =IF(OR(MMULT(--(B4:D4=$H$4:$J$28),{1;1;1})=3), "Y", "")

    Then copy down.

    B
    C
    D
    E
    F
    G
    H
    I
    J
    4
    2
    4
    1
    Y
    4
    5
    5
    5
    5
    2
    2
    2
    1
    2
    6
    3
    3
    1
    2
    4
    1
    7
    2
    3
    1
    1
    5
    1
    8
    1
    5
    2
    3
    4
    4
    9
    2
    5
    5
    1
    2
    1
    10
    4
    2
    5
    Y
    1
    3
    1
    11
    4
    1
    5
    5
    4
    1
    12
    3
    2
    3
    1
    2
    3
    13
    2
    5
    5
    1
    3
    4
    14
    2
    3
    5
    Y
    4
    2
    5
    15
    2
    3
    4
    5
    4
    2
    16
    1
    5
    5
    1
    3
    2
    17
    1
    4
    3
    Y
    4
    1
    2
    18
    1
    5
    5
    1
    4
    3
    19
    2
    5
    1
    2
    5
    3
    20
    4
    5
    2
    4
    3
    1
    21
    1
    4
    2
    1
    1
    3
    22
    2
    3
    4
    2
    1
    3
    23
    5
    4
    3
    1
    2
    3
    24
    2
    3
    2
    1
    2
    5
    25
    2
    1
    2
    Y
    4
    5
    5
    26
    5
    1
    1
    5
    4
    4
    27
    2
    3
    2
    2
    3
    5
    28
    4
    4
    5
    3
    1
    2
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: If range equals another range

    Perhaps
    =IF(COUNTIFS($H$4:$H$28,B5,$I$4:$I$28,C5,$J$4:$J$28,D5)>0,"Y","")
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  6. #6
    Forum Contributor
    Join Date
    08-07-2013
    Location
    mo
    MS-Off Ver
    Excel 2010
    Posts
    453

    Re: If range equals another range

    All 4 answers worked like a champion, I tried them all. Thanks for the 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] If each cell in range equals 0 then clear contents of range and move to the next row
    By dagardner in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-19-2014, 08:44 PM
  2. [SOLVED] If Value in a range of cells equals X, then echo value (name) in another range of cell
    By tonytorero in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-03-2013, 06:23 PM
  3. [SOLVED] SUM range A if values in range B equals THIS AND THAT
    By JTPeruano in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-23-2012, 05:15 PM
  4. Replies: 15
    Last Post: 06-27-2011, 08:58 PM
  5. if a:a (range) equals january and c:c equals gas then add g:g ($)
    By BCOz in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-29-2005, 03:45 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