+ Reply to Thread
Results 1 to 3 of 3

Nested IF, AND OR Null Statement Formula Help Required

  1. #1
    Registered User
    Join Date
    06-18-2015
    Location
    London, England
    MS-Off Ver
    2010, 2007
    Posts
    2

    Nested IF, AND OR Null Statement Formula Help Required

    Hello Forum,

    I have a problem that I hope you'll be able to assist me with. I've been pulling hair out for hours over this one. :-(

    I 'm currently setting up a workbook that various staff members, will be expected to populate with annual data. Most of the calculations and other IF statements work without error, but I have one column of data that is dependant on other having an entry greater than zero.

    Example: If cell A2 is = 10%, then cells B2, C2, and D2 must be populated, with this total calculated in cell E2, and which must be equal to 100%. If E2 does not equal 100%, then it needs to indicate what score it is showing.

    If cell A2 is blank, then cell E2 (the total cell) will equal 0, however, if cell A2 is >0, and cells B2 to D2 are blank cell E2 needs to indicate that those cells need to be populated.

    I've been trying variations of the following, but nothing gives me quite what I want or I get a Name or Value error message.

    =IF(A5>0,AND(ISBLANK(B5:F5)),"Complete Data",IF(A5>0,IF(SUM(B5:F5)=100,100,SUM(B5:F5))))

    So, what I'm trying to say in my formula is if A5 is greater than zero, and cells B5 to F5 are blank, show the message, "complete data," but if A5 is greater than zero and B5 to F5 are not blank, then sum the data in B5 to F5, if it is equal to 100, show 100, if not, show me what the sum is. If there is no data in A5, there will be nothing in B5 to F5, so show me a zero in the total cell. The 'total' cell is where this formula is sitting.

    If anyone can assist me or has a more efficient way of dealing with such a conundrum I'd be most grateful.

    Thanks for your attention.

    Annie

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Nested IF, AND OR Null Statement Formula Help Required

    welcome to the forum, annie. not sure if i fully understand. you showed a 10% eg in A2. so is your data in B:D also a percentage? if so, will E2 show 100 or 100%? also, does it matter to show a different calculation whether column B:D adds up to 100 or not. a SUM(B2:D2) will give you the answer right? if it's 50, it gives you 50. if it's 100, it gives you 100. if i am right, then maybe:
    =IF(AND(A5>0,COUNT(B5:D5)=3),SUM(B5:D5),"Complete Data")

    if not, it would be great if you can upload a sample excel file & also manually key in the results for a clearer picture. To upload, Click on GO ADVANCED and use the paperclip icon to open the upload window.
    View Pic
    and to illustrate your example better, click on How To Get Quick & Good Answers

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    06-18-2015
    Location
    London, England
    MS-Off Ver
    2010, 2007
    Posts
    2

    Re: Nested IF, AND OR Null Statement Formula Help Required

    Hi Benishiryo,

    Thanks for replying.

    I've attached a file, which might illustrate my problem more clearly. If there is data in the "Other" column, then you have to account for 100% (where using integers to represent percentages) of the time across the columns headed B2 to F2. If there is no data in the "Other" column, then the total in column G should read 0 (zero), if there is data in the "Other" column, then data in columns B to F must not be blank.

    I hope this helps.

    Annie
    Attached Files Attached Files

+ 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. Nested IF statement or correct function required?
    By mlester in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-29-2013, 02:40 PM
  2. Help with nested IF statement required!
    By plannerg in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-01-2013, 08:36 AM
  3. Help with nested IF statement required!
    By plannerg in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-01-2013, 07:35 AM
  4. IF Statement required. (Nested or Multiple)
    By singerbatfink in forum Excel General
    Replies: 2
    Last Post: 09-28-2010, 06:20 AM
  5. [SOLVED] IF / SUM - Nested Formula Required?
    By Annabelle in forum Excel General
    Replies: 4
    Last Post: 05-10-2005, 06:06 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