+ Reply to Thread
Results 1 to 5 of 5

Simple Search for Value Function

Hybrid View

  1. #1
    Registered User
    Join Date
    08-15-2011
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    78

    Simple Search for Value Function

    Hi all,

    I am needing some help on a search formula. I have attached an example if it helps.

    I have names in column D, and numerical values in column E.
    Using row 11 as an example, I need a formula G11 that will look at the text (in this case the name) in D11, then search the remainder of Column D for the same name, and then return the value in the adjacent cell (in row E). In the example used, the value returned in cell G11 is 7.

    Any help on this one would be much appreciated :-)

    Thanks.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Hawkeye16's Avatar
    Join Date
    02-27-2013
    Location
    Holland
    MS-Off Ver
    ├•┤ Pew Pew
    Posts
    441

    Re: Simple Search for Value Function

    Try this.
    Formula: copy to clipboard
    =INDEX(E12:$E$33,MATCH(D11,D12:$D$33,0))


    if it doesn't exist again it will give #N/A you can use this formula if you prefer to return nothing
    Formula: copy to clipboard
    =IFERROR(INDEX(E12:$E$33,MATCH(D11,D12:$D$33,0)),"")

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Simple Search for Value Function

    Try this one

    =IFERROR(VLOOKUP(D11,$D$12:$E$33,2,0),"")

    or this?

    =LOOKUP(2,1/($D$11:$D$33=D11),$E$11:$E$33)
    Last edited by AlKey; 06-10-2014 at 08:11 AM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Registered User
    Join Date
    08-15-2011
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    78

    Re: Simple Search for Value Function

    Thanks very much guys, both of those options work perfectly !!
    Thanks again.

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Simple Search for Value Function

    Thank you for 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. 'Simple' textbox search function help on validation
    By michaelcouch87 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-14-2014, 04:56 AM
  2. [SOLVED] simple search function using nested IF and Vlookup statements
    By cherryt in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 08-27-2013, 08:45 AM
  3. Simple search function and results display.
    By dgbradl in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-17-2013, 06:33 PM
  4. Create a Macro from this simple search function
    By McMasters in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-24-2009, 05:12 PM
  5. simple search macro
    By diesel20056 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-19-2006, 02:05 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