Solved

Lookup Value and Return Value from Different Row

Posted on 2014-02-12
3
255 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 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now