Hi, I need to add every third value in a row of data and I do not know how. Thank you, Benedict
B baurian Sep 19, 2008 #1 Hi, I need to add every third value in a row of data and I do not know how. Thank you, Benedict
P Pete_UK Sep 19, 2008 #2 Try this: =SUMPRODUCT(--(MOD(ROW(A1:A100),3)=0),A1:A100) Assumes you are trying to add from column A - adjust to suit. It will add rows 3, 6, 9, 12 etc. Hope this helps. Pete
Try this: =SUMPRODUCT(--(MOD(ROW(A1:A100),3)=0),A1:A100) Assumes you are trying to add from column A - adjust to suit. It will add rows 3, 6, 9, 12 etc. Hope this helps. Pete
P Pete_UK Sep 19, 2008 #3 Just noticed you said the data is in a row. Change the formula to this: =SUMPRODUCT(--(MOD(COLUMN(A2:AA2),3)=0),A2:AA2) This looks at row 2 and adds every third column from C onwards. Hope this helps. Pete
Just noticed you said the data is in a row. Change the formula to this: =SUMPRODUCT(--(MOD(COLUMN(A2:AA2),3)=0),A2:AA2) This looks at row 2 and adds every third column from C onwards. Hope this helps. Pete
B baurian Sep 19, 2008 #4 Thank you, Pete. It works with numbers; it does not seem to work with (date time) in the cell. Benedict
Thank you, Pete. It works with numbers; it does not seem to work with (date time) in the cell. Benedict
P Peo Sjoblom Sep 19, 2008 #5 If they are Excel data/times they are numbers, maybe you only need to format it the right way like [h]:mm etc or maybe they are text but look like numerical dates times? -- Regards, Peo Sjoblom
If they are Excel data/times they are numbers, maybe you only need to format it the right way like [h]:mm etc or maybe they are text but look like numerical dates times? -- Regards, Peo Sjoblom