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: 17

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

Forum statistics

Threads
1,225,730
Messages
6,186,701
Members
453,369
Latest member
positivemind

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