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

BradleyS

Active Member
Joined
Oct 28, 2006
Messages
351
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

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
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,223,908
Messages
6,175,307
Members
452,633
Latest member
DougMo

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