+ Reply to Thread
Results 1 to 7 of 7

formula that returns value from the same row it searches

  1. #1
    Registered User
    Join Date
    05-27-2014
    Posts
    3

    formula that returns value from the same row it searches

    I need a formula that can return the value from a cell in the same row it searches. The row is unsorted and has blank cells.
    Seacchs row A12:X12 returns the text in C4 (data validation List) in A19 on a different sheet.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel (Windows 11 64-bit)
    Posts
    62,047

    Re: formula that returns value from the same row it searches

    C4 is not in the same row - please explain in more detail.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" to anyone who has offered you help in your thread. You can reward them by clicking on * Add Reputation below theur user name on the left, if you wish.


    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.

  3. #3
    Registered User
    Join Date
    05-27-2014
    Posts
    3

    Re: formula that returns value from the same row it searches

    Searchs row A12:X12 using the text from C4.(my bad)

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: formula that returns value from the same row it searches

    Quote Originally Posted by Bill Ratliff View Post
    Searchs row A12:X12 using the text from C4.
    Then what?

    It finds the value from C4 within A12:X12...
    Then what?

    Are you wanting it to return the corresponding value from another row, 19 ?

    Try HLOOKUP

    =HLOOKUP(C4,A12:X19,8,0)

  5. #5
    Registered User
    Join Date
    05-27-2014
    Posts
    3

    Re: formula that returns value from the same row it searches

    Ive bin trying HLOOKUP AND LOOKUP AND INDEX the poblume is they can't return a value from a row they use to search. I am looking for a formula that can search and retriev data from the same row.

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: formula that returns value from the same row it searches

    To what end?

    Say it finds the value in G12, what cell do you want to return a value from?

  7. #7
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: formula that returns value from the same row it searches

    Sorry, but you're not providing enough information.

    WHICH value do you want to actually return based on where C4 is found in A12:X12 ?


    To clarify, Hlookup and Lookup indeed CAN return a value from the same row it searches.
    Though it's likely not the correct value that you want (you haven't told us which one you actually want).
    It can be made to simply return the cell that it found the match in.

    =HLOOKUP(C4,A12:X12,1,FALSE)
    If C4 happened to be in say G12, then the formula would return the value in G12. Which just happens to be the same value as C4

+ 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] Other was to do more then 6 searches in one formula
    By Shannon561 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-02-2014, 07:43 PM
  2. Replies: 2
    Last Post: 09-04-2013, 02:09 PM
  3. [SOLVED] Create macro that searches multiple named ranges and returns name of the range with data
    By mechant in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-15-2013, 01:04 AM
  4. Getting valid web searches and avoiding sites that contaminate web searches
    By David McRitchie in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 06-12-2006, 10:10 PM
  5. [SOLVED] FIND formula that searches from right?
    By KellyB in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-21-2005, 07:06 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