ROW(INDIRECT(MIN(A2:A14)&":"&MAX(A2:A14))) is not working when over 6 numbers long

BradleyS

Active Member
Joined
Oct 28, 2006
Messages
333
Office Version
  1. 2010
Platform
  1. Windows
My formula doesn't work when the numeric ID is over 6 numbers long. It shows a #REF! error
=SUMPRODUCT(SIGN(FREQUENCY(IF((B2:B14="Female")*(C2:C14>=19)*(D2:D14="Current"),A2:A14),ROW(INDIRECT(MIN(A2:A14)&":"&MAX(A2:A14))))))

I'm trying to get a count of the unique ID's based on the other criteria, but this section of the formula is not working: ROW(INDIRECT(MIN(A2:A14)&":"&MAX(A2:A14)))

Is there another formula alternative I can use to get the same result?

IDSexAgeStatus
1234567890​
Female20Current
1234567890​
Female20Current
#REF!​
6789456123​
Male25Current
6789456123​
Male25Current
6789456123​
Male25Current
5678912340​
Male14Out
5678912340​
Male14Out
4567893210​
Female24Current
4567893210​
Female24Current
3456789012​
Female22Current
3456789012​
Female22Current
2345678901​
Female25Current
2345678901​
Female25Current
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
You can't use INDIRECT with numbers that large since there are only just over 1m rows available. you could try something like:

Excel Formula:
=SUMPRODUCT(SIGN(FREQUENCY(IF((B2:B14="Female")*(C2:C14>=19)*(D2:D14="Current"),MATCH(A2:A14,A2:A14,0)),MATCH(A2:A14,A2:A14,0))))

assuming you're still using 2010.
 
Upvote 0
Solution

Forum statistics

Threads
1,215,264
Messages
6,123,960
Members
449,135
Latest member
jcschafer209

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