+ Reply to Thread
Results 1 to 5 of 5

Need help. If A:2 equals anything in A:A in another sheet, need value of a different cell.

  1. #1
    Registered User
    Join Date
    10-06-2014
    Location
    Huntsville, AL
    MS-Off Ver
    2010
    Posts
    5

    Need help. If A:2 equals anything in A:A in another sheet, need value of a different cell.

    I am trying to write a formula that will show the value of a different cell based on the logic of separate cells and columns. e.g. If 'sheet 1' A2 = any cell in 'sheet 2' A:A, show the value of a different cell in the same row as the A2 equivalent. In this instance, I need the formula cell to display the value of the cell in 'sheet 2' column C for the same row that contains the 'sheet 2' A:A cell equivalent of 'sheet 1' A2. I hope this makes sense to someone. I'm banging my head against the wall here.
    Last edited by excel_newser; 10-06-2014 at 12:02 PM. Reason: Issue Solved

  2. #2
    Valued Forum Contributor
    Join Date
    10-15-2007
    Location
    Home
    MS-Off Ver
    Office 2010, W10
    Posts
    373

    Re: Need help. If A:2 equals anything in A:A in another sheet, need value of a different c

    Hi

    Welcome to the board

    Check the help for VLookup().
    If I understood correctly, it will solve your problem.

  3. #3
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Need help. If A:2 equals anything in A:A in another sheet, need value of a different c

    If I understand this question correctly, you don't necessarily have to apply the lookup to the entire A:A column; a simple IF statement should work (again, assuming I am understanding your question correctly).

    I attached a workbook example to hopefully help you out.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Need help. If A:2 equals anything in A:A in another sheet, need value of a different c

    =IFERROR(INDEX(sheet2!$C$2:$C$1000, MATCH(A2, sheet2!$A$2:$A$1000,0)),"")
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Registered User
    Join Date
    10-06-2014
    Location
    Huntsville, AL
    MS-Off Ver
    2010
    Posts
    5

    Re: Need help. If A:2 equals anything in A:A in another sheet, need value of a different c

    Thank you very much! This worked for my issue.

+ 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] Copy row to another sheet if cell equals value
    By AggyRJ in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-31-2013, 01:11 AM
  2. If Cell Equals X, Then Show Entire Row on Another Sheet.
    By shelton_4 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-28-2012, 02:41 PM
  3. checking if one cell equals another in another sheet
    By tinkerbelle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-11-2012, 07:44 AM
  4. Cell A1 Equals Sheet name
    By JoshF in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-21-2011, 08:10 AM
  5. Cell Value Equals sheet Name
    By Vetequk in forum Excel General
    Replies: 1
    Last Post: 05-14-2009, 03:32 AM

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