Hello to all,
I want to count a certain value on different tabs. Therefor I started to determine to the range within the formula needs to look.
Starting point was determined with the formulas MATCH and ADDRESS. This resulted in cel B6 as the starting point of my range. Then I worked the same way to determine the last cell of the range. This resulted in cell AF6
So the range to look in is: B6:AF6
Starting point:
=ADDRESS((MATCH(huidigemaand;INDIRECT("'"&D6&"'"&"!A3:A14");0)+2);2;4)
Ending point:
=ADDRESS((MATCH(huidigemaand;INDIRECT("'"&D6&"'"&"!A3:A14");0)+2);COLUMN(AF1);4)
Then I had the idea of making a formula like this:
COUNTIF(Starting point:Ending point;"condition") or COUNTIF(B6:AF6);"condition")
I'm probably complicating things to much but this is the (not working) solution I came up with. When I try the formule above, Excel doesn't accept it. Am I overlooking something?
Thanks for your help.
Regards
Wim
I want to count a certain value on different tabs. Therefor I started to determine to the range within the formula needs to look.
Starting point was determined with the formulas MATCH and ADDRESS. This resulted in cel B6 as the starting point of my range. Then I worked the same way to determine the last cell of the range. This resulted in cell AF6
So the range to look in is: B6:AF6
Starting point:
=ADDRESS((MATCH(huidigemaand;INDIRECT("'"&D6&"'"&"!A3:A14");0)+2);2;4)
Ending point:
=ADDRESS((MATCH(huidigemaand;INDIRECT("'"&D6&"'"&"!A3:A14");0)+2);COLUMN(AF1);4)
Then I had the idea of making a formula like this:
COUNTIF(Starting point:Ending point;"condition") or COUNTIF(B6:AF6);"condition")
I'm probably complicating things to much but this is the (not working) solution I came up with. When I try the formule above, Excel doesn't accept it. Am I overlooking something?
Thanks for your help.
Regards
Wim