Solved

INDEX, MATCH EVERY OTHER ROW

Posted on 2013-11-22
3
272 Views
Last Modified: 2013-11-22
Hi working fairly new to working with the Index/Match function.  I have a worksheet that I would like to return the second row of data and also be able to drag the formula down and across to populate the data.

Attaching spreadsheet in starting with column Q to AN on the Report would like to match based on column b (store #) and return the date from the same week (columns N-AK) on the PUC tab that would be in the row where the Actual Receipt Date is.

So on my attempt 3/4/13 was returned, looking for 2/27/13.
EE-Index-Match.xlsx
0
Comment
Question by:jmac001
3 Comments
 
LVL 23

Expert Comment

by:NBVC
Comment Utility
Try changing the INDEX range to one row below...

=IF(ISBLANK(INDEX(PUC!$N12:$AK12,MATCH(Report!$B2,PUC!$B$11:$B$152,0))),"",INDEX(PUC!$N12:$AK12,MATCH(Report!$B2,PUC!$B$11:$B$152,0)))
0
 
LVL 35

Accepted Solution

by:
mvidas earned 500 total points
Comment Utility
jmac,

Your N11:AK11 range will only return data from there. I assume you want it to be N11:AK152 as your other range has it. Your MATCH function will return the relative row number in that range, so just add +1 to it. Then you can specify a column number to make sure to retrieve the applicable week. Put this in Q2:
=IF(ISBLANK(INDEX(PUC!$N$11:$AK$152,MATCH(Report!$B2,PUC!$B$11:$B$152,0)+1,COLUMN()-16)),"",INDEX(PUC!$N$11:$AK$152,MATCH(Report!$B2,PUC!$B$11:$B$152,0)+1,COLUMN()-16))

Open in new window

Matt
0
 

Author Comment

by:jmac001
Comment Utility
Thank you Matt that is what I was looking for, I was playing with the columns to see what result I would get back and forgot to change it back.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

763 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

11 Experts available now in Live!

Get 1:1 Help Now