+ Reply to Thread
Results 1 to 22 of 22

Replacing Cells While Duplicating Range for N times

Hybrid View

  1. #1
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Replacing Cells While Duplicating Range for N times

    I am now totally confused. Your sheet is not clear!! Is it the case that sometimes, but not always that you want the cluster code copied down 4 times? If it is not ALWAYS four, then we need to add a column next to each cluster code to tell excel how many times cto copy that code down. You need to define some rules here....

    I no longer know what you want done. So, using realistic data, please explain again.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  2. #2
    Registered User
    Join Date
    09-18-2017
    Location
    Colombo 2
    MS-Off Ver
    2016
    Posts
    12

    Re: Replacing Cells While Duplicating Range for N times

    Hi Glenn. Sorry it was confusing.
    I'll explain to you what I want to do completely.

    1. My workplace is a retail chain with 70 outlets.
    2. These outlets are sorted to what we call "clusters" according to their size to make it easy to handle a range of about 28,000 items.
    3. XL cluster has 4 outlets, L has 10 outlets, M has 42 outlets, S has 2, XS has 5, XXS has 1 and there's one more cluster called 4K with 6 outlets.
    4. We design layouts for the racks in each cluster at the head office, one per each cluster and send it to the supply chain WEEKLY to calculate the order quantities for each item. These documents are called "Shelf Stock Per Cluster"
    5. We used to send them this information cluster-wise. Meaning, we send ONE file per cluster to the supply chain.
    6. But to make this more transparent, I decided to send this information PER OUTLET. Which means instead of 7 files, one per each cluster, I need to be sending 70 separate files, one per each outlet.
    7. For this, I must copy the information from each file, paste it to a new worksheet, once per outlet. But every time it gets pasted, the content of the "Cluster" column should get replaced with the outlet code. (IE: for XL cluster, the range should get duplicated 4 times. For L cluster, the range should get duplicated 10 times)

    -----
    That's the scenario.
    Here's the specifics of the files.

    1. The "Shelf Stock" file will ALWAYS have the following 10 columns.
    Fixel_ID Product_ID Name HOR_FACING VER_FACING DEP_FAC SHELF STOCK RANK OUTLET DISPLAY CATEGORY

    2. The biggest of the 7 "Shelf Stock" files, which is the file for the "M" cluster, has around 2500 rows.
    3. I need to be able to
    • copy paste the content from ONE "Shelf Stock" file at a time within the "A:J" cell range, to the "Data" worksheet (Maximum of 2500 rows down)
    • set the number of outlets in the "O1" cell,
    • type in the outlet codes per cluster into column “L” (Maximum of 60 rows down)
    • and get the result in the NEXT sheet which I named "Result"
    4. Other sheets are only there for my understanding. I will be deleting them once the formula works.
    Again, I thank you for trying to help me here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Counting how many times a range of key words come up in a range of cells
    By Piepongwong in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 09-04-2014, 02:38 PM
  2. [SOLVED] Need to automate the copying of range of cells into same row 365 times
    By Hirad001 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-07-2014, 01:36 PM
  3. [SOLVED] Replacing a Range of Cells in Excel
    By joker25 in forum Excel General
    Replies: 7
    Last Post: 12-16-2013, 09:40 AM
  4. [SOLVED] Need formula to sum range of cells consecutively across a row not duplicating used cells
    By angie18a in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-28-2013, 03:46 PM
  5. copying 2 cells multiple times to a range
    By NewToVBA_23 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-30-2013, 06:09 PM
  6. Duplicating X number of rows Y times automatically
    By rwwilcox in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-15-2012, 07:53 AM
  7. Replacing range in formula for many cells
    By jimstrongy in forum Excel General
    Replies: 3
    Last Post: 12-21-2011, 03:31 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1