Index/Match Assistance

Bwiles96

New Member
Joined
Apr 5, 2022
Messages
16
Office Version
  1. 365
Platform
  1. Windows
I've spent the past 5 hours trying to figure out my index match formula, but my brain is mush at this point. Every instance of index/match i've been unable to return my desired value.

I am trying to return the value of the date from the reference sheet based on the "batch ticket" number on the output sheet

Sheet with formula (named Output):

Data is in A3 to C3

1702411259731.png


The formula I most recently tried in A1 above was =INDEX('Stored Data'!D2:XFD780,MATCH(Output!$A$2, 'Stored Data'!D:D,0),MATCH(Output!C3,'Stored Data'!D2:XFD780,0))


Reference Sheet (named Stored Data)

Data is in D2 to E4

1702410969551.png


Is the reason I am returning "N/A" because there is multiple instances of the word "Date"? That is the only reason I can think that this is not working.

Send help lol
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
If I get your question right....

The second Match ...,MATCH(Output!C3,'Stored Data'!D2:XFD780,0)....can have only one dimension vector...not D2:XFD780

The formula I most recently tried in A1 above was =INDEX('Stored Data'!D2:XFD780,MATCH(Output!$A$2, 'Stored Data'!D:D,0),MATCH(Output!C3,'Stored Data'!D2:XFD780,0))
 
Upvote 0
Try using below formula in output sheet cell A1

=INDEX('Stored Data'!E:,MATCH(Output!$C1, 'Stored Data'!E:E,0)+1)
 
Upvote 0
Try This
provided that the date is exactly 1 cell below the batch no

Copy to Row "A3"
Excel Formula:
=OFFSET(INDEX('Stored Data'!E:E,MATCH(Output!$C$3,'Stored Data'!E:E,0)),1,0)
 
Upvote 0
Try This
provided that the date is exactly 1 cell below the batch no

Copy to Row "A3"
Excel Formula:
=OFFSET(INDEX('Stored Data'!E:E,MATCH(Output!$C$3,'Stored Data'!E:E,0)),1,0)
Is that $C$3 or C1?
 
Upvote 0
I will give it all a try tomorrow morning! Thanks for the feedback. Will touch base with y’all when I can
 
Upvote 0
Since I can see some issues with both the above, here is another option:

20231213 Index Match Bwiles96.xlsx
ABC
1
2DateProductBatch
312/12/2023123456
41/07/2023888888
Output
Cell Formulas
RangeFormula
A3:A4A3=INDEX('Stored Data'!$E$2:$E$780, MATCH(C3,'Stored Data'!$E$2:$E$780,0) + 1, 0)


Sample Values Table in case it helps others.

20231213 Index Match Bwiles96.xlsx
DE
1
2Batch Ticket123456
3Date12/12/2023
4Package typeBag
5Batch Ticket999999
6Date20/02/2023
7Package typeCarton
8Batch Ticket888888
9Date1/07/2023
10Package typeCrate
11Batch Ticket987654
12Date5/09/2023
13Package typeCarton
Stored Data
 
Upvote 1
Solution
Since I can see some issues with both the above, here is another option:

20231213 Index Match Bwiles96.xlsx
ABC
1
2DateProductBatch
312/12/2023123456
41/07/2023888888
Output
Cell Formulas
RangeFormula
A3:A4A3=INDEX('Stored Data'!$E$2:$E$780, MATCH(C3,'Stored Data'!$E$2:$E$780,0) + 1, 0)


Sample Values Table in case it helps others.

20231213 Index Match Bwiles96.xlsx
DE
1
2Batch Ticket123456
3Date12/12/2023
4Package typeBag
5Batch Ticket999999
6Date20/02/2023
7Package typeCarton
8Batch Ticket888888
9Date1/07/2023
10Package typeCrate
11Batch Ticket987654
12Date5/09/2023
13Package typeCarton
Stored Data
This works like a charm so far. Thank you so much. I was slamming my head into the wall yesterday!


Thank y'all for the assistance as well

SunnyAlv

jambar

 
Upvote 0

SunnyAlv

jambar

Alex Blakenburg

So I realize I should've been more detailed in my initial question

I have uploaded a smaller sample size of my workbook.

I will have multiple columns with different batch ticket numbers.

I need to be able to look up the date, package type and result of test 1, test 2, test 3, test 4, test 5 for batch ticket 1 and then the date, package type and result of test 1, test 2, test 3, test 4, test 5 for batch ticket 2 and so on and so forth.

Any ideas?

Reference Page:
1702481683572.png


Output Page with current formula in A2: =INDEX('Stored Data'!$E$2:$E$780, MATCH(C2,'Stored Data'!$E$2:$E$780,0) + 1, 0)

NOTE: Column Product is mislabeled. It should say package type, just to not confuse anyone

1702481709470.png
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,958
Members
449,096
Latest member
Anshu121

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