SUMPRODUCT+MOD+COLUMN in n+ column

stefangeorgi

New Member
Joined
Mar 16, 2023
Messages
1
Office Version
  1. 2013
Platform
  1. Windows
Hi everyone,
I have the following problem. I have 3 identicals columns which repeats (image 1)
I would like to tell excel to calculate the values in the green column for every green column after that. But the problem here is that the starting point change so the number of the column too.
I have this formula that works

SUMPRODUCT(--(MOD(COLUMN(AD8:LM8)-COLUMN(AD8)+1;9)=0);--(AD8:LM8>0);-(ISFORMULA(AD8:LM8));AD8:LM8)

considering positive or negative values
and tried this on in order to resolve the issues I have but it doesn't work :

SUMPRODUCT(--(MOD(COLUMN(AD8:INDEX(AD8:LM8;COLUMN()-1))-COLUMN(AD8)+1;3)=0)+0;--(AD8:LM8<0);-(ISFORMULA(AD8:LM8));AD8:INDEX(AD8:LM8;COLUMN()-1))

if someone could tell me where I have to put the index function and how?
thank you !
 

Attachments

  • 1.png
    1.png
    70 KB · Views: 13
  • 2.png
    2.png
    197.3 KB · Views: 12
  • 3.png
    3.png
    205.9 KB · Views: 12

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Can you install the xl2bb add in (link is below) and post a mini workbook of your worksheet(s). In order for the forum to start on this they have to manally create your data. And typing errors can occur. Plus the image may not be easy to read for some people. Thanks in advance!
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,756
Members
448,990
Latest member
Buzzlightyear

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top