+ Reply to Thread
Results 1 to 11 of 11

Nested Formulas conflict

  1. #1
    Registered User
    Join Date
    02-07-2016
    Location
    Malta
    MS-Off Ver
    Office 2013
    Posts
    27

    Unhappy Nested Formulas conflict

    Dear all,


    Hope I can explain this clearly:

    If Cell E has a figure and Cell F is empty Cell H should return a number BUT if Cell E + Cell F are larger then 200 cell H shall return "do not supply"

    Excel Snapshot.PNG


    I have the below formula, however they seem to be conflicting with one another.

    =IFERROR(IF(E222=200,"250",IF(E222=250,"200",IF(SUM(F222+E222)=0,"250",IF(SUM(E222+F222)<200,IF(E222>=250,MAX(0*SUM(250-E222),0),"200"),"do not supply")))),0)

    Thank you and regards

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Nested Formulas conflict

    1. This part doesnt make sense

    MAX(0*SUM(250-E222),0)

    Anything mulitiplied by zero is zero. Therefore you'll get the maximum of zero... or zero ????????

    2. This also doesnt make sense

    SUM(250-E222)

    This is simply 250-E222, you're not SUMming anything.

    3. =IFERROR(IF(E222=200,"250",IF(E222=250,"200",

    I suspect this should be

    =IFERROR(IF(E222=200,250,IF(E222=250,200,

    without the quotes.
    If you use quotes you are returning a string.
    Last edited by Special-K; 01-18-2018 at 12:01 PM.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

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

    Re: Nested Formulas conflict

    Your logic seems incomplete. What happens with E =100, F =100... and is it the SUM of E&F >200 that returns "DNS" or BOTH E&F > 200 returns DNS.
    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

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Nested Formulas conflict

    This is just a correction of your original formula, not a solution.

    =IFERROR(IF(E222=200,"250",IF(E222=250,"200",IF(F222+E222=0,250,IF(E222+F222<200,IF(E222>=250,MAX(250-E222,0),200),"do not supply")))),0)

    this may need refining because of your incomplete logic.

  5. #5
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Nested Formulas conflict

    You seem to be saying

    If E and F have both contain numbers and are > 200 then return "do not supply"

    but what does this (below) mean?

    "If Cell E has a figure and Cell F is empty Cell H should return a number"

    What number and what are the rules governing this?

  6. #6
    Registered User
    Join Date
    02-07-2016
    Location
    Malta
    MS-Off Ver
    Office 2013
    Posts
    27

    Re: Nested Formulas conflict

    I used this because i do not want negative values. When I applied it it worked.

  7. #7
    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,036

    Re: Nested Formulas conflict

    See Qs at post 3... It's also a good idea to make it clear WHO you are replying to.

  8. #8
    Registered User
    Join Date
    02-07-2016
    Location
    Malta
    MS-Off Ver
    Office 2013
    Posts
    27

    Re: Nested Formulas conflict

    "If Cell E has a figure and Cell F is empty Cell H should return a number" The number is 250.

    The number are just a direction from my head.

    We are supplying our patients every two months.

    For the first two months January and February we give them 250 units.

    For the second two months March and April we will then give them 200 and so forth.

    BUT if they are given over 250 units in January and February, no units will be given for March and April.

  9. #9
    Registered User
    Join Date
    02-07-2016
    Location
    Malta
    MS-Off Ver
    Office 2013
    Posts
    27

    Re: Nested Formulas conflict

    Quote Originally Posted by Glenn Kennedy View Post
    Your logic seems incomplete. What happens with E =100, F =100... and is it the SUM of E&F >200 that returns "DNS" or BOTH E&F > 200 returns DNS.
    In fact I m still working on it. It should return "250"

  10. #10
    Registered User
    Join Date
    02-07-2016
    Location
    Malta
    MS-Off Ver
    Office 2013
    Posts
    27

    Re: Nested Formulas conflict

    Quote Originally Posted by Special-K View Post
    You seem to be saying

    If E and F have both contain numbers and are > 200 then return "do not supply"

    but what does this (below) mean?

    "If Cell E has a figure and Cell F is empty Cell H should return a number"

    What number and what are the rules governing this?

    "If Cell E has a figure and Cell F is empty Cell H should return a number" The number is 250.

    The number are just a direction from my head.

    We are supplying our patients every two months.

    For the first two months January and February we give them 250 units.

    For the second two months March and April we will then give them 200 and so forth.

    BUT if they are given over 250 units in January and February, no units will be given for March and April.

  11. #11
    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,036

    Re: Nested Formulas conflict

    I think we need to see a sample sheet.

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly 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 solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. 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.

+ 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] How to know formula conflict between two formulas
    By rajeshn_in in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-20-2016, 06:57 AM
  2. Nested If AND formulas
    By sbenken in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-12-2015, 04:06 PM
  3. Conflict between formulas name and column name
    By yard2010 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-11-2014, 02:38 AM
  4. Nested IF Formulas
    By Ozbearinvn in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-31-2013, 09:14 PM
  5. Nested Formulas
    By airportjoe in forum Excel General
    Replies: 4
    Last Post: 05-22-2007, 12:12 PM
  6. if nested formulas
    By marleneardon in forum Excel General
    Replies: 1
    Last Post: 05-11-2006, 07:30 AM
  7. [SOLVED] nested formulas
    By Ctrl-Alt-Del in forum Excel General
    Replies: 3
    Last Post: 01-24-2006, 12:20 PM

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