+ Reply to Thread
Results 1 to 6 of 6

Avoid repeating inner equation in a logical expression

Hybrid View

michellepace Avoid repeating inner... 07-19-2016, 06:56 AM
zbor Re: Avoid repeating inner... 07-19-2016, 07:00 AM
popipipo Re: Avoid repeating inner... 07-19-2016, 07:02 AM
michellepace Re: Avoid repeating inner... 07-19-2016, 07:04 AM
MrShorty Re: Avoid repeating inner... 07-19-2016, 11:16 AM
Jonmo1 Re: Avoid repeating inner... 07-19-2016, 11:19 AM
  1. #1
    Forum Contributor michellepace's Avatar
    Join Date
    10-28-2015
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    132

    Question Avoid repeating inner equation in a logical expression

    Hi there,

    I have a complicated equation which I'd like to avoid duplicating it in my formula. However the only way I have been able to achieve what I need is to write the entire formula like this:

    = If ( someBigEquation=0, "", someBigEquation)

    More specifically, here is my formula:
    =IF(SUMIFS(RESULT[RaceTime],RESULT[Gala],P$12, RESULT[Event],$C13, RESULT[SwimmerName],$D$8)=0,"",
    SUMIFS(RESULT[RaceTime],RESULT[Gala],P$12, RESULT[Event],$C13, RESULT[SwimmerName],$D$8))
    In Excel 2016 I could use the function IFS() however I only have Excel 2013.

    Is there a way to retain the functionality of my formula without having to repeat the someBigEquation?
    Thanks in advance,
    Michelle
    Last edited by michellepace; 07-19-2016 at 07:21 AM. Reason: Better description

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,018

    Re: Avoid repeating inner equation in a logical expression

    Just format cell not to show 0.

    Right click -> Format cells -> Custom
    Formula: copy to clipboard
    0.00,-0.00,,@
    Never use Merged Cells in Excel

  3. #3
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,645

    Re: Avoid repeating inner equation in a logical expression

    Take just your 'someBigEquation' formula and change the celformat in
    0;-0;;
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  4. #4
    Forum Contributor michellepace's Avatar
    Join Date
    10-28-2015
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    132

    Re: Avoid repeating inner equation in a logical expression

    Quote Originally Posted by popipipo View Post
    Take just your 'someBigEquation' formula and change the celformat in
    0;-0;;
    Thanks Popipipo, but that solution won't work for me as I have a calculation which needs to find a minimum and if zero is there... well it is a false minimum if you know what I mean. I need an empty string.

  5. #5
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,356

    Re: Avoid repeating inner equation in a logical expression

    Is there a way to retain the functionality of my formula without having to repeat the someBigEquation?
    My suggestion will probably not be well received, but I would invoke the use of evil and heretical helper cells. Put your somebigequation into a cell as is, then your IF() function in a separate cell would be =if(reference=0,"",reference)
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Avoid repeating inner equation in a logical expression

    Here's a neat little trick..

    =IFERROR(1/(1/SUMIFS(RESULT[RaceTime],RESULT[Gala],P$12, RESULT[Event],$C13, RESULT[SwimmerName],$D$8)),"")

+ 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] Evaluation logical expression and fetch matching records - Matrix
    By jsimha in forum Excel Programming / VBA / Macros
    Replies: 45
    Last Post: 01-11-2013, 04:31 AM
  2. [SOLVED] Conditional Expressions Logical Expression in an IF statement?
    By Skywize in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-26-2012, 11:03 AM
  3. [SOLVED] Logical Expression Question
    By wz4np1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-13-2012, 10:00 AM
  4. Replies: 1
    Last Post: 06-05-2008, 12:55 AM
  5. Can I use more complex logical expression for sumif as creteria?
    By xwenx in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-27-2006, 08:00 PM
  6. [SOLVED] Logical Expression For MULTIPLE Cells???
    By triple_c77@yahoo.com in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-22-2005, 07:10 PM
  7. Replies: 2
    Last Post: 12-05-2005, 06:15 PM
  8. [SOLVED] Issue with representing a blank in a logical expression.
    By Van in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-05-2005, 04:30 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