+ Reply to Thread
Results 1 to 13 of 13

Searching for a name in one column for a value in another column - Help!?

  1. #1
    Registered User
    Join Date
    02-13-2012
    Location
    NWOhio
    MS-Off Ver
    Excel 2003
    Posts
    8

    Exclamation Searching for a name in one column for a value in another column - Help!?

    Hi, all -

    I'm posting this because I am doing an audit for work that is due (yesterday) and hoping someone can help me. I nneed to search for a name but return with the value in the next corresponding column. Can anyone help?

    Here's an example.

    SHEET ONE

    A B C
    Name Amount
    Doe, John (***)

    SHEET TWO
    A B C
    Doe, John
    Doe, John
    Doe, John 45
    Smith, Jane
    Smith, Jane 5
    Smith, Jane

    Sheet One - ***: This is where I would need the returned value. I want to search among multiple John Doe's in column A, but return with the value in column b. Only one value will be in column b per name, even though there may be multiples of John Doe in column A.

    If I need to, I can go through and delete the duplicate names, so that I only search sheet 2 for the only John Doe and return with the value in that row.

    Here's what I've tried: =VLOOKUP(A2,Sheet2!A$1:B$1140, 2, FALSE)

    Obviously, it doesn't work or I wouldn't be posting on this forum.

    Can anyone please help?

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,601

    Re: Searching for a name in one column for a value in another column - Help!?

    if Doe, John is in one cell try:

    =SUMIF(Sheet2!A$1:A$1140, A2, Sheet2!B$1:B$1140)

  3. #3
    Registered User
    Join Date
    02-13-2012
    Location
    NWOhio
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Searching for a name in one column for a value in another column - Help!?

    Alright, I'm getting somewhere. But, it returned with a number that definitely does not correspond with the name that I'm look up.

    Now what?? *

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,601

    Re: Searching for a name in one column for a value in another column - Help!?

    Now upload example workbook with your input and desired output.

    (make sure to remove private data)

  5. #5
    Registered User
    Join Date
    02-13-2012
    Location
    NWOhio
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Searching for a name in one column for a value in another column - Help!?

    <<<embarrassed>>>

    How do I upload to this forum?

  6. #6
    Registered User
    Join Date
    02-13-2012
    Location
    NWOhio
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Searching for a name in one column for a value in another column - Help!?


  7. #7
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,601

    Re: Searching for a name in one column for a value in another column - Help!?

    click edit -> Go advanced and then click "paper clip" icon and browse file to your computer.

  8. #8
    Registered User
    Join Date
    02-13-2012
    Location
    NWOhio
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Searching for a name in one column for a value in another column - Help!?

    Ok, I think I got it.

    Thanks!
    Attached Files Attached Files

  9. #9
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,601

    Re: Searching for a name in one column for a value in another column - Help!?

    So what's wrong with:

    =SUMIF(Sheet2!$A$2:$A$1000, $A2, Sheet2!B$2:B$1000) in B2 of Sheet1?

    it will return SUM of all doe,john it find in second sheet.

  10. #10
    Registered User
    Join Date
    02-13-2012
    Location
    NWOhio
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Searching for a name in one column for a value in another column - Help!?

    Actually, I have no clue. When I applied it to the file I need, it came up with a very large number that I was not familiar with.

    But, I did see in the first suggestion you did not have $A2, but you do now. I'll try that really quick.

  11. #11
    Registered User
    Join Date
    02-13-2012
    Location
    NWOhio
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Searching for a name in one column for a value in another column - Help!?

    yep! not having $A2 was the problem. It works! Holy cow - I could cry!! Thank you, thank you!!

    Now, on to the rest of the document. Hopefully I won't have to post again later. Yikes!

  12. #12
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,601

    Re: Searching for a name in one column for a value in another column - Help!?

    Feel free to post again

  13. #13
    Registered User
    Join Date
    02-13-2012
    Location
    NWOhio
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Searching for a name in one column for a value in another column - Help!?

    Thank you for your help. That has to be so hard to understand when someone is trying to explain. I should have uploaded a sample from the beginning. You did such an amazing job being patient and understanding - THANK YOU!!!!!!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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