+ Reply to Thread
Results 1 to 5 of 5

Formula to find a value in a column

  1. #1
    Registered User
    Join Date
    02-19-2017
    Location
    Bristol, England
    MS-Off Ver
    Microsoft Excel XP
    Posts
    2

    Formula to find a value in a column

    Hi all,

    I am looking for a formula which will:

    - Find a value in a column.

    - Then return the value in the adjacent cell to the left.

    I've tried using the LOOKUP function for this. In the attachment, the formula would go in cell C4.

    I'd like the formula to search E4:E13 and identify the value which matches the value in B4.

    Then I'd like the value in D4 to appear in C4.

    So in the attached example, inputting '2' in B4 would result in '99' in C4.

    Ideas welcome, thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Formula to find a value in a column

    VLOOKUP or LOOKUP cannot reference to a column in front. you would either have to switch D with E so you search in D and return E
    The alternative is to use INDEX and MATCH as an array formula to get the row number, but I suggest you read up on that, you can search for that via Google.
    I am currently away from my computer so cannot write the example for you.
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Formula to find a value in a column

    Just a quick one place this formula in C4

    Please Login or Register  to view this content.

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: Formula to find a value in a column

    Use VLOOKUP:

    =VLOOKUP(B4,CHOOSE({1,2},$E$4:$E$13,$D$4:$D$13),2,0)

    Use LOOKUP:

    =LOOKUP(2,1/($E$4:$E$13=B4),$D$4:$D$13)

    Or use INDEX & MATCH

    =INDEX($D$4:$D$13,MATCH(B4,$E$4:$E$13,0))

  5. #5
    Registered User
    Join Date
    02-19-2017
    Location
    Bristol, England
    MS-Off Ver
    Microsoft Excel XP
    Posts
    2

    Re: Formula to find a value in a column

    Hi Keebellah and Phuocam,

    Thanks for taking the time to post replies. The formulas look as though they should work but currently I am getting errors. I will try again and see if I'm missing something.

    Thanks.

+ 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] Formula to find first non zero value in a column
    By chinchillin in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 06-11-2019, 09:46 AM
  2. [SOLVED] Which formula to use to find the second last and third last Non Zero value in a column
    By omega0010 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-13-2016, 05:24 AM
  3. Replies: 5
    Last Post: 03-18-2015, 10:14 AM
  4. To Find and Insert column and add Formula and copy formula down
    By Akatecho in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-27-2014, 11:52 PM
  5. Formula to find all matches in column A and return cells from column C
    By GenericPat in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-19-2012, 04:56 PM
  6. Replies: 1
    Last Post: 09-20-2010, 01:50 AM
  7. formula to find last figure in a column
    By maztaz in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-29-2008, 06:19 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