+ Reply to Thread
Results 1 to 10 of 10

Find a value in a row from different sheet and return a value.

Hybrid View

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

    Unhappy Find a value in a row from different sheet and return a value.

    Hello Excel Angels,


    I have two Sheets;

    Sheet A
    Sheet B

    in Sheet A, there's a lot of data arranged in Rows

    1.PNG


    In Sheet B, I need to fill in Data in Column C and D base in data from Sheet A.

    2.PNG

    Requirement:

    In Sheet B column C, I need to return a value of "FXS" if there's an "FXS" value in Sheet A row 2 and "FXO" if the value found is "FXO".
    In Sheet B column D, I need to return a value of "Registered" if there's a value "Registered" found in Sheet A row 2. and "Unregistered" or "FXO" if these are found. (none of these 3 exists in same row)

    Please help and thank you in advance

  2. #2
    Registered User
    Join Date
    09-11-2012
    Location
    Belfast
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: Find a value in a row from different sheet and return a value.

    Hi mymachix

    Not sure I entirely understand what you're getting at, but it sould like a VLOOKUP to me. Have you tried that?

    Regards
    Stephen.

  3. #3
    Registered User
    Join Date
    09-11-2013
    Location
    Mysore
    MS-Off Ver
    Office 2010
    Posts
    3

    Re: Find a value in a row from different sheet and return a value.

    hi mymachix,

    The outcome you are expecting will get by using the VLOOKUP formula. try once.

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

    Re: Find a value in a row from different sheet and return a value.

    Yes but can't find a way to make it work in VLOOKUP

    what i mean is, i need to check if the following values exists in the sheet A by ROWS (not by column) and then return the same value in Sheet B if found.

    FXS
    FXO
    Registered
    Unregistered
    Unknown


    Please help..

  5. #5
    Registered User
    Join Date
    09-11-2012
    Location
    Belfast
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: Find a value in a row from different sheet and return a value.

    Hi mymachix

    There is an HLOOKUP, which does exactly the same thing as the VLOOKUP, except it works with horizontal rows, rather than vertical columns.

    If you could post a sample spreadsheet, it would make it easier to help you.

    Regards
    Stephen.

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

    Unhappy Re: Find a value in a row from different sheet and return a value.

    Hi,

    I have attached a sample file. I;m familliar in VLOOKUP but can't make it work in ROWS not sure why. In the attached file,I need to return a value in SheetB if that value is found in SheetA rows. For example,IF word "Apple" is found in A2 to AZ2 of SheetA, return "Apple" in C2 of SheetB .




    Anyone can help please?
    Attached Files Attached Files
    Last edited by mymachix; 09-17-2013 at 07:42 AM.

  7. #7
    Registered User
    Join Date
    09-11-2012
    Location
    Belfast
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: Find a value in a row from different sheet and return a value.

    Hi

    I'm still not entirely sure what you're trying to achieve, but my understanding is this:

    If a row in sheet A contains either FSX or FSO, then put FSX or FXO in column C on sheet B for the corresponding row.

    If a row in Sheet A contains either Registered or Unregistered, then place Registered or Unregistered in column D in Sheet B for the corresponding row.

    If this is the case, I have attached a sample spreadsheet which does that.

    You should note that Column C on Sheet B is blank because the are no FSX or FSO values at all in Sheet A.

    I have modified the formulea such that if teh desired values are not found, leave the cell blank rather than populate it with #N/A.

    Hope this is what you are after.

    REgards
    Stephen.
    Attached Files Attached Files

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

    Re: Find a value in a row from different sheet and return a value.

    Wow..i'm amazed on the formula used. thank you very much. (will take time before i learn and understand it).. If I need to add one more condition, expample: "Unknown" , how do I adjust or add it to the formula?

    =IF(NOT(ISNA(HLOOKUP("Registered",SheetA!8:8,1,FALSE))),HLOOKUP("Registered",SheetA!8:8,1,FALSE),IF(NOT(ISNA(HLOOKUP("Unregistered",SheetA!8:8,1,FALSE))),HLOOKUP("Unregistered",SheetA!8:8,1,FALSE),""))

    thanks a lot!!

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

    Re: Find a value in a row from different sheet and return a value.

    Got it!!!

    Simply put the unknown inside the last ""

    Thank you very much!!

  10. #10
    Registered User
    Join Date
    09-11-2012
    Location
    Belfast
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: Find a value in a row from different sheet and return a value.

    Hi mymachix

    If I understand you correctly, it should simply be a case of placing the text 'Unknown' between the "" at the end of the formula in each column so that it reads like this:

    Column B:
    =IF(NOT(ISNA(HLOOKUP("FXS",SheetA!7:7,1,FALSE))),HLOOKUP("FXS",SheetA!7:7,1,FALSE),IF(NOT(ISNA(HLOOKUP("FXO",SheetA!7:7,1,FALSE))),HLOOKUP("FXO",SheetA!7:7,1,FALSE),"Unknown"))
    Column C:
    =IF(NOT(ISNA(HLOOKUP("Registered",SheetA!2:2,1,FALSE))),HLOOKUP("Registered",SheetA!2:2,1,FALSE),IF(NOT(ISNA(HLOOKUP("Unregistered",SheetA!2:2,1,FALSE))),HLOOKUP("Unregistered",SheetA!2:2,1,FALSE),"Unknown"))
    The above will work as before, except where it doesn't find FXS or FSO, it will place 'Unknown' in Column C. Similarly, if it doesn't find 'Registered' or 'Unregistered', it will place 'Unknown' in column D.

    Is this what you mean?

    Regards
    Stephen.

+ 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. Find each lowest value and return sheet name
    By Astaroths in forum Excel General
    Replies: 3
    Last Post: 04-30-2014, 09:57 AM
  2. Replies: 3
    Last Post: 04-10-2012, 01:51 PM
  3. Replies: 3
    Last Post: 04-23-2010, 09:51 AM
  4. Replies: 4
    Last Post: 07-12-2009, 12:58 PM
  5. Find Match in another WB and return detailed sheet
    By GregR in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 05-16-2006, 02:35 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