+ Reply to Thread
Results 1 to 5 of 5

and a condition inside a long nest if that has multiple criteria.

  1. #1
    Forum Contributor
    Join Date
    02-13-2018
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    199

    and a condition inside a long nest if that has multiple criteria.

    I have a number in this inside this formula t


    the formula is producing a "8020" results because the #002534 falls within the criteria.

    I need to somehow make it so ONLY 002534 does not produce anything, but the rest of the range numbers are fine. I just need to somehow add a another condition to take #002534 out.


    Please Login or Register  to view this content.

    I then need to add that #002534 to another cell formula below.


    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: and a condition inside a long nest if that has multiple criteria.

    If you need to exclude 002534 from the first formula entirely, then just add it as another condition to your last AND() function, W1622<>"002534"

    It should already be added into your second formula because it is not in the list of things to exclude, unless it should be included when "Juice" is found in G5, in which case you need an OR condition.

    Is this linked to your other thread with regard to condensing 4 formulas into 1?

    The formulas that you have inherited are a bit messy to say the least, maybe best to reslove one issue at a time and clean it up before changing it.

  3. #3
    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
    53,048

    Re: and a condition inside a long nest if that has multiple criteria.

    My 1st question would be - would C1622 contain ONLY the word JUICE, or would it be part of a string? (same with G1622)
    If it is only 1 word, consider creating a small table with those values, then use MATCH to search the table for C1622's contents
    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

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: and a condition inside a long nest if that has multiple criteria.

    In addition to the above, one other thoughtt.

    Would the list of things to be included be shorter than the current list of those to exclude?

    Things to include are more manageable than things to exclude, more so if you still want to try and condense 4 formulas into one with your other thread.

    Try using the approach suggested there with lists of things to include / exclude, which, in my opinion would be preferrable to the long formulas that you have at the moment.

    @Ford, maybe worth combining with this thread, https://www.excelforum.com/excel-for...statement.html

    while not a duplicate, the solutions could be most likely combined.

  5. #5
    Forum Contributor
    Join Date
    02-13-2018
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    199

    Re: and a condition inside a long nest if that has multiple criteria.

    @JASON.B75, thanks this did the trick I have that same formula for other columns as well. I will work on migrating those numbers into a list range to reduce down the massive conditions on this formula. I took over this from someone else, so just trying to simplify the formulas.

    then just add it as another condition to your last AND() function, W1622<>"002534"

+ 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] Nest SumIFS inside subtotal
    By billrogers184 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-16-2017, 04:02 PM
  2. [SOLVED] Using LARGE or MAX inside INDEX-MATCH formula with multiple criteria
    By Big.Moe in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-28-2017, 02:40 AM
  3. [SOLVED] Putting OR inside a INDEX SMALL formula for multiple criteria, can it be done?
    By whetu in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-22-2014, 06:56 AM
  4. [SOLVED] How to restrict pop of message box inside multiple times when it is inside a for loop?
    By timmu in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-26-2014, 06:00 AM
  5. [SOLVED] Can't use sumifs() condition for multiple criteria
    By Venkatesh.S in forum Excel General
    Replies: 7
    Last Post: 06-15-2014, 02:39 AM
  6. Replies: 1
    Last Post: 10-02-2012, 04:27 PM
  7. Replies: 1
    Last Post: 01-13-2012, 07:16 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