Create Upload File Repeating Values in Columns

lostyankee

New Member
Joined
Jul 14, 2019
Messages
7
I need to create a file for data uploads that contains values in 5 separate columns (DC, Stores, SKUs, Case Pack, Quantity). Essentially, i need to create a line for each SKU and Store, and lookup the corresponding DC, case pack and quantity.
To repeat the store list, I'm using the following: =CHOOSEROWS(B2:B200000, MOD(SEQUENCE($P$3*$P$1)-1,$P$3)+1) where B is the list of stores, and P3=number of skus, and P3 is the number of stores (so repeat the store list for however many SKU's there are in the list. This works fine.
To repeat the list of SKU's, I'm using this formula: =INDEX($C$2:$C$1000, INT(SEQUENCE(COUNTA($C$2:$C$1000)*$P$3,,1,1/$P$3))) wher C is the list of SKU's, and P3 again is the number of stores, so repeat each value to match the number of stores.

For some reason, this works fine except for 4 cells. I cannot see the error, it has to be staring me in the face.
 

Attachments

  • Screenshot 2024-12-21 081520.png
    Screenshot 2024-12-21 081520.png
    104.3 KB · Views: 5

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

Forum statistics

Threads
1,224,813
Messages
6,181,115
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