+ Reply to Thread
Results 1 to 6 of 6

Displaying data by month when there are date gaps in data collected

  1. #1
    Registered User
    Join Date
    03-20-2018
    Location
    Cambs
    MS-Off Ver
    2010 +
    Posts
    21

    Displaying data by month when there are date gaps in data collected

    Hi,

    Raw data collected is at site level. Checks are made and an overall rating given. Carried out approx. once every 3 months per site. (Raw data table on attachment)

    At a monthly level the data is reported on to show what rating the site is currently operated at. This means that if the reporting month did not have a rating issued for a particular site that month, the previous closest rating is carried forward as the data. (Summary 1 on attachment gives the expected results)

    The data is also presented to the team carrying out the checks in a visual way whereby every check is shown on a row for each site. The date is given, with the cell background colour representing the Red/ Amber/ Green rating given. This data display represents exactly the checks carried out, no infill of months between checks to be shown. (Summary 2 on attachment gives the expected results).

    Other notes:
    Summary 1 would be in a separate workbook to the other two pieces. The Raw data would be on it's own tab and Summary 2 in another tab in the same workbook.

    The grey coloured cells on the sheet are where I plan/ expect to have fixed data references set up to help pull the data together, although this is flexible in order to get a working solution.

    I am ok with VB basic code and appending to buttons on sheets so happy to use that where necessary.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Displaying data by month when there are date gaps in data collected

    Based on the sample from post #1, try this:

    F3 =IFERROR(INDEX($C$3:$C$15,INDEX(MATCH($E3&F$2,$A$3:$A$15&$B$3:$B$15,0),0)),E3)

    P3 =IFERROR(INDEX($B:$B,SMALL(IF($A$3:$A$15=$O3,ROW($A$3:$A$15)),COLUMNS($A:A))),"") Ctrl Shift Enter


    Now for the conditional formatting.

    Highlight P3:S6 > Conditional Formatting > New Rule > Use a formula
    =INDEX($C$3:$C$15,MATCH($O3&P3,$A$3:$A$15&$B$3:$B$15,0))="A"
    Format: Fill Amber > OK > OK

    Highlight P3:S6 > Conditional Formatting > New Rule > Use a formula
    =INDEX($C$3:$C$15,MATCH($O3&P3,$A$3:$A$15&$B$3:$B$15,0))="G"
    Format: Fill Green > OK > OK

    Highlight P3:S6 > Conditional Formatting > New Rule > Use a formula
    =INDEX($C$3:$C$15,MATCH($O3&P3,$A$3:$A$15&$B$3:$B$15,0))="R"
    Format: Fill Red > OK > OK

    See attachment to see all of this being implemented.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    03-20-2018
    Location
    Cambs
    MS-Off Ver
    2010 +
    Posts
    21

    Re: Displaying data by month when there are date gaps in data collected

    Excellent, thanks. I will give this a go with some real data and update when tested.

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Displaying data by month when there are date gaps in data collected

    You're welcome. Let us know how it works out for you.

  5. #5
    Registered User
    Join Date
    03-20-2018
    Location
    Cambs
    MS-Off Ver
    2010 +
    Posts
    21

    Re: Displaying data by month when there are date gaps in data collected

    Just to let you know, the solution worked perfectly, thank you. Except the machines here are not powerful enough to run the formulae so I will have to look for a vba solution that refreshes on button click I think. Will repost under that section.

    Appreciate your help.

  6. #6
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Displaying data by month when there are date gaps in data collected

    You're welcome, happy to help.

+ 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. Problem with Sorting Collected Data
    By kross86 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 04-21-2017, 01:22 AM
  2. display collected array data in a MsgBox
    By UMBiii in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-21-2014, 01:24 PM
  3. Manipulate and present collected app data
    By gardash in forum Excel General
    Replies: 0
    Last Post: 10-03-2014, 01:49 PM
  4. displaying month to date data
    By RJDAl in forum Excel General
    Replies: 0
    Last Post: 06-13-2012, 09:22 PM
  5. Formatting collected data in a cell
    By ani4ani in forum Excel General
    Replies: 2
    Last Post: 04-22-2010, 03:39 AM
  6. need help with formatting data collected from database...
    By mandles1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-19-2005, 09:30 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