+ Reply to Thread
Results 1 to 5 of 5

Condensing Formula

  1. #1
    Registered User
    Join Date
    02-02-2015
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    3

    Condensing Formula

    Hello Everyone,

    Is there a way to condense the following formula in Excel 2013?

    =IF(cday=1,SUM('NA Input'!C21),IF(cday=2,SUM('NA Input'!C21:D21),IF(cday=3,SUM('NA Input'!C21:E21),IF(cday=4,SUM('NA Input'!C21:F21),IF(cday=5,SUM('NA Input'!C21:G21),IF(cday=6,SUM('NA Input'!C21:H21),IF(cday=7,SUM('NA Input'!C21:I21),IF(cday=8,SUM(C21:J21),IF(cday=9,SUM(C21:K21),IF(cday=10,SUM(C21:L21),IF(cday=11,SUM(C21:M21),IF(cday=12,SUM(C21:N21),IF(cday=13,SUM(C21:O21),IF(cday=13,SUM(C21:O21),IF(cday=14,SUM(C21:P21),IF(cday=15,SUM(C21:Q21),IF(cday=16,SUM(C21:R21),IF(cday=17,SUM(C21:S21),IF(cday=18,SUM(C21:T21),IF(cday=19,SUM(C21:U21),IF(cday=20,SUM(C21:V21),IF(cday=21,SUM(C21:W21), IF(cday=22,SUM(C21:X21), IF(cday=23,SUM(C21:Y21), IF(cday=24,SUM(C21:Z21),IF(cday=25,SUM(C21:AA21), IF(cday=26,SUM(C21:AB21), IF(cday=27,SUM(C21:AC21),IF(cday=28,SUM(C21:AD21), IF(cday=29,SUM(C21:AE21), IF(cday=30,SUM(C21:AF21), IF(cday=31,SUM(C21:AG21),0))))))))))))))))))))))))))))))))


    Appreciate the assistance.

    Thanks

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

    Re: Condensing Formula

    Try

    =SUM('NA Input'!C21:INDEX('NA Input'!C21:AG21,cday))

  3. #3
    Registered User
    Join Date
    02-02-2015
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    3

    Re: Condensing Formula

    Thanks Jonmo1. Will give it a try.

  4. #4
    Registered User
    Join Date
    02-02-2015
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    3

    Re: Condensing Formula

    The formula worked. Thank you very much!

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

    Re: Condensing Formula

    You're 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. Formula or Vb.Net for condensing a table exported from AutoCad
    By cncah in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-26-2014, 10:17 PM
  2. Condensing a repetitive If formula based on stopwatch times
    By Squirrel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-25-2011, 11:45 AM
  3. Help Condensing Long Formula
    By KJHRose in forum Excel General
    Replies: 3
    Last Post: 07-20-2009, 01:40 PM
  4. Help condensing a formula using new functions or array
    By Mercanthrope in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-09-2008, 07:44 PM
  5. Condensing Formula
    By phil2006 in forum Excel General
    Replies: 6
    Last Post: 06-07-2006, 08:10 AM

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