+ Reply to Thread
Results 1 to 2 of 2

Transpose data from one sheet to another based on date

  1. #1
    Registered User
    Join Date
    06-29-2022
    Location
    UK
    MS-Off Ver
    365
    Posts
    1

    Transpose data from one sheet to another based on date

    Hi everyone, I'm new to the community and hoping you can help!

    I work as a programme manager for a range of projects and events, and our administrator runs a tracker spreadsheet to keep track of material creation/advertising etc. it looks like this and (with a lot of hidden rows and columns for other events that have already run).

    tracker.PNG

    I've been asked to create a shareable 'calendar' that puts the same information into a table in this order:

    Example.PNG

    Essentially, pulling the programme and module over to a new sheet in the same workbook, but marking what month in the calendar it is running, which in some cases is multiple times as we repeat modules.

    I've managed to get it half working by using a combination of IF Functions, the MONTH function and a macro to remove rows where the month didn't match:

    Sub DeleteZeroRow()
    'Updateby20140616
    Dim Rng As Range
    Dim WorkRng As Range
    On Error Resume Next
    xTitleId = "KutoolsforExcel"
    Set WorkRng = Application.Selection
    Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
    Application.ScreenUpdating = False
    Do
    Set Rng = WorkRng.Find("0", LookIn:=xlValues)
    If Not Rng Is Nothing Then
    Rng.EntireRow.Delete
    End If
    Loop While Not Rng Is Nothing
    Application.ScreenUpdating = True
    End Sub

    As you can imagine, this worked for the first month but when pulling it across to the other months in the table it was deleting the rows it had previously 'filtered out'.

    I've not had much success and I'm starting to think I've been asked to achieve the impossible so I'd be really interested to see if anyone has any suggestions.

    I hope I've made sense!

    Thanks in advance.

  2. #2
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Transpose data from one sheet to another based on date

    Hey there,

    A couple of things:

    1. Your code needs to be encapsulated in [code] ... [/code] tags
    2. Your requirements are potentially complex and it's going to be very difficult to help without having an example file to look at - see the yellow banner at the top of the page.

    Regards,

    WBD
    Office 365 on Windows 11, looking for rep!

+ 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. Trying to select and transpose row based on date
    By stkachuk07 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-21-2021, 03:35 PM
  2. [SOLVED] Macro to Transpose and Copy Data to a New Sheet Based on Names
    By rehana402003 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-08-2017, 02:54 AM
  3. Replies: 4
    Last Post: 10-16-2015, 12:59 PM
  4. Replies: 8
    Last Post: 02-03-2015, 03:42 PM
  5. Formula to pull data from one sheet to a new sheet based on date range
    By lisajolley11 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-15-2015, 08:38 PM
  6. [SOLVED] VBA Code to Pull Data from a Sheet Based on Date and Add that Data to Another Sheet
    By drsadistic in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-09-2014, 12:53 AM
  7. [SOLVED] Macro to copy date to specific sheet based on data from another sheet.
    By RichTea88 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 08-09-2013, 11:28 AM

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