+ Reply to Thread
Results 1 to 2 of 2

Extract 4 weeks data from a sheet at increment of "1" in a cell for every worker and task

  1. #1
    Registered User
    Join Date
    02-10-2020
    Location
    Ålesund, Norway
    MS-Off Ver
    2010
    Posts
    1

    Post Extract 4 weeks data from a sheet at increment of "1" in a cell for every worker and task

    I have a planning worksheet (sheet1) with number of vba codes (command buttons) that performs various task. I am now trying to add another function which is to extract and generate a 4 weeks summary (Sheet3) from sheet1 anytime the command button is clicked.

    This is how the code on sheet3 will work:

    1- Extract all task (excluding workers column) from sheet1 and paste to sheet3

    2- Extract ONLY four weeks (from today) from sheet1 and paste it to sheet3.

    3- Extract weekdata (all "7.5") into sheet3 so that for every "7.5" it will be "1" in a single cell in a task row in sheet3. For example, if there are 3 men (rows) under a task (7.5 hours) on Monday, it should be "3" in a single cell corresponding to the day of the week in Sheet3. In other words, write the total number of men that work that day in Sheet3.

    4- Print sheet3 to PDF, etc.

    The step I am having problem is the 3rd step. I have tried various ways to write the code section , but its not working, the closest one I did was this code below, (Note this is only working for one week, one task (Order 9427) as an example, I could not also figure how to adapt it to work for all the task and workers in sheet1). I attached the worksheet showing this for clarification


    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by AliGW; 04-12-2022 at 11:17 AM. Reason: Code tags added.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Extract 4 weeks data from a sheet at increment of "1" in a cell for every worker and t

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. As you are new here I will do it for you this time: https://www.mrexcel.com/board/thread...h-day.1202028/.)

    Administrative Note:

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between [code]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/code] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. As you are new here I will do it for you this time.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them 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. Auto increment characters in Excel, eg "AAAAA", "AAAAB", "AAAAC", etc
    By ExcelHelp72 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-18-2022, 01:52 PM
  2. Replies: 3
    Last Post: 05-02-2019, 02:18 PM
  3. [SOLVED] Place "X" in a cell based on tonnes across columns "weeks"
    By Iain Clarendon in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-01-2015, 09:27 AM
  4. [SOLVED] Task - If a cell on a row contains "text" then enter data from various points on new work
    By Darkprophecy in forum Excel Programming / VBA / Macros
    Replies: 33
    Last Post: 11-09-2014, 03:38 PM
  5. [SOLVED] inputting a number representing "Time" spent on a "Task" under drop menu's
    By cubbymonkey in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-09-2014, 04:03 PM
  6. Replies: 5
    Last Post: 08-02-2010, 07:25 PM
  7. Replies: 5
    Last Post: 09-19-2008, 04:02 PM

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