SUMPRODUCT active link formula

Unexpc

Active Member
Joined
Nov 12, 2020
Messages
496
Office Version
  1. 2019
Platform
  1. Windows
Hi guys
i have sumproduct formula for counting two range of number, i want count active cells of formula that linked to another sheet...
=SUMPRODUCT((ISNUMBER(D:D))*(NOT(ISFORMULA(D:D)))+(ISNUMBER(G:G))*(NOT(ISFORMULA(G:G))))-SUMPRODUCT((ISNUMBER(D:D))*(NOT(ISFORMULA(D:D)))*(ISNUMBER(G:G))*(NOT(ISFORMULA(G:G))))
my link formula:
=IF(MOD(ROW()-6,34)=0,SUM($C$7:C7),IF(MOD(ROW()-7,34)=0,"بدهکار طلا",IF(IFERROR(INDIRECT(LOOKUP(2,1/(("Sheet!D"&ROW()-5-INT((ROW()-6)/34)-INT((ROW()-7)/34))<>""),("Sheet!D"&ROW()-5-INT((ROW()-6)/34)-INT((ROW()-7)/34)))),"")=0,"",IFERROR(INDIRECT(LOOKUP(2,1/(("Sheet!D"&ROW()-6-INT((ROW()-6)/34)-INT((ROW()-7)/34))<>""),("Sheet!D"&ROW()-5-INT((ROW()-6)/34)-INT((ROW()-7)/34)))),""))))
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
i want in columns c and f (is filled one of them) count 5 things in my example and columns d and g count 4 things
i not filled f and g but when fill this two column, for example in row 10 fill data in columns c and f, count one thing not two and this like for d and g too,
 
Upvote 0
You haven't specified what should be counted.
Cell Formulas
RangeFormula
E3E3=SUMPRODUCT((ISNUMBER(C:C))*(NOT(ISFORMULA(C:C)))+(ISNUMBER(F:F))*(NOT(ISFORMULA(F:F))))-SUMPRODUCT((ISNUMBER(C:C))*(NOT(ISFORMULA(C:C)))*(ISNUMBER(F:F))*(NOT(ISFORMULA(F:F))))
H3H3=SUMPRODUCT((ISNUMBER(D:D))*(NOT(ISFORMULA(D:D)))+(ISNUMBER(G:G))*(NOT(ISFORMULA(G:G))))-SUMPRODUCT((ISNUMBER(D:D))*(NOT(ISFORMULA(D:D)))*(ISNUMBER(G:G))*(NOT(ISFORMULA(G:G))))
C4C4=INDEX((A8),1,1,1)
G4G4=IFERROR(IF(MOD(ROW()-6,34)<=1,"",LOOKUP(10^35,A:A)),"")
A8:A16A8=IF(MOD(ROW()-6,34)=0,"Text",IF(MOD(ROW()-7,34)=0,"Text",IF(IFERROR(INDIRECT(LOOKUP(2,1/(("Sheet!B"&ROW()-5-INT((ROW()-6)/34)-INT((ROW()-7)/34))<>""),("Sheet!B"&ROW()-5-INT((ROW()-6)/34)-INT((ROW()-7)/34)))),"")=0,"",IFERROR(INDIRECT(LOOKUP(2,1/(("Sheet!B"&ROW()-6-INT((ROW()-6)/34)-INT((ROW()-7)/34))<>""),("Sheet!B"&ROW()-5-INT((ROW()-6)/34)-INT((ROW()-7)/34)))),""))))
B8:B17B8=IF(MOD(ROW()-6,34)=0,"",IF(MOD(ROW()-7,34)=0,"Text",IF(IFERROR(INDIRECT(LOOKUP(2,1/(("Sheet!C"&ROW()-5-INT((ROW()-6)/34)-INT((ROW()-7)/34))<>""),("Sheet!C"&ROW()-5-INT((ROW()-6)/34)-INT((ROW()-7)/34)))),"")=0,"",IFERROR(INDIRECT(LOOKUP(2,1/(("Sheet!C"&ROW()-6-INT((ROW()-6)/34)-INT((ROW()-7)/34))<>""),("Sheet!C"&ROW()-5-INT((ROW()-6)/34)-INT((ROW()-7)/34)))),""))))
C8:C16C8=IF(MOD(ROW()-6,34)=0,SUM($C$7:C7),IF(MOD(ROW()-7,34)=0,"Text",IF(IFERROR(INDIRECT(LOOKUP(2,1/(("Sheet!D"&ROW()-5-INT((ROW()-6)/34)-INT((ROW()-7)/34))<>""),("Sheet!D"&ROW()-5-INT((ROW()-6)/34)-INT((ROW()-7)/34)))),"")=0,"",IFERROR(INDIRECT(LOOKUP(2,1/(("Sheet!D"&ROW()-6-INT((ROW()-6)/34)-INT((ROW()-7)/34))<>""),("Sheet!D"&ROW()-5-INT((ROW()-6)/34)-INT((ROW()-7)/34)))),""))))
D8:D16D8=IF(MOD(ROW()-6,34)=0,SUM($D$7:D7),IF(MOD(ROW()-7,34)=0,"Text",IF(IFERROR(INDIRECT(LOOKUP(2,1/(("Sheet!E"&ROW()-5-INT((ROW()-6)/34)-INT((ROW()-7)/34))<>""),("Sheet!E"&ROW()-5-INT((ROW()-6)/34)-INT((ROW()-7)/34)))),"")=0,"",IFERROR(INDIRECT(LOOKUP(2,1/(("Sheet!E"&ROW()-6-INT((ROW()-6)/34)-INT((ROW()-7)/34))<>""),("Sheet!E"&ROW()-5-INT((ROW()-6)/34)-INT((ROW()-7)/34)))),""))))
E8E8=IF(AND(A8=""),"",SUM(C8:D8))
F8:F16F8=IF(MOD(ROW()-6,34)=0,SUM($F$7:F7),IF(MOD(ROW()-7,34)=0,"Text",IF(IFERROR(INDIRECT(LOOKUP(2,1/(("Sheet!F"&ROW()-5-INT((ROW()-6)/34)-INT((ROW()-7)/34))<>""),("Sheet!F"&ROW()-5-INT((ROW()-6)/34)-INT((ROW()-7)/34)))),"")=0,"",IFERROR(INDIRECT(LOOKUP(2,1/(("Sheet!F"&ROW()-6-INT((ROW()-6)/34)-INT((ROW()-7)/34))<>""),("Sheet!F"&ROW()-5-INT((ROW()-6)/34)-INT((ROW()-7)/34)))),""))))
G8:G16G8=IF(MOD(ROW()-6,34)=0,SUM($G$7:G7),IF(MOD(ROW()-7,34)=0,"Text",IF(IFERROR(INDIRECT(LOOKUP(2,1/(("Sheet!G"&ROW()-5-INT((ROW()-6)/34)-INT((ROW()-7)/34))<>""),("Sheet!G"&ROW()-5-INT((ROW()-6)/34)-INT((ROW()-7)/34)))),"")=0,"",IFERROR(INDIRECT(LOOKUP(2,1/(("Sheet!G"&ROW()-6-INT((ROW()-6)/34)-INT((ROW()-7)/34))<>""),("Sheet!G"&ROW()-5-INT((ROW()-6)/34)-INT((ROW()-7)/34)))),""))))
H8H8=IF(AND(A8=""),"",SUM(F8:G8))
E9:E16E9=IF(AND(A9=""),"",SUM(C9:D9,E8))
H9:H16H9=IF(AND(A9=""),"",SUM(F9:G9,H8))
F17:G17,C17:D17C17=SUM(C8:C16)
Named Ranges
NameRefers ToCells
Print_Area=Print!$A$1:$H$40G4
 
Upvote 0
C4: =SUBTOTAL(2,A8)
C17: =SUBTOTAL(2,C8:C16)
E3: =COUNT(C:C)

Same formulas for the other columns, edit as needed.
 
Upvote 0
C4: =SUBTOTAL(2,A8)
C17: =SUBTOTAL(2,C8:C16)
E3: =COUNT(C:C)

Same formulas for the other columns, edit as needed.
the range is changable, anyway with first formula that changed that find out active cells? or find formula but just count that show data except text and sum formula in that range
 
Upvote 0
Always start in row 8?
Always 1 row at the end do not count?
Excel Formula:
=COUNT(C8:INDEX(C:C,1048576))-1
 
Upvote 0
Always start in row 8?
Always 1 row at the end do not count?
Excel Formula:
=COUNT(C8:INDEX(C:C,1048576))-1
that is correct, but when i insert show 1 thing counted before data is wirte, and another like formula i upload when write data in same row of Columns C and F, count one thing and for columns D and G too
 
Upvote 0
I'm sorry, but I have no idea what you are trying to say.
 
Upvote 0

Forum statistics

Threads
1,215,644
Messages
6,125,993
Members
449,279
Latest member
Faraz5023

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