Results 1 to 14 of 14

Comparing Several Arrays with Offset

Threaded View

  1. #1
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Hong Kong
    MS-Off Ver
    Office 365 PC Version
    Posts
    204

    Comparing Several Arrays with Offset

    Hi,

    I have attached a workbook with an example to explain more clearly.

    Basically I have 4 ranges each of 6 columns and all in 1 row (i.e. 24 consecutive columns).
    I would like to compare the 6 titles in range 1 to the titles in the other 3 ranges.

    For Range 1 versus 2 I used the formula =IF(0=SUM(IF(OFFSET(B7,0,0,1,6)=OFFSET(B7,0,6,1,6),0,1)),"OK","Check") which works fine.

    Similarly for range 1 versus 2 and then range 1 versus 3 i used =IF(0=SUM(IF(OFFSET(B7,0,0,1,6)=OFFSET(B7,0,12,1,6),0,1)),"OK","Check") and =IF(0=SUM(IF(OFFSET(B7,0,0,1,6)=OFFSET(B7,0,18,1,6),0,1)),"OK","Check") which also works fine.

    I then tried to compare range 1 versus range 2, range 3 and range 4 in one formula as follows, but this failed.
    =IF(0=SUM(IF(OFFSET(B7,0,0,1,6)=OFFSET(B7:G7,0,N(ROW(A1:A3)*6),1,6),0,1)),"OK","Check")

    Any help is much appreciated, thanks John
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Comparing arrays
    By batchjb69 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-31-2017, 09:21 PM
  2. Comparing 2 Arrays
    By kchm2000 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-25-2017, 05:26 AM
  3. Help comparing 2 arrays
    By jfoerch in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-14-2015, 12:14 PM
  4. [SOLVED] Help Comparing Arrays (to Other Arrays)
    By Polite Master in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-20-2013, 01:03 PM
  5. Comparing arrays....
    By Bedlam in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 11-02-2011, 03:15 PM
  6. Comparing arrays
    By JoshuaSQ in forum Excel General
    Replies: 8
    Last Post: 02-13-2010, 01:47 AM
  7. Comparing Arrays
    By TangentMemory in forum Excel General
    Replies: 2
    Last Post: 05-13-2005, 01: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