Dynamic offset?

GWard02

New Member
Joined
Dec 6, 2012
Messages
6
I have a "schedule" used for production. We start a boat on a spray date and have the boats in a sequence (14 per day). The work schedule is Mon-Thu, though we work some Fridays and have some Monday holidays. I need to create a schedule for Engine Delivery based off this schedule. Engines get delivered 36 slots (sequenced boats) after spray. So, a boat that was sprayed/started in slot 8 on 2/6/2013 would be the first engine delivered on 2/11/2013. I've used this site before (and the MrExcel youtube channel) to build dynamic array formulas before, however I am stuck on this one and can't figure out how to construct it. The challenges are determining which days are production (people are at work) on the spray date and on the subsequent offset date. When those two don't line up, I don't know how to continue the offset and skip the unneeded rows. The days around the spray date 2/15 (non-production day) are a good example of where the trouble comes in.

Spray date is the start date of production for that boat. Code is a concatenation of spray date and sequence number. boat is just an identifier for each specific boat. The "Eng" columns are what I need to return (with manually filled in values). The specific value I need to return is the Eng Delivery Date Code because I will look that up from another sheet so we can print labels. The other "Eng Del" columns were just there for visual clues while working through it. The offset is an example on the one boat for which date/seq num it needed to return for engine delivery. I've only included a subset (skipping rows etc) in the html table. The full data is below.

Spray DateCodeBoatSeq NumEng Del DtEng Del Dt CodeEng Del Seq numoffset
2/6/201341311:14T-7460142/11/201341316:77
2/7/201341312:1K-746112/11/201341316:88
2/7/201341312:2A-159422/11/201341316:99
2/7/201341312:3Y-746232/11/201341316:1010
2/7/201341312:4T-746342/11/201341316:1111
2/7/201341312:5F-746452/11/201341316:1212
2/7/201341312:6B-159562/11/201341316:1313
2/7/201341312:7S-746572/11/201341316:1414
2/7/201341312:8K-746682/12/201341317:11
2/14/201341319:14K7525142/20/201341325:77
2/15/201341320:1#NA1
no productionthisday
2/18/201341323:1S-752812/20/201341325:88

<tbody>
</tbody>


any guidance is appreciated!

Here is the actual data:

Spray DateCodeBoatBoat NumberEngine Delivery DateEngine Delivery Date CodeEngine Delivery Sequence
2/4/201341309:1X-74261
2/4/201341309:2K-74272
2/4/201341309:3L-74283
2/4/201341309:4T-74294
2/4/201341309:5K-74305
2/4/201341309:6A-15866
2/4/201341309:7U-74317
2/4/201341309:8T-743281
2/4/201341309:9F-743392
2/4/201341309:10B-1587103
2/4/201341309:11S-7434114
2/4/201341309:12K-7435125
2/4/201341309:13S-7436136
2/4/201341309:14A-1588147
15
16
2/5/201341310:1W-743718
2/5/201341310:2M-743829
2/5/201341310:3S-7439310
2/5/201341310:4A-1589411
2/5/201341310:5S-7440512
2/5/201341310:6X-7441613
2/5/201341310:7K-7442714
2/5/201341310:8L-744481
2/5/201341310:9T-744592
2/5/201341310:10K-7446103
2/5/201341310:11A-1590114
2/5/201341310:12U-7447125
2/5/201341310:13T-7448136
2/5/201341310:14F-7449147
15
16
2/6/201341311:1B-159118
2/6/201341311:2S-745029
2/6/201341311:3K-7451310
2/6/201341311:4S-7452411
2/6/201341311:5A-1592512
2/6/201341311:6W-7453613
2/6/201341311:7M-7454714Offset
2/6/201341311:8S-745582/11/201341316:111
2/6/201341311:9A-159392/11/201341316:222
2/6/201341311:10S-7456102/11/201341316:333
2/6/201341311:11X-7457112/11/201341316:444
2/6/201341311:12K-7458122/11/201341316:555
2/6/201341311:13L-7459132/11/201341316:666
2/6/201341311:14T-7460142/11/201341316:777
15
16
2/7/201341312:1K-746112/11/201341316:888
2/7/201341312:2A-159422/11/201341316:999
2/7/201341312:3Y-746232/11/201341316:101010
2/7/201341312:4T-746342/11/201341316:111111
2/7/201341312:5F-746452/11/201341316:121212
2/7/201341312:6B-159562/11/201341316:131313
2/7/201341312:7S-746572/11/201341316:141414
2/7/201341312:8K-746682/12/201341317:1115
2/7/201341312:9S-746792/12/201341317:2216
2/7/201341312:10A-1596102/12/201341317:3317
2/7/201341312:11W-7468112/12/201341317:4418
2/7/201341312:12M-7469122/12/201341317:5519
2/7/201341312:13S-7470132/12/201341317:6620
2/7/201341312:14A-1597142/12/201341317:7721
15
16
2/8/201341313:1S-747112/12/201341317:8822
2/8/201341313:2X-747222/12/201341317:9923
2/8/201341313:3K-747332/12/201341317:101024
2/8/201341313:4L-747442/12/201341317:111125
2/8/201341313:5T-747552/12/201341317:121226
2/8/201341313:6K-747662/12/201341317:131327
2/8/201341313:7A-159872/12/201341317:141428
2/8/201341313:8Y-747782/13/201341318:1129
2/8/201341313:9K-747892/13/201341318:2230
2/8/201341313:10F-7479102/13/201341318:3331
2/8/201341313:11B-1599112/13/201341318:4432
2/8/201341313:12S-7480122/13/201341318:5533
2/8/201341313:13K-7481132/13/201341318:6634
2/8/201341313:14S-7482142/13/201341318:7735
15
16
2/11/201341316:1A-160012/13/201341318:8836
2/11/201341316:2W-748322/13/201341318:99
2/11/201341316:3M-748432/13/201341318:1010
2/11/201341316:4S-748542/13/201341318:1111
2/11/201341316:5A-160152/13/201341318:1212
2/11/201341316:6S-748662/13/201341318:1313
2/11/201341316:7X-748772/13/201341318:1414
2/11/201341316:8K-748882/14/201341319:11
2/11/201341316:9L-748992/14/201341319:22
2/11/201341316:10T-7490102/14/201341319:33
2/11/201341316:11K-7491112/14/201341319:44
2/11/201341316:12A-1602122/14/201341319:55
2/11/201341316:13M-7492132/14/201341319:66
2/11/201341316:14K-7443142/14/201341319:77
15
16
2/12/201341317:1F-749312/14/201341319:88
2/12/201341317:2B-160322/14/201341319:99
2/12/201341317:3S-749432/14/201341319:1010
2/12/201341317:4K-749542/14/201341319:1111
2/12/201341317:5S-749652/14/201341319:1212
2/12/201341317:6A-160462/14/201341319:1313
2/12/201341317:7W-749772/14/201341319:1414
2/12/201341317:8M-749882/18/201341323:11
2/12/201341317:9S-749992/18/201341323:22
2/12/201341317:10A-1629102/18/201341323:33
2/12/201341317:11S-7500112/18/201341323:44
2/12/201341317:12X-7501122/18/201341323:55
2/12/201341317:13K-7502132/18/201341323:66
2/12/201341317:14L-7503142/18/201341323:77
15
16
2/13/201341318:1T-750412/18/201341323:88
2/13/201341318:2K-750522/18/201341323:99
2/13/201341318:3A-160632/18/201341323:1010
2/13/201341318:4M-750642/18/201341323:1111
2/13/201341318:5K-750752/18/201341323:1212
2/13/201341318:6F-750862/18/201341323:1313
2/13/201341318:7B-160772/18/201341323:1414
2/13/201341318:8S-750982/19/201341324:11
2/13/201341318:9K-751092/19/201341324:22
2/13/201341318:10S-7511102/19/201341324:33
2/13/201341318:11A-1608112/19/201341324:44
2/13/201341318:12W-7512122/19/201341324:55
2/13/201341318:13M-7513132/19/201341324:66
2/13/201341318:14S-7514142/19/201341324:77
15
16
2/14/201341319:1A-160912/19/201341324:88
2/14/201341319:2S-751522/19/201341324:99
2/14/201341319:3X-751632/19/201341324:1010
2/14/201341319:4K-752642/19/201341324:1111
2/14/201341319:5L-751852/19/201341324:1212
2/14/201341319:6T-751962/19/201341324:1313
2/14/201341319:7K-752072/19/201341324:1414
2/14/201341319:8A-161082/20/201341325:11
2/14/201341319:9M-752192/20/201341325:22
2/14/201341319:10K-7522102/20/201341325:33
2/14/201341319:11F-7523112/20/201341325:44
2/14/201341319:12B-1611122/20/201341325:55
2/14/201341319:13S-7524132/20/201341325:66
2/14/201341319:14K-7525142/20/201341325:77
15
16
2/15/201341320:1#N/A1
2/15/201341320:2#N/A2
2/15/201341320:3#N/A3
2/15/201341320:4#N/A4
2/15/201341320:5#N/A5
2/15/201341320:6#N/A6
2/15/201341320:7#N/A7
2/15/201341320:8#N/A8
2/15/201341320:9#N/A9
2/15/201341320:10#N/A10
2/15/201341320:11#N/A11
2/15/201341320:12#N/A12
2/15/201341320:13#N/A13
2/15/201341320:14#N/A14
15
16
2/18/201341323:1S-752812/20/201341325:88
2/18/201341323:2A-161322/20/201341325:99
2/18/201341323:3W-752932/20/201341325:1010
2/18/201341323:4M-753042/20/201341325:1111
2/18/201341323:5S-753152/20/201341325:1212
2/18/201341323:6A-161462/20/201341325:1313
2/18/201341323:7S-753272/20/201341325:1414
2/18/201341323:8X-753382/21/201341326:11
2/18/201341323:9K-753492/21/201341326:22
2/18/201341323:10L-7535102/21/201341326:33
2/18/201341323:11T-7536112/21/201341326:44
2/18/201341323:12K-7537122/21/201341326:55
2/18/201341323:13A-1615132/21/201341326:66
2/18/201341323:14M-7538142/21/201341326:77
15
16
2/19/201341324:1K-753912/21/201341326:88
2/19/201341324:2F-754022/21/201341326:99
2/19/201341324:3B-161632/21/201341326:1010
2/19/201341324:4S-754142/21/201341326:1111
2/19/201341324:5K-754252/21/201341326:1212
2/19/201341324:6S-754362/21/201341326:1313
2/19/201341324:7A-161772/21/201341326:1414
2/19/201341324:8W-754482/22/201341327:11
2/19/201341324:9M-754592/22/201341327:22
2/19/201341324:10S-7546102/22/201341327:33
2/19/201341324:11A-1618112/22/201341327:44
2/19/201341324:12S-7547122/22/201341327:55
2/19/201341324:13X-7548132/22/201341327:66
2/19/201341324:14K-7549142/22/201341327:77
15
16
2/20/201341325:1L-755012/22/201341327:88
2/20/201341325:2T-755122/22/201341327:99
2/20/201341325:3K-755232/22/201341327:1010
2/20/201341325:4A-161942/22/201341327:1111
2/20/201341325:5M-755352/22/201341327:1212
2/20/201341325:6K-755462/22/201341327:1313
2/20/201341325:7F-755572/22/201341327:1414
2/20/201341325:8B-162082/25/201341330:11
2/20/201341325:9S-755692/25/201341330:22
2/20/201341325:10K-7557102/25/201341330:33
2/20/201341325:11S-7558112/25/201341330:44
2/20/201341325:12A-1621122/25/201341330:55
2/20/201341325:13W-7559132/25/201341330:66
2/20/201341325:14M-7560142/25/201341330:77
15
16
2/21/201341326:1S-756112/25/201341330:88
2/21/201341326:2A-162222/25/201341330:99
2/21/201341326:3S-756232/25/201341330:1010
2/21/201341326:4X-756342/25/201341330:1111
2/21/201341326:5T-756452/25/201341330:1212
2/21/201341326:6L-756562/25/201341330:1313
2/21/201341326:7T-756672/25/201341330:1414
2/21/201341326:8K-756782/26/201341331:11
2/21/201341326:9A-162392/26/201341331:22
2/21/201341326:10M-7568102/26/201341331:33
2/21/201341326:11K-7569112/26/201341331:44
2/21/201341326:12F-7570122/26/201341331:55
2/21/201341326:13B-1624132/26/201341331:66
2/21/201341326:14S-7571142/26/201341331:77
15
16
2/22/201341327:1K-757212/26/201341331:88
2/22/201341327:2S-757322/26/201341331:99
2/22/201341327:3A-162532/26/201341331:1010
2/22/201341327:4W-757442/26/201341331:1111
2/22/201341327:5M-757552/26/201341331:1212
2/22/201341327:6S-757662/26/201341331:1313
2/22/201341327:7A-162672/26/201341331:1414
2/22/201341327:8S-757782/27/201341332:11
2/22/201341327:9X-757892/27/201341332:22
2/22/201341327:10T-7579102/27/201341332:33
2/22/201341327:11L-7580112/27/201341332:44
2/22/201341327:12T-7581122/27/201341332:55
2/22/201341327:13K-7582132/27/201341332:66
2/22/201341327:14A-1627142/27/201341332:77
15
16
2/25/201341330:1M-758302/27/201341332:88
2/25/201341330:2K-758402/27/201341332:99
2/25/201341330:3F-758502/27/201341332:1010
2/25/201341330:4B-163002/27/201341332:1111
2/25/201341330:5S-758602/27/201341332:1212
2/25/201341330:6K-758702/27/201341332:1313
2/25/201341330:7S-758802/27/201341332:1414
2/25/201341330:8A-163102/28/201341333:11
2/25/201341330:9W-758902/28/201341333:22
2/25/201341330:10M-759002/28/201341333:33
2/25/201341330:11S-759102/28/201341333:44
2/25/201341330:12A-163202/28/201341333:55
2/25/201341330:13S-7592132/28/201341333:66
2/25/201341330:14X-7593142/28/201341333:77
15
16
2/26/201341331:1T-759412/28/201341333:88
2/26/201341331:2L-759522/28/201341333:99
2/26/201341331:3T-759632/28/201341333:1010
2/26/201341331:4K-759742/28/201341333:1111
2/26/201341331:5A-163352/28/201341333:1212
2/26/201341331:6M-759862/28/201341333:1313
2/26/201341331:7K-759972/28/201341333:1414

<tbody>
</tbody>
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
it varies, but yes. The data you see in my source is a rowset that changes dynamically based on the production spray schedule (another sheet in the workbook). So as the spray schedule (4 wks) rolls forward, the rows I pasted in advance automatically. So while we know them up to 6 weeks out, it isn't something I could use the workdays function on (we're trying to make this a "code it and forget it" kind of thing if we can).
 
Upvote 0

Forum statistics

Threads
1,214,991
Messages
6,122,628
Members
449,095
Latest member
bsb1122

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