+ Reply to Thread
Results 1 to 7 of 7

How to move certain range between worksheets with Indirect function?

  1. #1
    Registered User
    Join Date
    05-24-2018
    Location
    Dublin
    MS-Off Ver
    office 2013
    Posts
    4

    How to move certain range between worksheets with Indirect function?

    Hi there Excel pros!

    I am currently working on a social media marketing plan and one of the tasks is to create working timeline/schedule of all the future activities on our social channels.
    I've build something that is working fine, but I missed one important detail that actually kinda ruined my plan.
    I am attaching an example of the schedule. and here is the explanation and more about what I want to achieve.
    So, the plan contains one global worksheet with a 2018 calendar, you can see broad picture there. Then, there are additional worksheets, one for each month that contain all the key details about each social media activity.
    The problem is, that the environment that I am working in is quite dynamic and dates can change on a weekly/daily basis, and for that I just wanted to get something that would be easier to move. The idea is, that I want to move the dates in Global worksheet, and when I move some date it would be also reflected in the month worksheet. For now, it is working partially, I can move the date in global tab, but then only one cell in a month worksheet moves as well. What I need is to move certain cells range (cells in columns D-J).

    Here is the formula that moves one cell only:
    =INDIRECT("year!"&CELL("address",A12))

    Is there a way so I can actually move certain range?

    thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: How to move certain range between worksheets with Indirect function?

    Welcome to the forum!

    I think your approach complicates things more than it needs to. You basically have two display sheets (per month) and no event list, and you're trying to get the display sheets to feed off of each other. I would recommend creating an event log (just one for the year) and having all display sheets pull their data from there. In the attachment, I've created a sheet called "Event List", where you can list your events in no particular order as they are planned. The date you enter in column A of the event list will feed that entry to both the "Year" and "May" sheets. If you need to reschedule an event, just change the date in column A of the Event List and the event should be repositioned on both "Year" and "May".

    For "Year", I used the following formula in A3. It should be array entered (confirmed with Ctrl + Shift + Enter instead of Enter):

    =IFERROR(INDEX('Event List'!$C$2:$C$40,SMALL(IF((TEXT('Event List'!$A$2:$A$40,"mmmm")=$A$1)*(DAY('Event List'!$A$2:$A$40)=C3),ROW('Event List'!$A$2:$A$40)-ROW('Event List'!$A$2)+1),ROW(1:1))),"")

    Fill it down to A5, then copy and paste formulas for the other days in that week. Repeat for the other weeks, ensuring that the last function in the formula reads ROW(1:1) for the start of each new week. That tweak should be clearer in the attachment.

    For the "May" sheet, I left your INDIRECT formula in place for column C, then used the following in D3 (non-array):

    =IFERROR(INDEX('Event List'!D$2:D$40,MATCH($C3,'Event List'!$C$2:$C$40,0)),"")

    Fill right and down. In all formulas in the attachment, I restricted the range to row 40 of the event list. If you're planning to have more than 40 events per year, just increase the "40"s in the formula to something bigger. Once this setup is in place, the only sheet you should ever need to enter info into or adjust will be the "Event List" sheet. Give it a look:
    Attached Files Attached Files
    If your problem has been solved, please use "Thread Tools" to mark the thread as "Solved".

    If you're grateful for this site's existence and would like to contribute to the community, please consider posting something hilarious in our joke thread:
    https://www.excelforum.com/the-water...ke-thread.html

  3. #3
    Registered User
    Join Date
    05-24-2018
    Location
    Dublin
    MS-Off Ver
    office 2013
    Posts
    4

    Re: How to move certain range between worksheets with Indirect function?

    CAntosh, this is perfect.
    let me see if I can extend it to the whole year with your guide :D
    Thanks again!

  4. #4
    Registered User
    Join Date
    05-24-2018
    Location
    Dublin
    MS-Off Ver
    office 2013
    Posts
    4

    Re: How to move certain range between worksheets with Indirect function?

    Cantosh, I am trying to figure out how can I extend this calendar to extra worksheets (extra months), would I have to change something in the formulas? The year tab would get extra months as well.
    Thanks.

  5. #5
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: How to move certain range between worksheets with Indirect function?

    Without overcomplicating things, it shouldn't be too tricky to add months. For a new calendar sheet, just copy over the May sheet, change A1 to 'June', and tweak your dates as necessary. I'm hoping you took the calendar sheets from an available template, so that the days/dates are already coordinated, but if not, it only takes a minute or two to re-number the dates. For a new month's sheet like the one called 'May' in your attachment, just build it the same way you built 'May' and use the same formula in D3, filled right and down. I added a shortcut in the attached "June" sheet that turns A1 into a date, which enables you to use a formula in B3, filled down, to return the day of the week:

    =IF(ISNUMBER(A3),TEXT(DATE(2018,MONTH($A$1),A3),"dddd"),"")

    In column C, a few minutes of some combination of grunt work and careful 'replace all' swaps should help you update your INDIRECT formula. See the attached for a look at June:
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    05-24-2018
    Location
    Dublin
    MS-Off Ver
    office 2013
    Posts
    4

    Re: How to move certain range between worksheets with Indirect function?

    Thanks Cantosh,
    What I actually meant was if it would be possible to add June calendar in a Year worksheet and only have new Month worksheet for the details.
    Sorry for all the fuss

    I've attached the file for the reference.

    Your approach is definitely something that works for me
    Attached Files Attached Files
    Last edited by CountDom; 05-30-2018 at 04:48 AM.

  7. #7
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: How to move certain range between worksheets with Indirect function?

    Quote Originally Posted by CountDom View Post
    Would [it] be possible to add June calendar in a Year worksheet and only have new Month worksheet for the details.
    Definitely possible - the idea is the same. Update the formulas from May --> June. The 'Replace All' option makes it pretty easy to key all of the June calendar cells to the new month in A19, and you'll also want to be mindful to update each cell to start with ROW(1:1) as the ROW term in the formula. Tweak the 'June' sheet's INDIRECT formula to pull from the new June calendar range. Replace All proves useful here, as well. Take a look at the attachment for a bit more clarity:
    Attached Files Attached Files

+ 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. Replies: 6
    Last Post: 01-09-2018, 10:18 AM
  2. INDIRECT function for other worksheets
    By AdiK in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-18-2017, 10:59 AM
  3. Replies: 8
    Last Post: 01-04-2016, 05:46 AM
  4. Indirect function not refreshing between worksheets
    By lbobrien in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-18-2013, 07:21 PM
  5. Replies: 15
    Last Post: 09-10-2013, 05:31 AM
  6. [SOLVED] INDIRECT Function with various worksheets
    By bigmantitus in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-21-2012, 04:37 AM
  7. indirect function in different worksheets, losing my hair!
    By Alexander Banz in forum Excel General
    Replies: 3
    Last Post: 02-16-2005, 11:59 AM

Tags for this Thread

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