+ Reply to Thread
Results 1 to 10 of 10

Return a cell value from different sheet if the first condition is met

Hybrid View

  1. #1
    Registered User
    Join Date
    08-28-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    9

    Unhappy Return a cell value from different sheet if the first condition is met

    Hi,

    I have two sheets; "Summary" and sheet "SiteInfo", Sheet Summary contains column A and column B. Column A has data on rows (Honda, Toyota, Kia, etc). In Siteinfo sheet, there's two column; A and B. Column A has the random data of (Honda, Toyota, Kia, etc), Column B has corresponding value depends on column A. Sample is,

    Summary Sheet

    ColumnA__________ColumnB
    Honda____________
    Toyota___________
    Kia_______________


    SiteInfo Sheet

    ColumnA_________ColumnB
    Honda___________miller
    Toyota__________google
    Kia_____________concrete


    Requirement is, in Summary sheet column B, i want a formula that will lookup in Siteinfo sheet Column A and if there's a match, return the value in columnB <siteinfo sheet> to summary sheet column B

    Can you help me please? its been 3 days and cant find a working formula
    Last edited by mymachix; 08-28-2013 at 06:18 AM.

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Return a cell value from different sheet if the first condition is met

    Hi,

    Is there a possibility that you could attach a sample workbook?

    It's just that, otherwise, readers of this thread will (generally) have to reconstruct the information you have given in their own spreadsheets so as to test potential solutions. And obviously this is not something that everyone is prepared to do.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Return a cell value from different sheet if the first condition is met

    Hi,

    Try this on cell B2 on the "Summary" sheet:
    Formula: copy to clipboard
    =INDEX('SiteInfo'!B:B,MATCH(A2,'SiteInfo'!A:A,0))
    or
    Formula: copy to clipboard
    =VLOOKUP(A2,'SiteInfo'!A:B,2,FALSE)
    Hope this helps
    Last edited by ajryan88; 08-28-2013 at 06:33 AM.

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Return a cell value from different sheet if the first condition is met

    Another;

    =VLOOKUP(A2,SiteInfo!$A$2:$B$100,2,FALSE)

  5. #5
    Registered User
    Join Date
    08-28-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Return a cell value from different sheet if the first condition is met

    Hello,

    This seems to work. but when i try it to another scenario wherein the data i need is not on column B but in column D and i change the formula to =VLOOKUP(A2,SiteInfo!$A$2:$B$100,4,FALSE) it returns an error #REF!. Meaning the data that should return is on column D of SiteInfo sheet.

    any idea?

    thanks a lot
    Last edited by mymachix; 08-28-2013 at 06:45 AM.

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Return a cell value from different sheet if the first condition is met

    Quote Originally Posted by JOHN H. DAVIS View Post
    Another;

    =VLOOKUP(A2,SiteInfo!$A$2:$B$100,2,FALSE)
    You'll need to change your Range:

    to:

    =VLOOKUP(A2,SiteInfo!$A$2:$D$100,4,FALSE)

  7. #7
    Registered User
    Join Date
    08-28-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Return a cell value from different sheet if the first condition is met

    Attached the actual file
    Attached Files Attached Files

  8. #8
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Return a cell value from different sheet if the first condition is met

    Hi,

    You just need to adjust the lookup range to include column D:
    Formula: copy to clipboard
    =VLOOKUP(A2,SiteInfo!$A$2:$D$100,4,FALSE)
    Hope this helps

  9. #9
    Registered User
    Join Date
    08-28-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Return a cell value from different sheet if the first condition is met

    hahaha got it now finally!!!!!!! yes!!!!!!!! thanks a lot guys!!!! woooooooooooo!!!

  10. #10
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Return a cell value from different sheet if the first condition is met

    No problems!

    Please don't forget to mark this thread as solved

+ 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-20-2013, 09:55 PM
  2. [SOLVED] Find first left condition and return a corresponding cell value
    By JohannesFust in forum Excel General
    Replies: 10
    Last Post: 04-10-2012, 06:27 AM
  3. Return Rows whose cell satisy a condition from other Work Sheet
    By antrix in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-08-2009, 03:26 PM
  4. [SOLVED] vba help pls - find min based on a condition and return val of an offset cell
    By Impakt in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-16-2005, 08:06 PM
  5. Find Min based on condition & return val of offset cell
    By impakt in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-16-2005, 09:12 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