Index/Match Based on given row value

smeye011

New Member
Joined
Mar 23, 2016
Messages
16
Hello,

I'm looking to use a combination of index and match to do the following:

Cell B1 contains a row number that is editable. I have it so once the row number is entered, cell B2 returns the first value completed in the given row. Now, I just need cell B10 to return the 'week' that the first value entered shows up. Photo example below -- thanks in advance!

P9MS2F5
P9MS2F5
P9MS2F5
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
How about
=MATCH(B2,INDEX(B1:E7,B1,0),0)
 
Upvote 0
Thanks!

I'm not sure if this would work if there were multiple other entries with the number 4 in the data set. I'm looking to return a specific value from row 4 in this example when the first cell is not empty in the given row (entered in cell B1).
 
Upvote 0
If B2 is the first value in the row, then it will work
 
Upvote 0
I see - I was too vague in my initial question. I'm actually working across two different tabs. The first tab has the row #, first cell value, and the cell I want to be completed with "first week active". Then the tab 'Volume Sheet' contains the week #'s across row 1 and actual rows of data to be parsed. Sorry for the confusion!
 
Upvote 0
Just trying to simplify - whoops!

I'm looking to have cell E19 reference cell D6 (row number for reference tab, 'Volume Sheet') as well as cell E18 (the first value in the given row in the reference tab), and return a "weeks remaining value" (row 1 in the reference tab).

The first screenshot shows the summary sheet I'm working from, and the second screen shot contains the referenced tab. So in this case, I'd like the number 52 to return in cell E19 of the summary sheet.

Capture2.jpg





Capture3.jpg



Thanks again for any help!
 
Upvote 0
In that case try it like
=INDEX(B1:E1,MATCH(B2,INDEX(B1:E7,B1,0),0))
You'll need to change the ranges & add sheet names to suit
 
Upvote 0

Forum statistics

Threads
1,215,444
Messages
6,124,891
Members
449,194
Latest member
JayEggleton

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top