Dynamic 'Defined Name' values within a formula not providing expected results

grigby21

New Member
Joined
Aug 28, 2018
Messages
13
Have a formula:
=SUMPRODUCT(COUNTIFS( INDIRECT("'"&$A$2&"'!$H$3:$H$99955"), $A$2 & UAT, INDIRECT("'"&$A$2&"'!$G$3:$G$99955"), $A$2 & Defect))

WHERE $A$2 refers to a dynamic value which serves as a prefix in the Defined Name naming convention.

Results being returned are not in agreement with the static search criteria.

Thoughts?

Thanks!
 
Thanks! ...though unable to access for some reason. What I did learn, is that it seems the definition of my Defined Names is not being handled properly. When I changed the 'Refers To' from: =OFFSET('Mapping - Defects'!$O$7,0,0,COUNTA('Mapping - Defects'!$O$7:'Mapping - Defects'!$O$23),1) to an explicit definition: ='Mapping - Defects'!$O$7:$O$13 ...the formula worked. Sigh.

I'm not convinced...

Once more: https://www.dropbox.com/s/yl643jxv0h0jiyh/grigby21%20sumproduct%2Bcountifs%2Bindirect.xlsx?dl=0

If you define conUAT and conDefect via the Name Box, the relevant INDIRECT bits involving these names will succeed.

By the way, a name definition using OFFSET precludes running INDIRECT on that name.


Also, thanks for the update.
 
Upvote 0

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
I'm not convinced...

Once more: https://www.dropbox.com/s/yl643jxv0h0jiyh/grigby21 sumproduct+countifs+indirect.xlsx?dl=0

If you define conUAT and conDefect via the Name Box, the relevant INDIRECT bits involving these names will succeed.

By the way, a name definition using OFFSET precludes running INDIRECT on that name.


Also, thanks for the update.

Thank you for your help! ...still no luck accessing link; will try from home later today. Sigh. So I suppose I'll be reworking my Defined Name definitions... all 160. haha...
 
Upvote 0

Forum statistics

Threads
1,215,223
Messages
6,123,711
Members
449,118
Latest member
MichealRed

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