+ Reply to Thread
Results 1 to 4 of 4

Need Help with adding new criteria to formula

  1. #1
    Registered User
    Join Date
    01-28-2015
    Location
    Tampa, FL
    MS-Off Ver
    2010
    Posts
    104

    Need Help with adding new criteria to formula

    I am trying to add the new condition below to the existing formula in the workbook (Data Tab, column A) but I can't get the formula to work. Would it be possible for someone to please update the formula with this new condition so that it will work? I have listed the the new condition as well as attached a sample workbook.

    The new condition is...

    If the Cust ID has "PI" on the Ref 2 tab AND if the Cust ID has either an "L" in EITHER pivot table on the Ref 1 tab, return a "Y".
    If the Cust ID has "PI" on the Ref 2 tab AND if the Cust ID does NOT have an "L" in EITHER pivot table on the Ref 1 tab, return a "N"

    Thank you in advance for your help and guidance!
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Need Help with adding new criteria to formula

    I have a feeling you have way over-complicated your formula...
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    but I cant be sure coz I cant figure out what it's trying to do?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    01-28-2015
    Location
    Tampa, FL
    MS-Off Ver
    2010
    Posts
    104

    Re: Need Help with adding new criteria to formula

    First, thank you for replying. I understand and I apologize. I inherited this formula and workbook from an old contact. Basically, it is listing conditions on whether to tag the case with a "Y" or a "N" for an audit.

    Please let me know if this helps:
    If the case's date (Col F) is older that "10/19/2019" OR If the case Stat (Col C) is in a "Pre-Submit" status, display a blank, otherwise...
    If the case is NOT found in BOTH pivots on the "Ref 1 tab", display a "N", otherwise...
    If the case Form (Col E) is "MB", display a "Y", otherwise...
    If BOTH the case Form (Col E) is "GF" BOTH AND the case Type (Col D) is "Add", display Y, otherwise...
    If on the "Ref 2 tab" the CovStat (Col B) is NOT "Cancelled" and the CovN (Col C) is among this list (Death, Right, Only) for that specific case, display Y, otherwise...
    Display N

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

    Re: Need Help with adding new criteria to formula

    Firstly, if Ford's formula works, I feel the issue is resolved.
    Secondly, it is easier to write/troubleshoot a formula when there is a workbook with which to work.
    Thirdly, after reading post #3, it would seem that the arguments resulting in "Y" could be grouped and the argument referencing the pivot tables could be dropped, as anything that doesn't yield a blank or "y" should yield "n".
    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.

+ 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] Adding a further criteria to a formula
    By Marvo in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 12-15-2020, 01:00 PM
  2. [SOLVED] Adding IS BLANK criteria to formula
    By Hedy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-10-2020, 01:01 PM
  3. [SOLVED] Need Help with Adding Criteria to Formula
    By Saabra in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-05-2020, 02:07 PM
  4. [SOLVED] Adding criteria to formula
    By Spikyd in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-03-2019, 10:16 AM
  5. Replies: 4
    Last Post: 08-06-2018, 07:54 AM
  6. [SOLVED] Formula for adding different criteria
    By hmwelch in forum Excel General
    Replies: 6
    Last Post: 03-23-2016, 06:46 PM
  7. [SOLVED] Adding another criteria to a formula
    By Xeba37 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-22-2016, 05:29 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