Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Lookup Value and Return Value from Different Row

Posted on 2014-02-12
3
Medium Priority
?
284 Views
Last Modified: 2014-02-13
Hello Experts -

I need to search Spr!A9:A153 for the value in cell A25 and return the value in the cell below it and beside it.  Then for the next 5 rows, I need the data another row down.  Attached in an example with 3 tabs, Spr, Lamar, CO and Example.  Lamar, CO is what I am getting, Example is what the end result needs to be.

I have tried using the offset and match functions and those work, but only for the 1st row, I cant figure out how to get the rows below that.
OffsetMatchExample.xlsm
0
Comment
Question by:rsburge
  • 2
3 Comments
 
LVL 23

Accepted Solution

by:
NBVC earned 2000 total points
ID: 39854081
In A19:

=INDEX(Spr!$A$8:$A$162,MATCH($A$18,Spr!$A$8:$A$162,0)+ROWS($A$18:$A18))

copied down 5 rows

in C18:

=INDEX(Spr!$C$8:$C$162,MATCH($A$18,Spr!$A$8:$A$162,0)+ROWS($A18:$A$18)-1)

copied down 6 rows.

similar in A26, C27 changing the $A$18 reference to suit.
0
 

Author Comment

by:rsburge
ID: 39854243
Thank you so much!

This works perfectly with one minor change...

for my needs, the formula in C18 ends up needing to be

=INDEX(Spr!$C$8:$C$162,MATCH($A$18,Spr!$A$8:$A$162,0)+ROWS($A$18:$A18),0)

and then copy it down.  I am not sure why this works, but it does.  :)
0
 
LVL 23

Expert Comment

by:NBVC
ID: 39854433
Notice that C18 is up one row from A19, so I figured you were looking for the subtotal value for Lamar, CO  -  Day 1  -  Saturday, Apr 5, 2014
... but Ok.  Thanks for the feedback.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa‚Ķ

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question