+ Reply to Thread
Results 1 to 4 of 4

Calculating Node aging using MACRO

  1. #1
    Registered User
    Join Date
    06-05-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    3

    Post Calculating Node aging using MACRO

    Dear Team,

    We are getting raw data with node down time and uptime. And we need to calculate the down time using the data got from server.

    Manually we are arranging the data with selected time and sorting the data and using some formulas we are arranging the report( Sample attached with name Time Duration After arranging)

    But now we attached the raw data also( Time Duration Before arranging). Can any one help us to get the macro for arrange and time calculation.

    Regards,
    Chaitanya Gowtham A

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,899

    Re: Calculating Node aging using MACRO

    Hello chaitanya_gowtham and Welcome to Excel Forum.
    As this query has gone unanswered for several days I am going to make a formula based proposal (which may lead someone to write VBA code).
    This proposal employs numerous helper columns which may be hidden for aesthetic purposes. The helper columns (I:L) first match down/up and down time/uptime values based on my understanding of the 'After' arrangement.
    The helper columns next set up a ranking in columns M:P so that the output in columns Q:V resembles the 'After' arrangement in the file attached to post #1.
    Note that some of the data in the 'After' arrangement is not present in the 'Before' arrangement.
    Two formula changes of note are the ggg column: =IF(Q12="","",T12=Q12)
    and the Net Down Time column: =IF(Q12="","",U12-R12)
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Registered User
    Join Date
    06-05-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    3

    Re: Calculating Node aging using MACRO

    Dear JeteMc,

    Thanks for the formula and I am unable to copy the formula after I20 and so on. Formula is working from I12 to I19 only. Can you help us or enable this formula in reset of I column.

    Regards,
    Chaitanya Gowtham A

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,899

    Re: Calculating Node aging using MACRO

    In the attached copy of the file the ranges of the formulas that populate columns I:V have been extended through row 100.
    One formula (column N) is changed to read: =IF(J12="","",SUMPRODUCT((M$12:M$100<M12)*(M$12:M$100<>""))+1)
    If the data extends further down the sheet the formulas may be modified to fit i.e. if there are 200 lines of data modify the formula in column N to read: =IF(J12="","",SUMPRODUCT((M$12:M$250<M12)*(M$12:M$250<>""))+1)
    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. VBA macro to return the node positions of a 3D-rotated shape
    By EulerRSA in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-28-2019, 06:49 AM
  2. Help with getting all elements in the XML node list
    By yoursamrit2000 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-23-2016, 08:28 PM
  3. retrieving node names
    By twozedz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-21-2016, 08:32 AM
  4. Get Node Key from selected Node in TreeView
    By mile990 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2016, 04:55 PM
  5. XML node to column
    By sdgenxr in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-01-2015, 08:28 PM
  6. Macro to update Aging Report
    By humacdeep in forum Excel Programming / VBA / Macros
    Replies: 32
    Last Post: 12-01-2011, 02:09 PM
  7. Need help calculating formula - Aging Worksheet
    By hnoshea in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-11-2007, 03:37 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