Fill values from fixed value conditional to time span

JohnDooe

New Member
Joined
Dec 15, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hello,

I can't wrap my head around this. Maybe someone here can help me out.

Context
I need to create an excel spreadsheet to help plan the distribution of welcome packages to club members.
These packages contain shirts which are handmade (take the longest to make of the components). So, to help plan the rest we'd like to know when they are ready. Production speed of the shirts varies (depending on helpers available)

Spreadsheet
The values in column B are entered manually. Same with F2; F4 and G2.
I would like excel to fill column c and d according to the values in F2; F4 and G2.

Fill column D with the starting date from F4 until we reach the value entered in F2. Then start over and add the value from G2 to F4.
And so on.

To be perfectly honest: I experimented for a few days and spent some time googling but have to admit this is beyond my skills.
Any help would be greatly appreciated.
 

Attachments

  • shirts.png
    shirts.png
    29.3 KB · Views: 7

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Welcome to Mr Excel Forum

Maybe with two helper columns (see columns I and J)

Pasta1
ABCDEFGHIJ
1NamesQty wantedAvailable whenQtyDaysDatesAvailable
2Person 1101/01/202210701/01/202210
3Person 2301/01/202208/01/202220
4Person 3401/01/2022Start15/01/202230
5Person 4101/01/202201/01/202222/01/202240
6Person 5101/01/202229/01/202250
7Person 6508/01/202205/02/202260
8Person 7208/01/202212/02/202270
9Person 8615/01/202219/02/202280
10Person 9315/01/202226/02/202290
11Person 10215/01/202205/03/2022100
12Person 11215/01/202212/03/2022110
13Person 12422/01/202219/03/2022120
14Person 13222/01/202226/03/2022130
15Person 14122/01/202202/04/2022140
16Person 15729/01/202209/04/2022150
17
Plan9
Cell Formulas
RangeFormula
I2:I16I2=F$5+(ROWS(I$2:I2)-1)*G$2
J2:J16J2=F$2*ROWS(J$2:J2)
C2:C16C2=INDEX($I$2:$I$16,IFERROR(MATCH(SUM(B$2:B2),J$2:J$16)+IF(ISNA(MATCH(SUM(B$2:B2),J$2:J$16,0)),1,0),1))


Hope this helps

M.
 
Upvote 0
Thank you for your help. Greatly appreciated.

I tried this to transfer this to my spreadsheet and I get #name errors. Even if I try it with the exact same values and positions.
 
Upvote 0
The formulas I suggested use functions available since Excel 2007 and later versions.

Looking at your profile, I see Windows and Office 365 - I don't understand why the #NAME error occurred in your case (???)

M.
 
Upvote 0
Are you trying this in Excel, rather than some other App, such as Goggle Sheets?
If you are using xl, what language does your version use?
 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,391
Members
448,957
Latest member
Hat4Life

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