+ Reply to Thread
Results 1 to 2 of 2

Comparing two columns' values

  1. #1
    Registered User
    Join Date
    02-13-2014
    Location
    Somewhere, Rainbow
    MS-Off Ver
    Excel 2007
    Posts
    20

    Comparing two columns' values

    All,

    First off, thank you for reading this post. I hope that you would be able to help me out.

    I have a file that has one header and anywhere from 0 to 999 subheaders. Both the header and the subheader have a value that I want to compare, and there is a value in the header that will tell me how many subheaders are in the file.

    I have situations where I come across thousands of files where I have to compare the value within the header and the associated subheaders and I want to have Excel automate most (if not all) of the process for me.

    My thought was to compare the file name and use that to determine if the values are the same; I have attached the spreadsheet to illustrate my issue. By using an If statement, I have attempted to have a visual comparison of the header and subheader name [=IF(A2=D2,"TRUE",IF(A1=D2,"MULTI","FALSE"))]. However, I do not think that Excel would be able to have a logic function for 999 different cells and there is an issue when it comes to file C.

    I'm not sure how to anticipate the variable number of subheaders within each file in terms of an automatic check. If I knew the number of subheaders, is there a way to use that number and multiply the statement for the value verification?

    Again, thank you for reading and I appreciate any help you could offer!

    Respectfully,
    Talamon
    File Comparison.xlsx

  2. #2
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Comparing two columns' values

    Is the final IF statement looking at the previous row intentionally?

    I'm not sure I follow the question... :\

    From cell F8
    =IF(A8=D8,"TRUE",IF(A7=D8,"MULTI",IF(A6=D8,"MULTI",IF(A5=D7,"MULTI","FALSE"))))

    Also F7 contains an additional IF?
    Last edited by Speshul; 06-26-2014 at 05:28 PM.

+ 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. Replies: 3
    Last Post: 04-23-2014, 05:14 PM
  2. [SOLVED] Comparing values in columns
    By Knocknaboula in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-04-2013, 11:47 AM
  3. Comparing Values Between Columns
    By Kleo in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-25-2012, 04:00 PM
  4. Comparing values in two columns
    By DCS in forum Excel General
    Replies: 2
    Last Post: 10-13-2006, 03:41 AM
  5. Comparing values in two columns and displaying missing values in n
    By cpetta in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-04-2005, 11:29 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