I'm not sure if this is what you're looking for, but try the following...
For data contained in one row:
=SUMIF(B1:H1,5,A1:G1)
For data contained in several rows (10 rows in this example):
=SUMIF(B1:H10,5,A1:G10)
Hope this helps!
In article ,
Scott Powell <Scott
wrote:
I'm trying to sum the number in one column based on criteria in another
column, but there are also multiple columns on the spreadsheet.
1 5 2 5 1.5 7 2 7
If the second number is a 5, I want the sum of the first numbers. Likewise
for the 7.
Thanks,
Scott