Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Mike
Yeah some times i dont explain very well. I want cell A1 to capture every other column (C1, D1,G1 and so forth) and cell B1 to capture D1, F1 H1 and so forth. thanks "Mike H" wrote: Hi, I'm afraid I don't understand the follow up question. But if you want to add another cell to the sum use my formula and append a simple sum formula =SUMPRODUCT(MOD(COLUMN(A1:M1),2)*A1:M1)+N1 or =SUMPRODUCT(MOD(COLUMN(A1:M1),2)*A1:M1)+Sum(N1:n5) or a modification to the technique =SUMPRODUCT((MOD(COLUMN(A1:M1)-COLUMN(OFFSET(A1:M1,,,1,1)),N)=0)*A1:M1) Change N to the column in the range to sum e.g. a 4 makes it sum every 4th column Mike "gma" wrote: Thanks Mike that works. One more question, i now want to add the column next to it so how do i change the formula to skip and pick up the other columns? "Mike H" wrote: hi, Change the range to suit =SUMPRODUCT(MOD(COLUMN(A1:M1),2)*A1:M1) Mike "gma" wrote: how do i add every other column without doing the forumla as A1+C1+E1 ect ect? I want to be able to total multiple columns. Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Column Chart - Adding text in the column in Excel 2007 | Charts and Charting in Excel | |||
Excel 2000: Adding column D based on value in column A | Excel Worksheet Functions | |||
Adding a Custom Column based on an existing Column (EXPERT) | Excel Worksheet Functions | |||
adding numbers from column B, while condition on column A | Excel Discussion (Misc queries) | |||
Adding one column based on results from another column | Excel Discussion (Misc queries) |