# formula that returns value from the same row it searches

1. ## 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. ## Re: formula that returns value from the same row it searches

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

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

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

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

Originally Posted by Bill Ratliff
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. ## Re: formula that returns value from the same row it searches

I´ve 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. ## 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. ## 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

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

#### 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