Locating moving cell value in an array, and returning the date form the top of the array.

tuddym

New Member
Joined
May 24, 2018
Messages
1
Hey all. First of all, what I am asking may not even be possible in excel. However, I figured it was worth a quick shot to reach out to you all first before throwing in the towel.

I need to find a lookup value in an array/table, and return the value (date) at the top of this table. The trouble I am running into is the location of the lookup value will be changing row/column, and there will be multiple returns of each date.

Ive looked into index/match/match, lookups, V/H lookups, different nested formulas and I am coming up with #N/A - my favorite!

Essentially I have a worksheet that is used for crew cycling/scheduling. I want to be able to move around the production line numbers each crew is working (move dates - left/right) as well as assign to different crews (up/down). I then want my formula to return the date where these lookup values reside (top row of the array).

5/1 6/1 7/1 8/1 Return 1003 - 6/1
Team 1 1001 1003 1005 1007 1004 - 6/1
1008- 8/1... etc,
Team 2 1002 1004 1006 1008

Team 3 2001 2002 2003 2004


This way if I want to swap 1001 and 1007 in the schedule, I want the return file to show 1001=8/1, and 1007 = 5/1. Furthermore, I may swap 1001 and 2003 for example and would need the equation to still find 1001, even in the new row.

Any ideas?

Thanks again!
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Welcome to the MrExcel board!

Try this, copied down.
I am assuming that a production number will occur at most once in the table, that the dates are 'real' dates (Numbers) not Text and that you are using Excel 2010 or later.
Formula in H2 is copied down.

Excel Workbook
ABCDEFGH
15-Jan6-Jan7-Jan8-JanProd #Date
2Team 1100110031005100710015-Jan
3Team 2100210041006100810025-Jan
4Team 3200120022003200410036-Jan
510046-Jan
610057-Jan
710067-Jan
810078-Jan
910088-Jan
1020015-Jan
1120026-Jan
1220037-Jan
1320048-Jan
Lookup Date
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

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