+ Reply to Thread
Results 1 to 6 of 6

Comparing a cell in sheet 1 to columns in multiple sheets

  1. #1
    Registered User
    Join Date
    06-10-2016
    Location
    Arizona, USA
    MS-Off Ver
    2010
    Posts
    3

    Comparing a cell in sheet 1 to columns in multiple sheets

    So essentially what I am trying to do is take the information from a cell in a column on one sheet, compare that information to a column in several other sheets in order to find a match, then post a value from part of the row the match was found on based on that match. Does that make sense?

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Comparing a cell in sheet 1 to columns in multiple sheets

    Quote Originally Posted by chrisdua12 View Post
    Does that make sense?
    Sure. Now, give us more specific details!

    What are the sheet names?

    Will the lookup value only be found on one sheet?

    Where do we search for the lookup value?

    Once we find the lookup value where do we get the result you want?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    06-10-2016
    Location
    Arizona, USA
    MS-Off Ver
    2010
    Posts
    3

    Re: Comparing a cell in sheet 1 to columns in multiple sheets

    Lets say sheet 1 is "All Files"
    2 "Main site Docs."
    3 "Dist. Docs."
    4 "Intl. Docs."
    5 "Spec. Docs."

    I am looking at a cell in column "A" of "All Files" for the lookup value.
    I want to compare this value to sheets 2-5 column A Through the whole column Except row 1 (Theoretically there should only be one matching value). Then the value I want to post will be in Column "B" of that matching value. And I want to post this into column "D" or 4 of "All Files"
    Last edited by chrisdua12; 06-10-2016 at 07:52 PM.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Comparing a cell in sheet 1 to columns in multiple sheets

    A5 = lookup value

    Try this array formula**:

    =VLOOKUP(A5,INDIRECT("'"&INDEX({"Main site Docs.","Dist. Docs.","Intl. Docs.","Spec. Docs."},MATCH(TRUE,COUNTIF(INDIRECT("'"&{"Main site Docs.","Dist. Docs.","Intl. Docs.","Spec. Docs."}&"'!A:A"),A5)>0,0))&"'!A:B"),2,0)

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Here's a small sample file that demonstrates this.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-10-2016
    Location
    Arizona, USA
    MS-Off Ver
    2010
    Posts
    3

    Re: Comparing a cell in sheet 1 to columns in multiple sheets

    Awesome Thanks so much!!

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Comparing a cell in sheet 1 to columns in multiple sheets

    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. [SOLVED] Comparing multiple columns in two sheets
    By joeyga in forum Excel General
    Replies: 3
    Last Post: 04-08-2015, 03:02 PM
  2. Replies: 4
    Last Post: 07-03-2014, 05:27 PM
  3. Comparing Multiple Columns on 2 sheets and report Exceptions on 3rd Sheet
    By KrystalQ in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-24-2014, 11:41 AM
  4. Comparing Data on Multiple Sheets and Columns
    By ande2428 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-06-2014, 10:33 AM
  5. [SOLVED] Comparing data in columns over multiple sheets
    By BigBadBill in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-14-2013, 02:01 PM
  6. [SOLVED] comparing two sheets columns extract data into new sheet
    By dalerdd in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-12-2012, 11:43 AM
  7. Comparing multiple columns in multiple sheets
    By Quijibo187 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-13-2009, 02:27 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