+ Reply to Thread
Results 1 to 32 of 32

How to calculate values related to specific dates

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    09-19-2017
    Location
    Taguig City, Philippines
    MS-Off Ver
    Microsoft Excel 2016
    Posts
    120

    Re: How to calculate values related to specific dates

    I know I'm already asking for too much but can we include in the formula a function in which it will not include the amounts for totals under column K to V, because I need to extend those all the way down to V200, and whenever I do so, it is also summing up the amounts in the totals row.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,879

    Re: How to calculate values related to specific dates

    See formulas in H5

    =SUMIFS(STRAIGHTLINE!$D$6:$D$400,STRAIGHTLINE!$I$6:$I$400,">0",STRAIGHTLINE!$B$6:$B$400,"<>Totals")-SUMIFS(STRAIGHTLINE!$I$6:$I$400,STRAIGHTLINE!$B$6:$B$400,"<>Totals")+SUMPRODUCT((STRAIGHTLINE!$K$6:$K$400:INDEX(STRAIGHTLINE!$K$6:$V$400,,MATCH(SUMMARY!$E$2,STRAIGHTLINE!$K$4:$V$4,0)))*(STRAIGHTLINE!$B$6:$B$400<>"Totals"))
    and H6

    
    =SUMIFS(DIMINISHING!$D$6:$D$400,DIMINISHING!$I$6:$I$400,">0",DIMINISHING!$B$6:$B$400,"<>Totals")-SUMIFS(DIMINISHING!$I$6:$I$400,DIMINISHING!$B$6:$B$400,"<>Totals")+SUMPRODUCT((DIMINISHING!$K$6:$K$400:INDEX(DIMINISHING!$K$6:$V$400,,MATCH(SUMMARY!$E$2,DIMINISHING!$K$4:$V$4,0)))*(DIMINISHING!$B$6:$B$400<>"Totals"))
    Formulas in Straightening need changing to replace "null" with 0

    
    =IF(OR(K$4<=EOMONTH($E6,-1)+1,K$4>EOMONTH($E6+ROUNDUP($G6*365,1),-1)+1),0,IF(K$4=EOMONTH($E6,-1)+1,$D6*$H6*((((EOMONTH(K$4,0))-$E6+1))/365),IF(K$4=EOMONTH($E6+ROUNDUP($G6*365,1),-1)+1,$I6-SUM($J6:J6),$D6*$H6*(((EOMONTH(K$4,0))-((EOMONTH(K$4,-1)+1))+1)/365))))
    Attached Files Attached Files

+ 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] Calculate diff in dates for specific ID
    By SajMc in forum Excel General
    Replies: 2
    Last Post: 04-11-2018, 03:36 AM
  2. Formula to calculate Specific dates and times
    By aloggies in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-13-2015, 12:39 PM
  3. Replies: 3
    Last Post: 01-27-2014, 07:17 AM
  4. Replies: 7
    Last Post: 05-02-2013, 09:50 PM
  5. [SOLVED] Calculate time related values as minute average
    By Doctor Gooose in forum Excel General
    Replies: 9
    Last Post: 07-04-2012, 08:22 AM
  6. How to calculate days between two dates (specific)
    By netone_1 in forum Excel General
    Replies: 7
    Last Post: 04-28-2011, 11:18 AM
  7. Calculate Amounts for Specific Dates
    By bw in forum Excel General
    Replies: 2
    Last Post: 10-26-2005, 07:05 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