+ Reply to Thread
Results 1 to 6 of 6

Adding 1 criteria into existing formula

  1. #1
    Forum Contributor
    Join Date
    05-29-2017
    Location
    UK
    MS-Off Ver
    Pro Plus 2016
    Posts
    301

    Adding 1 criteria into existing formula

    Hi guys, would you know what we could add into existing formula:

    =IFERROR(VLOOKUP(K13,Countries!$C$11:$I$13,6,0),"")

    ...to say 'Do as per formula but ONLY if 'No' is also selected in Countries!$A$11:$A$13 ?

    The suggested is a working formula, so no creating new is needed, its just about adding that one additional criteria!

    Attaching a file and a screenshot. Thanking in advance!

    https://www.excelforum.com/attachmen...1&d=1530387312 [EXCEL]

    2018-06-30_2128.png
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,673

    Re: Adding 1 criteria into existing formula

    Please Login or Register  to view this content.
    Ben Van Johnson

  3. #3
    Forum Contributor
    Join Date
    05-29-2017
    Location
    UK
    MS-Off Ver
    Pro Plus 2016
    Posts
    301

    Re: Adding 1 criteria into existing formula

    Thanks for looking into it, protonLeah.

    It's A11:A13 range, not just a single cell

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,673

    Re: Adding 1 criteria into existing formula

    If there's at least one "No" in the range then:
    Please Login or Register  to view this content.
    ??

  5. #5
    Valued Forum Contributor jtakw's Avatar
    Join Date
    05-05-2018
    Location
    CA, USA
    MS-Off Ver
    2016
    Posts
    668

    Re: Adding 1 criteria into existing formula

    Hi,

    If All 3 cells Countries!$A$11:$A$13 needs to be "No", then:

    =IF(COUNTIF(Countries!$A$11:$A$13,"No")=3,IFERROR(VLOOKUP(K13,Countries!$C$11:$I$13,6,0),""),"")

    If Any of the 3 cells is "No", then:

    =IF(COUNTIF(Countries!$A$11:$A$13,"No"),IFERROR(VLOOKUP(K13,Countries!$C$11:$I$13,6,0),""),"")

  6. #6
    Forum Contributor
    Join Date
    05-29-2017
    Location
    UK
    MS-Off Ver
    Pro Plus 2016
    Posts
    301

    Re: Adding 1 criteria into existing formula

    Thank you guys for your valuable suggestions. And sorry for late reply.

    I tried implementing your formulas, but here is a challenge:


    Basically, if a country is marked as 'Past' then its already a visited country. If a country is marked as 'No' then its the one to be visited in a future.

    Problem occurs, however, if we have same country which was already visited (Past) AND same country in a list is entered twice, for another visit in a future years.

    The formula:

    =IFERROR(VLOOKUP(K13,Countries!$C$11:$I$13,6,0),""))

    ...is to tell us a year at which a country is to be visited. But a formula gets confused IF same country is entered twice. So to filter the confusion, formula should look only for a year to a country which is marked as 'No', ignoring entries of a same country if it is marked as 'Past'

    If a country is marked as 'Yes' then it means that it was recently visited and formula should behave in same way as if a country would be marked as 'No', (i.e. show a year entered next to a country, while ignoring any entries of same country marked as 'Past')

    Difficult to explain otherwise, but hoping I was able to!

    Thanks once again.

+ 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 Criteria to Existing Formula
    By vill in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-02-2018, 01:50 PM
  2. [SOLVED] Adding Criteria to Existing Formula
    By vill in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-26-2017, 09:15 AM
  3. [SOLVED] Adding IF AND criteria to existing IF Statement
    By Webbers in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-04-2016, 02:52 PM
  4. Replies: 3
    Last Post: 01-13-2016, 12:05 PM
  5. Replies: 7
    Last Post: 07-07-2014, 09:48 AM
  6. adding to existing formula
    By wwoody in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-17-2013, 03:25 AM
  7. [SOLVED] Adding additional selection criteria to existing Macro
    By Mogpot1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-23-2013, 10:29 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