+ Reply to Thread
Results 1 to 3 of 3

Need help to filter and display data based on multiple if conditions

  1. #1
    Registered User
    Join Date
    02-08-2018
    Location
    India
    MS-Off Ver
    2007
    Posts
    1

    Need help to filter and display data based on multiple if conditions

    Hi,

    Below is the excel input.

    FROM_DATE|VALUE1|TIME_DIFFERENCE|TO_DATE|VALUE2
    2017-11-28 12:39:00|PASS|00:02:27|2017-11-28 12:41:27|101
    2017-11-28 12:39:00|PASS|00:00:02|2017-11-28 12:39:02|509
    2017-11-28 12:39:00|FAIL|05:57:01|2017-11-28 18:36:01|999
    2017-11-28 12:39:00|PASS|00:00:09|2017-11-28 12:39:09|101
    2017-11-28 12:39:02|PASS|00:05:45|2017-11-28 12:44:47|700


    In above excel TIME_DIFFERENCE is calculated as below:
    Please Login or Register  to view this content.
    I want the output for below cases

    CASES:
    Total count of VALUE1=PASS having TIME_DIFFERENCE more than 2 minutes and having VALUE2=101
    Total count of VALUE1=PASS having TIME_DIFFERENCE less than 2 minutes and 30 sec and having VALUE2=101

    I'm trying with below formula but it does not output the data as required.
    Please Login or Register  to view this content.

    I need help to resolve the above cases
    Last edited by AliGW; 02-08-2018 at 02:02 AM. Reason: Blue text changed back to black for legibility.

  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,910

    Re: Need help to filter and display data based on multiple if conditions

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    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.

  3. #3
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Need help to filter and display data based on multiple if conditions

    Assuming your data is in A2:E6, this combines both conditions:
    Please Login or Register  to view this content.
    Hopefully this demonstrates everything you need to construct your formula.
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

+ 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: 29
    Last Post: 01-01-2017, 10:25 AM
  2. IF formula based upon multiple conditions to display text in one cell
    By jono7gold in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-07-2014, 10:29 AM
  3. [SOLVED] Drop Down Data Validation - Display a result based on multiple conditions
    By carlmf1987 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-25-2013, 01:50 PM
  4. [SOLVED] Vba to advance filter data on multiple conditions to many sheets with naming convention
    By 4gurus in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-27-2013, 01:01 PM
  5. Filter data based on columns, display unique row data
    By djarcadian in forum Excel General
    Replies: 14
    Last Post: 05-18-2013, 07:18 PM
  6. Get data based on multiple conditions
    By efernandes67 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-31-2010, 10:36 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