|
|||||||||||||||||||||
|
#1
|
|||
|
|||
|
Adding in increments
I am hoping someone could help me. I am trying to figure out a formula that will add the 5th cell in each row of a Spreadsheet I have, currently I have =J5+O5+T5+Z5+...+IO5, but I am needing to add lots more values and I do not want to have to keep updating the formula.
I have asked a few people I know but no one can seem to help. Is there an IF statement I can use and specify the cell I want it to go upto? Please help |
|
#2
|
||||
|
||||
|
__________________
_________________________________________ ![]() Credo Elvem ipsum etian vivere _________________________________________ A message for cross posters Please remember to wrap code. Forum Rules Please add to your signature if you found this link helpful. Excel links !!! |
|
#3
|
||||
|
||||
|
Not sure about your example.....
=J5+O5+T5+Z5+...+IO5 wouldn't it be Y5.....and IP5 ....but you could do it similar to Chip's way but with SUMPRODUCT, thus avoiding CSE.....i.e. =SUMPRODUCT(--(MOD(COLUMN(J5:IV5)-COLUMN(J5),5)=0),J5:IV5) |
|
#4
|
|||
|
|||
|
Quote:
|
|
#5
|
|||
|
|||
|
Is it ok if I can ask someone to have a look at it? I have uploaded it to a zip file
|
|
#6
|
||||
|
||||
|
You have to sort you table out
E.g delete Column X and AM. Didn't check past that. Formula works just your data not consistant VBA Noob
__________________
_________________________________________ ![]() Credo Elvem ipsum etian vivere _________________________________________ A message for cross posters Please remember to wrap code. Forum Rules Please add to your signature if you found this link helpful. Excel links !!! |
|
#7
|
|||
|
|||
|
I have deleted the blank columns but I am still not sure if its correct - for example I know cell G32 should be 2, but its showing 0.
=SUMPRODUCT(--(MOD(COLUMN(J5:IO5)-COLUMN(J5),5)=0),J5:IO5) is the formula |
|
#8
|
||||
|
||||
|
Data layout still wrong
Column CU should be GP but is G. Will work if you check the data Enter a blank row and add this formula in I2 and drag across =IF(MOD(COLUMN()-8,5)=0,5,(MOD(COLUMN()-8,5))) G should always equal 2 VBA Noob
__________________
_________________________________________ ![]() Credo Elvem ipsum etian vivere _________________________________________ A message for cross posters Please remember to wrap code. Forum Rules Please add to your signature if you found this link helpful. Excel links !!! |
|
#9
|
||||
|
||||
|
Rather than trying to sum every 5th column it should be easier to use SUMIF based on your column headers
I’m not sure exactly which formulas you’re referring to but try this formula in C5 on u19’s worksheet =SUMIF($I$4:$IO$4,C$4,$I5:$IO5) copy across to column G and then down |
![]() |
| Bookmarks |
New topics in F1 Get the most out of Excel Formulas & Functions
|
|
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|