View Single Post
  #2   Report Post  
Sloth
 
Posts: n/a
Default

=IF(COUNT(A1:H1)<7,SUM(A1:H1),SUM(LARGE(A1:H1,{1,2 ,3,4,5,6,7})))

"Stu" wrote:

Hi all

This sounds like it should be easy but for the life of me I cant work it
out.

What I have is a row of numbers and I have to add the 7 highest value
numbers out of a possible 9 otherwise just add what ever is in the row

for instance
row 1 contains 94, 96, 91, 92, 95, 90, 96, 98 total should equal 662
row 2 contains 96, 97, 93, 93, 96, 91, 97 total should equal 663
row 3 contains 95, 95, 92, 94, 94, 92 total should equal 562

any help would be gratefully appreciated

Stu