Shifting cell reference

Supurbub

New Member
Joined
Jul 6, 2024
Messages
9
Office Version
  1. 365
Platform
  1. Windows
Hello. I work in a factory, and we build a variety of products. We will call them products A through
We plan our builds based on shipment day. The problem is, not everything takes the same amount of time to build.
We can plan to ship the products based on customer need dates. That is what the top chart is, ship day per product. The flow is backed off from there to show what day each section needs to build their part.
Our factory can only support 500 pieces per day total. Since every product has different flows, we can plan that 500 based on the ship date but as the different flows back off, it causes over-capacity issues like are shown in the second chart- with a primary concern of our machine shop. As you can see, in the top chart we never build more than 400 per day but because the machine backoff dates are different, that product may hit the same shop on the same day.
'
What I would like to do is to use a formula (vba is not allowed at work) to say product A has a 4-day backoff, so go to the table above, find the row for A, and pull the data from 4 cells over. I don't want to manually code it like is in the example where it just references above. I would like it to be a formula that will match the product code, then go count over the number of cells in the Machine Backoff Days. That way, if flows change, products are added, etc., it will still work. Hopefully this makes sense and it is a possibility! Thank you for any help you can give.
cell shift.xlsx
BCDEFGHIJKLMN
1Ship Date
2Machine Backoff from Ship DaysProduct Code20-Nov21-Nov22-Nov23-Nov24-Nov25-Nov26-Nov27-Nov28-Nov29-Nov30-Nov
34A200
44B300
54C400
65D100
76E200
87F200
9
10
11Machine Load Date
12Machine Backoff DaysProduct Code20-Nov21-Nov22-Nov23-Nov24-Nov25-Nov26-Nov27-Nov28-Nov29-Nov30-Nov
134A200
144B300
154C400
165D100
176E200
187F200
Sheet1
Cell Formulas
RangeFormula
H13,F15,G14H13=L3
F16F16=K6
F17F17=L7
F18F18=M8
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Try:
Book1
BCDEFGHIJKLMN
1Ship Date
2Machine Backoff from Ship DaysProduct Code11/20/2411/21/2411/22/2411/23/2411/24/2411/25/2411/26/2411/27/2411/28/2411/29/2411/30/24
34A200
44B300
54C400
65D100
76E200
87F200
9
10
11Machine Load Date
12Machine Backoff DaysProduct Code11/20/2411/21/2411/22/2411/23/2411/24/2411/25/2411/26/2411/27/2411/28/2411/29/2411/30/24
134A0000200000000
144B0003000000000
154C0040000000000
165D0010000000000
176E0020000000000
187F0020000000000
Sheet8
Cell Formulas
RangeFormula
D13:N18D13=XLOOKUP($D$12:$N$12+B13,$D$2:$N$2,D3:N3,0)
Dynamic array formulas.
 
Upvote 0
Thank you! That works. I was making it so much more difficult than I needed to.
I won't be the one using this after it is made so I need to foolproof it as much as possible. There will be items changed/added in the future which would be inserting rows. I am guessing the best way to make sure it references the same product would be add an IF statement to match the part numbers and if they don't to return "mismatch" or some text. Thoughts?
 
Upvote 0
How about this?
Book1
BCDEFGHIJKLMN
1Ship Date
2Machine Backoff from Ship DaysProduct Code11/20/202411/21/202411/22/202411/23/202411/24/202411/25/202411/26/202411/27/202411/28/202411/29/202411/30/2024
34A200
44B300
54C400
65D100
76E200
87F200
9
10
11Machine Load Date
12Machine Backoff DaysProduct Code11/20/202411/21/202411/22/202411/23/202411/24/202411/25/202411/26/202411/27/202411/28/202411/29/202411/30/2024
134B0003000000000
145D0010000000000
154C0040000000000
167F0020000000000
176E0020000000000
184A0000200000000
Sheet4
Cell Formulas
RangeFormula
D13:N18D13=XLOOKUP($D$12:$N$12+B13,$D$2:$N$2,FILTER($D$3:$N$8,$C$3:$C$8=C13),0)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,224,763
Messages
6,180,827
Members
452,998
Latest member
Minkie88

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