+ Reply to Thread
Results 1 to 3 of 3

Find sum of difference in a single column based on criterias.

  1. #1
    Registered User
    Join Date
    05-09-2019
    Location
    Surat
    MS-Off Ver
    2019
    Posts
    2

    Question Find sum of difference in a single column based on criterias.

    Dear Experts,
    I need to find the sum of differences in a single column based on some criterias.
    Please find the working file and details in the attachments

    Also, please let me know if there is a better option to do what I have done there as I need to combine an array formula and a normal formula which I am unable to do.
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    10-13-2015
    Location
    Culloden, West Virginia
    MS-Off Ver
    2010
    Posts
    168

    Re: Find sum of difference in a single column based on criterias.

    I'm not sure I understood your issue. See if this is correct.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    05-09-2019
    Location
    Surat
    MS-Off Ver
    2019
    Posts
    2

    Re: Find sum of difference in a single column based on criterias.

    Quote Originally Posted by jme1013 View Post
    I'm not sure I understood your issue. See if this is correct.
    I am sorry but I did not require manual formulas. Anyway, I have solved it . the formulas are as under:
    Amendment in 2018 =SUM(IF(D4:D14<>"",IF(A4:A14=2018,C4:C14,0),0))
    Amendment in 2019 =SUM(IF(D4:D14<>"",IF(A4:A14=2019,C4:C14,0),0))
    Original in 2018 =SUM(IF(A4:A14=2018,IFERROR(INDEX(C4:C14,N(IF(1,MATCH(D4:D14,IF(A4:A14=2018,IF(D4:D14="",B4:B14)),0)))),0)))
    Original in 2019 =SUM(IF(A4:A14=2019,IFERROR(INDEX(C4:C14,N(IF(1,MATCH(D4:D14,IF(A4:A14=2018,IF(D4:D14="",B4:B14)),0)))),0)))
    Positive Differences 2018 =IF(D4:D14<>"",IF(A4:A14=2018,C4:C14,0),0)-IF(A4:A14=2018,IFERROR(INDEX(C4:C14,N(IF(1,MATCH(D4:D14,IF(A4:A14=2018,IF(D4:D14="",B4:B14)),0)))),0))>0 IF(D4:D14<>"",IF(A4:A14=2018,C4:C14,0),0) A4:A14=2018 C4:C14 1 D4:D14 A4:A14=2018
    Negative Differences 2018 =IF(D4:D14<>"",IF(A4:A14=2018,C4:C14,0),0)-IF(A4:A14=2018,IFERROR(INDEX(C4:C14,N(IF(1,MATCH(D4:D14,IF(A4:A14=2018,IF(D4:D14="",B4:B14)),0)))),0))<0 IF(D4:D14<>"",IF(A4:A14=2018,C4:C14,0),0) A4:A14=2018 C4:C14 1 D4:D14 A4:A14=2018
    Positive Differences 2019 =IF(D4:D14<>"",IF(A4:A14=2019,C4:C14,0),0)-IF(A4:A14=2019,IFERROR(LOOKUP(D4:D14,IF(A4:A14=2018,IF(D4:D14="",B4:B14)),C4:C14),0))>0 IF(D4:D14<>"",IF(A4:A14=2019,C4:C14,0),0) A4:A14=2019 D4:D14 IF(A4:A14=2018,IF(D4:D14="",B4:B14))
    Negative Differences 2019 =IF(D4:D14<>"",IF(A4:A14=2019,C4:C14,0),0)-IF(A4:A14=2019,IFERROR(LOOKUP(D4:D14,IF(A4:A14=2018,IF(D4:D14="",B4:B14)),C4:C14),0))<0 IF(D4:D14<>"",IF(A4:A14=2019,C4:C14,0),0) A4:A14=2019 D4:D14 IF(A4:A14=2018,IF(D4:D14="",B4:B14))
    Net Difference in 2018 =SUM(IF(D4:D14<>"",IF(A4:A14=2018,C4:C14,0),0))-SUM(IF(A4:A14=2018,IFERROR(INDEX(C4:C14,N(IF(1,MATCH(D4:D14,IF(A4:A14=2018,IF(D4:D14="",B4:B14)),0)))),0)))
    Net Difference in 2019 =SUM(IF(D4:D14<>"",IF(A4:A14=2019,C4:C14,0),0))-SUM(IF(A4:A14=2019,IFERROR(INDEX(C4:C14,N(IF(1,MATCH(D4:D14,IF(A4:A14=2018,IF(D4:D14="",B4:B14)),0)))),0)))

+ 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. Find value based off 2 Criterias
    By spunner87 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-18-2018, 12:36 PM
  2. [SOLVED] Find a value based on multiple criterias
    By Charli53 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-12-2017, 05:09 AM
  3. [SOLVED] Macro Find set criterias to a colomn of number, delete the rows that don't meet criterias
    By TAMMY32 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-03-2017, 04:09 PM
  4. [SOLVED] Find the first and second corresponding value based on criterias
    By Villalobos in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2015, 12:26 PM
  5. find top 10 values based on multiple criterias
    By saurabhlotankar in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-27-2014, 01:47 AM
  6. How do find the difference between 2 times based on a third column
    By jtpryan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-21-2013, 11:18 PM
  7. Replies: 4
    Last Post: 09-08-2010, 10:57 AM

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