how to i add the first six values of of a row when in various colu
Try this:
For values (or blanks) in A1:J1
This ARRAY FORMULA* returns the sum of the 1st 6 non-blank values in A1:J1:
=SUMPRODUCT(ISNUMBER(MATCH(COLUMN(A1:J1),SMALL(((A 1:J1<0)*COLUMN(A1:J1))+((A1:J1="")*10^99),{1,2,3, 4,5,6}),0))*A1:J1)
*Note: For array formulas, hold down [Ctrl] and [Shift] when you press
[Enter], instead of just pressing [Enter].
Also, in case text wrap impacts the display, there are NO spaces in that
formula.
Is that something you can work with?
***********
Regards,
Ron
XL2002, WinXP
"Cecilia" wrote:
How do I add the first nonzero values of a row when they appear in various
columns?
I only need to add the first six values that are nonzero but these appear in
various columns throughout my table.
|