+ Reply to Thread
Results 1 to 2 of 2

Checking if 3 fields are repeated after a certain date and returning a value

  1. #1
    Registered User
    Join Date
    05-12-2016
    Location
    Mumbai, India
    MS-Off Ver
    2010
    Posts
    56

    Exclamation Checking if 3 fields are repeated after a certain date and returning a value

    Hi,

    I am trying to check the verification effectiveness. To do that I need to do the following:

    1. Check if "Nature of Complaint", "Category" & "Sub Category" are repeated after that row.
    2. If yes, compare if the "Date of Complaint" is after the "Verification Date" or not.
    3. If the "Date of Complaint" is after the "Verification Date" then it should return the "Complaint No." of the previous complaint in the "Result" column

    I have written down the "Example Result" for understanding.

    Please help
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Checking if 3 fields are repeated after a certain date and returning a value

    Try this array formula in H2, copied down:

    =IF(AND(COUNTIFS($D$2:D2,D2,$E$2:E2,E2,$F$2:F2,F2)=COUNTIFS(D:D,D2,E:E,E2,F:F,F2),B2>G2),INDEX($G$2:$G2,MATCH(1,($D$2:D2=D2)*($E$2:E2=E2)*($F$2:F2=F2),0)),"No")

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

+ 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. [SOLVED] Checking 2 date ranges and TRU/FLS info and returning value (sort of)
    By llamafarmer in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-15-2016, 11:05 AM
  2. how to spot repeated fields
    By weresmytriple in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-02-2014, 07:09 AM
  3. Checking for repeated characters in the excels sheet's row
    By Abhushan86 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-30-2012, 09:44 AM
  4. Checking fields in one worksheet against another
    By MNH334 in forum Excel General
    Replies: 1
    Last Post: 06-18-2010, 09:02 AM
  5. Spell checking certain fields
    By negcx in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-23-2009, 08:26 AM
  6. [SOLVED] Checking Two Fields
    By Nick in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-16-2006, 03:30 PM
  7. [SOLVED] Returning row # using match or index of repeated text in a complex table
    By General in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-21-2005, 11:05 AM

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