Results 1 to 10 of 10

How to shorten if statements that refer to full formula

Threaded View

  1. #1
    Registered User
    Join Date
    07-28-2019
    Location
    Atlanta, United States
    MS-Off Ver
    Excel 2016
    Posts
    15

    How to shorten if statements that refer to full formula

    I'm creating a template that organizes some data from an external, hard-coded workbook. Some calculations from the external workbook were coming in as incredibly small numbers (i.e. 0.0000872...), which for my purposes is equivalent to zero. But using the accounting format, those numbers show up as 0 or (0), instead of "-". I adjusted my formula to the following, which basically says if the answer is greater than -1 or less than 1, than it's zero. But it makes the formula incredibly long becuase using the IF statement, and embedding the AND statement, require the formula to be repeated 3 times, which will be confusing for anyone trying to jump in. Any suggestions for a simpler formula? Also note, sometimes the answer would show up as greater than .5, which is also zero for my purposes. So using ROUND also isn't necessarily ideal.

    =IF(AND(SUMPRODUCT(('CF Drop'!$A$78:$A$240=TemplateCF!$B133)*('CF Drop'!$E$74:$IV$74=TemplateCF!J$6)*('CF Drop'!$E$78:$IV$240))<1,SUMPRODUCT(('CF Drop'!$A$78:$A$240=TemplateCF!$B133)*('CF Drop'!$E$74:$IV$74=TemplateCF!J$6)*('CF Drop'!$E$78:$IV$240))>-1),0,SUMPRODUCT(('CF Drop'!$A$78:$A$240=TemplateCF!$B133)*('CF Drop'!$E$74:$IV$74=TemplateCF!J$6)*('CF Drop'!$E$78:$IV$240)))

    Thanks!
    Last edited by Barren_Wuffett; 07-28-2019 at 03:04 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Shorten IF OR formula
    By amros in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-30-2017, 01:05 AM
  2. [SOLVED] How to shorten this sum formula?
    By mso3 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-11-2016, 11:28 PM
  3. [SOLVED] How to shorten If formula?
    By mso3 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-03-2014, 01:01 AM
  4. Trying to shorten if then statements
    By pleasesmile in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-17-2013, 10:17 AM
  5. [SOLVED] Shorten formula
    By troysie in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-03-2012, 10:24 AM
  6. To shorten the formula
    By mingali in forum Excel General
    Replies: 1
    Last Post: 06-15-2010, 12:47 PM
  7. How can i shorten my formula
    By Naiomi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-12-2008, 05:42 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