+ Reply to Thread
Results 1 to 6 of 6

Any Formula solution for summing corresponding values in other column against top 5 values

  1. #1
    Registered User
    Join Date
    07-28-2015
    Location
    Pakistan
    MS-Off Ver
    MS Office 2010
    Posts
    2

    Any Formula solution for summing corresponding values in other column against top 5 values

    I am trying to sum corresponding values in column "credit" against top 5 values in column "Revenue" using this array formula:
    {=SUM(IF(LARGE(Sales[Revenue],{1,2,3,4,5}),1,0)*Sales[Credit])}
    But it is giving sumproduct of all the values !

    Please correct this formula or suggest any other solution.

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

    Re: Any Formula solution for summing corresponding values in other column against top 5 va

    Try

    =SUMIF(Sales[Revenue],">="&LARGE(Sales[Revenue],5),Sales[Credit])

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Any Formula solution for summing corresponding values in other column against top 5 va

    hi mramazan. Welcome to the forum.

    See how this does.

    {=SUM(IF(LARGE(Sales[Revenue],{1,2,3,4,5})=Sales[Revenue],1,0)*Sales[Credit])}
    Dave

  4. #4
    Registered User
    Join Date
    07-28-2015
    Location
    Pakistan
    MS-Off Ver
    MS Office 2010
    Posts
    2

    Re: Any Formula solution for summing corresponding values in other column against top 5 va

    Thanks Jonmo1 & FlameRetired. Both solutions are working fine.

    You guys are amazing.

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

    Re: Any Formula solution for summing corresponding values in other column against top 5 va

    You're welcome.

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Any Formula solution for summing corresponding values in other column against top 5 va

    Glad to help.

+ 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. Replies: 5
    Last Post: 12-24-2013, 08:38 AM
  2. [SOLVED] Summing values in one column based on their adjacent values
    By undoubtedlymegz in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-07-2013, 04:57 PM
  3. i need to solution to copy periodically values from a column
    By syedfahadjalali in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 02-26-2013, 04:19 PM
  4. Replies: 3
    Last Post: 01-24-2013, 12:20 PM
  5. Replies: 6
    Last Post: 01-27-2012, 12:38 PM
  6. Replies: 2
    Last Post: 11-11-2008, 11:19 AM
  7. Summing values of a column
    By alien3011 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-23-2008, 04:14 AM
  8. Formula for summing up row/column values
    By Sun Li in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 01-29-2007, 10:53 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