+ Reply to Thread
Results 1 to 4 of 4

How to prevent duplicating a long formula as part of a formula

  1. #1
    Forum Contributor
    Join Date
    11-17-2004
    MS-Off Ver
    Office 2016
    Posts
    527

    How to prevent duplicating a long formula as part of a formula

    I have a scenario where if the outcome of a long formula is negative, then the result should be 0, otherwise use the outcome of the long formula. Is there a way to formulate an IF statement such that I don't need to repeat the long formula?

    i.e. --> If (long formula) < 0 , 0 , (long formula)

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,910

    Re: How to prevent duplicating a long formula as part of a formula

    Try this ...

    =Max(long formula,0)

  3. #3
    Forum Contributor
    Join Date
    11-17-2004
    MS-Off Ver
    Office 2016
    Posts
    527

    Re: How to prevent duplicating a long formula as part of a formula

    Wow....this could not have been simpler. This is where my brain was stuck trying to use an IF statement and refused to find other options.

    Many thanks!

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,910

    Re: How to prevent duplicating a long formula as part of a formula

    You are welcome!

+ 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] Formula for Duplicating Cell in Next Row
    By Zach Boyer in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-07-2016, 11:01 AM
  2. [SOLVED] How do I prevent a formula using a part of the header from recalculating to use the line b
    By JasonPrescott in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-05-2015, 12:47 PM
  3. Excel 2007 : The Formula is duplicating itself
    By srgtennis in forum Excel General
    Replies: 39
    Last Post: 03-22-2012, 12:15 PM
  4. Formula for duplicating a column?
    By jd8386 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-09-2012, 10:34 AM
  5. Long long formula not calc'ing all steps
    By jvautour in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-01-2009, 10:26 AM
  6. Issues with formula not duplicating
    By SasR in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-25-2006, 11:05 AM
  7. [SOLVED] Formula for Duplicating Rows!!
    By GOL in forum Excel General
    Replies: 2
    Last Post: 05-22-2006, 04:00 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