How ro Apply Indirect to 3 formulas-> Countif, Indirect to Min/If/Row(array) and sumproduct?

AndyJR

Board Regular
Joined
Jun 20, 2015
Messages
90
Hi and happy holidays!!

I know Indirect is volatile but I need it to add because such formulas that i'm using are referenced to a data range that is replaced with row insertion on daily basis (Insert/row with new values on the same range) via VBA.
So, when Excel calculate the new values, The 3 formulas pull the previous values (not the new one).

I really need to apply the Indirect Function to the following Formulas :

Formula 1
Code:
=COUNTIF($E$37:$I$43,E3)
Formula2 (array)
Code:
{=MIN(IF($E$37:$I$337=E3,ROW($C$37:$C$337)-ROW($C$37)+0))}
Formula 3
Code:
=SUMPRODUCT(--($E$37:$I$351&$Q$37:$U$351=E3&J3))

Please, can I get some help with this?

Note: as you see on this example the 3 formulas are using the same reference.

Thank You in advance!
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
[1]
=countif(indirect("e37:i43"),e3)

[2]
{=min(if(indirect("e37:i337")=e3,row(indirect("e37:i337"))-row(indirect("e37"))+1))}

[3]
=sumproduct(--(indirect("e37:i351")&indirect("q37:u351"))=e3&j3))
 
Upvote 0
Thank you, Aladin Akyurek

The Formulas Number 1 and 2 Work Perfect, but the Sumproduct display 0 (zero) in every cells.

Don't worry, I'm sure your formula is correct, I think my sheet has some range with text and numbers.
Let you know.


Thank you so much,!!!!
 
Upvote 0
Thank you, Aladin Akyurek

The Formulas Number 1 and 2 Work Perfect, but the Sumproduct display 0 (zero) in every cells.

Don't worry, I'm sure your formula is correct, I think my sheet has some range with text and numbers.
Let you know.


Thank you so much,!!!!

Let's modify the SUMPRODUCT formula as follows:

=SUMPRODUCT(--(INDIRECT("e37:i351")=E3),--(INDIRECT("q37:u351")=J3))
 
Upvote 0

Forum statistics

Threads
1,216,172
Messages
6,129,291
Members
449,498
Latest member
Lee_ray

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