+ Reply to Thread
Results 1 to 4 of 4

Extract from dataset

  1. #1
    Registered User
    Join Date
    04-19-2017
    Location
    Germany
    MS-Off Ver
    2016
    Posts
    18

    Extract from dataset

    Hey guys!

    The big goal is to create a graph which always represents the last 20 working days.
    This is probably a major problem. I have already mentioned this topic and I hope now for further and new ideas.
    http://www.vbaexpress.com/forum/show...namic-diagramm

    I would like to create a table, which represents me only the last 20 working days.
    In the first column is the date, in the second the status, and in column 3-5 the individual values.

    Last line: Current date (If workday)
    Penultimate line: Current date -1 (If Workday)


    Is it now possible to create such a table in order to build up the diagram?


    Best regards!
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Extract from dataset

    In the first column is the date, in the second the status, and in column 3-5 the individual values.
    That's not what your file looks like but I'll try to imagine it.

    You do not mention holidays so this assumes that Monday-Friday are always the working days.

    The last date is today, or the next working day if today is not a working day. This is done by looking at what day of the week the day is and adjusting to Monday if it falls on a Saturday or Sunday.

    The other values used the WORKDAY function to move backwards one working day.

    Then there are VLOOKUPS to pull out the data.
    Attached Files Attached Files
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    04-19-2017
    Location
    Germany
    MS-Off Ver
    2016
    Posts
    18

    Re: Extract from dataset

    Quote Originally Posted by 6StringJazzer View Post

    You do not mention holidays so this assumes that Monday-Friday are always the working days.
    Hey, thanks for your approach!
    Of course, there a also holidays but currently not defined.
    The second colum (Status, Workday-Status) defines this. There are some weekends as workdays but currently not updated/ defined as workdays.
    Its possible, that special days will be defined als work or not-workdays during the year.

  4. #4
    Registered User
    Join Date
    04-19-2017
    Location
    Germany
    MS-Off Ver
    2016
    Posts
    18

    Re: Extract from dataset

    Im sorry!

    Here your have the appropriate file
    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: 3
    Last Post: 01-23-2014, 10:13 AM
  2. [SOLVED] Vertical chart dataset needs to be converted into pivotable dataset
    By aspak84 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 09-17-2013, 06:06 PM
  3. [SOLVED] How to extract maximum record from dataset based on multiple criteria?
    By adelkam in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-15-2013, 04:41 AM
  4. Need to extract specific XYZ coordinates from a dataset
    By pdog in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-02-2012, 02:52 PM
  5. Copying a dataset multiple times - and selecting titles for this dataset
    By alocke in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-07-2012, 10:15 PM
  6. extract data from a matrix dataset in excel
    By vamshi.lucky in forum Excel General
    Replies: 2
    Last Post: 09-12-2011, 07:09 AM
  7. graphing daily dataset with weekly dataset
    By [email protected] in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-27-2009, 09:39 AM
  8. [SOLVED] Converting A Quarterly Dataset to Weekly Dataset
    By Dan Thompson in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-25-2005, 05:30 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