+ Reply to Thread
Results 1 to 8 of 8

Need to find a value in a column

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    11-01-2013
    Location
    Atlanta, GA USA
    MS-Off Ver
    Excel 2010
    Posts
    115

    Need to find a value in a column

    We have a table that has a value that we are interested in that is always in the cell next to that value.

    The example sheet will help with this explanation.

    We want to go to this table and find the Customer in Column B that matches 8H. Then we want to find their account number, which is always to the left by one cell. So in this case, we want it to find OIO898 in cell A12.

    Any help please without macros!?

    Thank you!
    Attached Files Attached Files

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Need to find a value in a column

    =INDEX($A$5:$A$20,MATCH("8h",$B$5:$B$20,0))
    or replace the"8h" with a cell ref containing 8h
    eg with 8H in cell X1
    =INDEX($A$5:$A$20,MATCH(x1,$B$5:$B$20,0))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Need to find a value in a column

    Try this, based on your sample data...
    =INDEX($A$5:$A$20,MATCH("8H",$B$5:$B$20,0))

    edit: is there an echo in here, Martin?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,738

    Re: Need to find a value in a column

    Formula: copy to clipboard
    =INDEX(A:A, MATCH("8H", B:B, 0))



    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Need to find a value in a column

    Hi,

    See attached
    Attached Files Attached Files
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  6. #6
    Forum Contributor
    Join Date
    11-01-2013
    Location
    Atlanta, GA USA
    MS-Off Ver
    Excel 2010
    Posts
    115

    Re: Need to find a value in a column

    You guys are nothing short of AWESOME! Thank you sooooo much. It is cool to see duplicate solutions, just proves that y'all have those genius minds that work alike!

    Again, we really really appreciate the help with these troublesome problems ... and we love it when they get solved!

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,738

    Re: Need to find a value in a column

    You're welcome. Thanks for the rep.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Need to find a value in a column

    Thanks for the kind words and 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. Replies: 2
    Last Post: 04-26-2013, 01:16 PM
  2. Find X in Column A, Find Y in Column B and Return Z in Column C
    By pizzalover in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-21-2013, 04:15 PM
  3. [SOLVED] Error when using FIND Method to find last row when column is blank
    By the duke in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-01-2013, 10:26 PM
  4. Range.Find to find column and place value in next available cell in one line
    By davegugg in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-02-2011, 10:41 AM
  5. find something in Column A, and find whats next to it in Column B
    By davehunter in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-03-2007, 09:02 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