See attached for my example including dynamic named range
formula on sheet to SUM
Formula:
=SUMPRODUCT(ValuesRng*ISEVEN(COLUMN(ValuesRng)))
Named range formula (ValuesRng)
Formula:
=OFFSET(Sheet1!$B$2,0,0,1,MAX(COLUMN(Sheet1!$B$2:$V$2)*NOT(ISBLANK(Sheet1!$B$2:$V$2))))
*Note the ISBLANK part...if you have continuous data going across until you make new entries then this could be simplified.
If you have continuous data from B2 to the right (not leaving blanks between even columns):
Replace (the whole last argument of OFFSET):
Formula:
MAX(COLUMN(Sheet1!$B$2:$V$2)*NOT(ISBLANK(Sheet1!$B$2:$V$2)))
with:
Formula:
COUNTA(Sheet1!$B$2:$V$2)
You could of course adjust the columns threshold by changing "V2" to whatever column off to the right you choose. I would encourage you to not extend it to the last column. If you feel like you might have 500 columns, make it 600, 1000, etc. Something high enough you will rarely if ever need to update but not so high we make the formula look at a ton of empty columns you will never reasonably use.
Hope this helps.
Bookmarks