+ Reply to Thread
Results 1 to 2 of 2

IF formula with blanks and variable calculations

  1. #1
    Registered User
    Join Date
    08-16-2012
    Location
    Boston, Massachusetts
    MS-Off Ver
    Excel 2010
    Posts
    17

    IF formula with blanks and variable calculations

    Trying to create and IF formula where there is sometimes nothing to calculate against (just want "" to return) and other times where the calculation varies between currency and percentages. Think I'm close because I've avoided FALSE returns when I segment certain areas of the formula but not when I try to make everything work. Simple example of what I'm trying to do is attached. TIA!
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2411
    Posts
    26,673

    Re: IF formula with blanks and variable calculations

    It would be helpful if you described what you want the formulas to do, and show sample desired results. I am going to make some guesses here on context. But I don't know what you are trying to do with your calculations, so I'll assume that part's OK and you just have a logic problem.

    This formula in B7 is returning FALSE
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    That is because E7 is blank. In that case, E7=0 will evaluate as TRUE, so your IF function will return the FALSE case. But your formula doesn't have a FALSE case, so it just returns FALSE. I think you want this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Exactly the same problem with the formula in B10:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    update to
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Same problem with all the formulas, but I think you can see how to fix them from these examples.
    Last edited by 6StringJazzer; 01-03-2025 at 07:05 PM.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. Average formula to deal with blanks in sub calculations
    By BryceVBA in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-27-2018, 04:48 PM
  2. [SOLVED] Formula to count blanks and non-blanks with a dynamic range
    By brittdyer in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-12-2018, 07:45 AM
  3. Iterative Formula Calculations with Randomly Generated Variable Values
    By Muradi101 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-05-2017, 10:26 AM
  4. [SOLVED] Hour Calculations With Blanks in Table
    By dharmon in forum Excel General
    Replies: 10
    Last Post: 05-05-2016, 12:28 AM
  5. Row Calculations on Variable Ranges
    By JMack420 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-13-2008, 10:18 PM
  6. [SOLVED] two-variable calculations continued ...
    By fredonic in forum Excel General
    Replies: 2
    Last Post: 11-17-2005, 01:45 PM
  7. [SOLVED] two-variable calculations
    By fredonic in forum Excel General
    Replies: 2
    Last Post: 11-17-2005, 10:55 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