+ Reply to Thread
Results 1 to 13 of 13

How to identify "missing entries" in a worksheet

  1. #1
    Registered User
    Join Date
    06-04-2021
    Location
    Michigan
    MS-Off Ver
    365
    Posts
    7

    How to identify "missing entries" in a worksheet

    I have a spreadsheet that is a patch inventory by server (server name in Col A, patch name in Col E).

    It is sorted on server name but not necessarily also on patch name. There is one row for each server for each patch - if a server has ten patches applied there will be ten rows for that server.

    With data filter I can select a server to see what patches are applied or I can select a patch to see what servers it is on.

    I want exactly the opposite of that. I want to select a server to see what patches are not on - or select a patch to see what servers it is not on.


    Say that I have 50 servers, each with (the same) 15 patches required.

    I envision a master list of servers and a master list of patches.

    If I click on a server that has only ten patches applied I would like to see a list containing the 5 patches that are missing
    If I click on a patch that is only applied to 40 servers I would like to see a list containing the 10 servers that don't have that patch

    One thought is having the two master lists side by side. When clicking a server in the server master list it could search the patches on that server and color code the patches in the patch master list that it finds.

    The patch inventory list (the main part of the spreadsheet) will change at least weekly.

    The server master list will change, but just occasionally

    The patch master list could change daily.

    Does anyone have any clues on where to start, or what forum this should go into?

    Paul

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: How to identify "missing entries" in a worksheet

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    06-04-2021
    Location
    Michigan
    MS-Off Ver
    365
    Posts
    7

    Re: How to identify "missing entries" in a worksheet

    Sample sheet will be attached. It is 33 rows containing a list of patches applied to two different servers. The actual data is over 1400 rows containing information on several dozen servers. The only columns relevant to this question are Col A (server) and Col G (patch). This data will be regenerated every week with automation.

    Somewhere else I am going to have a manually updated list of servers and a manually updated list of required patches, Like the 'grid" below. Using the data...filter I can select a server and see all patches on it OR I can select a patch and see all of the servers on it. What I cannot see is exceptions (A server missing patches OR a patch not on all servers). Note that the list of servers rarely changes but the list of patches changes frequently.

    My ideal solution would:

    1) When clicking on a server in the list below somehow visually differentiate between patches on that server (eg maybe a checkmark in a col next to each patch). If I click on cemapp-cms-d1 below it will find all of the rows of data with that server in Col A then check those rows Col G against each of the patches below (partial match). In this case all 16 would be found. If clicking the other server only 12 of the patches would be found.

    2) When clicking on a patch in the list below somehow visually differentiate between patches on that server (eg maybe a checkmark in a col next to each server). If I click on IFPH36923 below it will find all of the rows of data with that patch in Col G (partial match) then check those rows Col A against each on of the servers below. In this case it would be found on only the first server while IFPH33994 would be found on both.

    List of all patches List of all servers
    IFPH35098 cemapp-cms-d1
    IFPH34122 cemapp-cms-p1
    IFPH34968
    IFPH36463
    IFPH33994
    IFPH34944
    IFPH34067
    IFPH34048
    IFPH24409
    IFPH34906
    IFPH34501
    IFPH34711
    IFPH33648
    IFPH33037
    IFPH33228
    IFPH36923
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: How to identify "missing entries" in a worksheet

    As to a list of patches that are missing from a server.
    On the Lists sheet:
    1. Produce distinct list of servers and patches using: =IFERROR(INDEX('was-patch-status.06-02-2021'!A$2:A$32,MATCH(0,INDEX(COUNTIF(A$1:A1,'was-patch-status.06-02-2021'!A$2:A$32),,),)),"")
    2. Populate column C using: =COUNTIFS('was-patch-status.06-02-2021'!A$2:A$33,Output!B$1,'was-patch-status.06-02-2021'!G$2:G$33,B2)
    On the Output sheet:
    1. Cell B1 is a dynamic drop down of servers with a source of: =OFFSET(Lists!$A$2,,,SUMPRODUCT(--(Lists!A$2:A$4<>"")))
    2. Cells A3:A25 display the patches missing from that server using: =IFERROR(INDEX(Lists!B$2:B$33,AGGREGATE(15,6,(ROW(Lists!B$2:B$33)-ROW(Lists!B$1))/(Lists!B$2:B$33<>"")/(Lists!C$2:C$33=0),ROWS(A$1:A1))),"")
    As to servers that missing patches.
    On the Lists sheet:
    1. E1:AA1 are populated with the servers using: =INDEX($A2:$A37,COLUMNS($A1:A1))
    2. E2:AA37 are populated using: =IF(OR($B2="",E$1=""),"",COUNTIFS('was-patch-status.06-02-2021'!$G$2:$G$33,$B2,'was-patch-status.06-02-2021'!$A$2:$A$33,E$1))
    On the Output sheet:
    1. Cell E1 is a dynamic dropdown of patches.
    2. Cells D3:D37 display the servers missing that patch using:
    =IFERROR(INDEX(Lists!E$1:AA$1,AGGREGATE(15,6,(COLUMN(Lists!E$1:AA$1)-COLUMN(Lists!D$1))/(Lists!B$2:B$37=E$1)/(Lists!E$2:AA$37<>"")/(Lists!E$2:AA$37=0),ROWS(A$1:A1))),"")
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    06-04-2021
    Location
    Michigan
    MS-Off Ver
    365
    Posts
    7

    Re: How to identify "missing entries" in a worksheet

    What I see looks awesome and exactly what I need. Now to see if my noob Excel skills can incorporate this into the full set of data.

    Thank you!

  6. #6
    Registered User
    Join Date
    06-04-2021
    Location
    Michigan
    MS-Off Ver
    365
    Posts
    7

    Re: How to identify "missing entries" in a worksheet

    Is there any way to dynamically set ranges in formulas?

    I am trying to incorporate my live data into this spreadsheet. The sample spreadsheet consisted of 34 rows encompassing two servers. The current live data consists of 1634 rows encompassing 73 servers. Next week there could be 2000 rows and next month there could be 200.

    The lists sheet is mostly formulas that need to adjust down (or up) and right (or left) depending on the data. The output sheet looks to have some formulas that would need to be adjusted too.

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: How to identify "missing entries" in a worksheet

    The range of data on the was-patch-status.06-02-2021 sheet is converted to an Excel table. Note that the last row of the table was added after the changes listed below were made to demonstrate that the formulas are dynamic in respect to reference.
    The formulas in columns A:C of the Lists sheet are modified and use structured references so that as the table dimensions change the formulas will automatically adjust.
    For column A: =IFERROR(INDEX(Table1[server],MATCH(0,INDEX(COUNTIF(A$1:A1,Table1[server]),,),)),"")
    For column B: =IFERROR(INDEX(Table1[patch2],MATCH(0,INDEX(COUNTIF(B$1:B1,Table1[patch2]),,),)),"")
    For column C: =COUNTIFS(Table1[server],Output!B$1,Table1[patch2],B2)
    Formulas that previously occupied only E1:AA37 on the Lists sheet now occupy E1:CA37 so as to accommodate 75 servers.
    Let us know if you have any questions.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    06-04-2021
    Location
    Michigan
    MS-Off Ver
    365
    Posts
    7

    Re: How to identify "missing entries" in a worksheet

    Thank you.

    I've been playing around with this by adding actual data (which is a new spreadsheet every week or two). I just copy and paste the data into the existing table. The new data is 1633 rows. Do I need to do this differently?

    It looks like the table adjusts accordingly and the server list and fix list seem to populate correctly but the matrix part of the sheet looks to be only partially populated (spaces instead of 0 or 1).

    On the output sheet it looks like I get a complete fix list dropdown and the identifying of servers works as far as I can tell. However, the server list dropdown only gives me three of the 75 servers (or it had more but reverted to three).

    Even this way it has provided value in that it told be that a production server was missing a critical fix.

    Paul

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: How to identify "missing entries" in a worksheet

    As to the server list dropdown open the data validation dialog box and change the source from =OFFSET(Lists!$A$2,,,SUMPRODUCT(--(Lists!A$2:A$4<>""))) to =OFFSET(Lists!$A$2,,,SUMPRODUCT(--(Lists!A$2:A$76<>"")))
    As to the matrix on the List sheet displaying blanks instead of 1's and 0's I am not sure why that should happen. Please upload a sample Excel file illustrating the issue for evaluation.
    Let us know if you have any questions.

  10. #10
    Registered User
    Join Date
    06-04-2021
    Location
    Michigan
    MS-Off Ver
    365
    Posts
    7

    Re: How to identify "missing entries" in a worksheet

    Thank you.

    I'm pretty sure that this anomaly is due to the way that I resized the input table to 1633 rows. The lists "array" falls apart on row 38. And as I understand it, are the values essentially true or false? The 3s and 4s have me scratching my head.
    Attached Files Attached Files

  11. #11
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: How to identify "missing entries" in a worksheet

    I believe that I have the ranges corrected for the various formulas/data validation sources.
    As to the 3's and 4's, this is because for those patches there are multiple entries on the was-patch-status.06-02-2021 for a particular server.
    Note that I have utilized the Server and Patch filters in Table1 to illustrate that 8.5.5.11-WS-WASBundledSDK8-LinuxX64-IFPH36463 is listed three times for server crmtrif1-mvh-d1.
    Let us know if you have any questions.
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    06-04-2021
    Location
    Michigan
    MS-Off Ver
    365
    Posts
    7

    Re: How to identify "missing entries" in a worksheet

    Thank you. The threes and fours make sense now since the SDK patch gets applied to four different products on each server.

    Am I correct in saying that every data refresh requires updates to formulas and data validation sources (the source file updated today has 1752 rows).

    Paul

    I really appreciate the help that you have provided on this. I know that I had barely scratched the surface on Excel skills but this is a whole different level.

  13. #13
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: How to identify "missing entries" in a worksheet

    As long as the source (i.e. data on was-patch-status.06-02-2021 sheet) is designated as Table1 you should not have to refresh the formulas on the Lists sheet.
    If there is a problem please upload a sample that illustrates so that we may attempt to troubleshoot.
    Let us know if you have any questions.

+ 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: 2
    Last Post: 04-19-2021, 08:01 PM
  2. [SOLVED] Identify specific numeric values in a cell such as "1" without counting "11" as two "1"s
    By MHanna39 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-03-2019, 01:35 PM
  3. Replies: 1
    Last Post: 10-19-2016, 07:52 PM
  4. Unhide "very hidden" worksheet with VBA, but VBA toolbar is missing
    By cmoh in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-17-2016, 07:27 PM
  5. [SOLVED] Scroll Bar missing "Control" tab in "Format Properties" dialog box
    By Peter Rooney in forum Excel General
    Replies: 5
    Last Post: 02-14-2012, 01:45 AM
  6. Replies: 3
    Last Post: 07-08-2011, 02:37 PM
  7. [SOLVED] If changed array formula reduce ""\""\""\ - signs to #Missing, will it make ...
    By Maria J-son in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2006, 08:25 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