Results 1 to 6 of 6

Two formulae to calculate the sum of top 3 cells for a category?

Threaded View

  1. #1
    Forum Contributor
    Join Date
    01-15-2013
    Location
    London
    MS-Off Ver
    Excel 2003, 2007, 2010, 2019, Microsoft 365.
    Posts
    444

    Two formulae to calculate the sum of top 3 cells for a category?

    Dear all,

    I used two different formulae to calculate the sum of top 3 cells for a category. Text values or errors are both taken into account. The two formulae used are:

    =SUM(LARGE(IF(A2:A11="Medium",IF(ISNUMBER(B2:B11),B2:B11,""),""),ROW(INDIRECT(("1:3")))),0)

    =SUM(IF((A2:A11="Medium")*(RANK(B2:B11,B2:B11)<=3),B2:B11,0))

    The first one works well, but the second one does not. I tried to repair the second one, but failed

    I attached the sample here. Can you please have a look to modify formula 2?

    Thanks a lot in advance.

Thread Information

Users Browsing this Thread

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

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