array "formula maybe too long" excel 2007

standaman7

New Member
Joined
Apr 16, 2013
Messages
3
afternoon,

i have the formula below to pull from an array. the problem is that the data im using for the array contains 20000+ rows. The function works fine for about the first 10 lines and then i get random data that is pulled from my data source. any help?



{=IF(ROWS($C2:$C2)>$A2,"",INDEX('XX File'!$A$2:$A$29428,SMALL(IF(('XX File'!$F$2:$F$29428<='Input'!$A2)*('XX File'!$G$2:$G$29428>='Input'!$A2)*('XX File'!$A$2:$A$29428='Input'!$B2),ROW('XX File'!$A2:$A29428)-ROW('XX File'!$A$2)+1),ROWS(C2:C2))))}
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
afternoon,

i have the formula below to pull from an array. the problem is that the data im using for the array contains 20000+ rows. The function works fine for about the first 10 lines and then i get random data that is pulled from my data source. any help?



{=IF(ROWS($C2:$C2)>$A2,"",INDEX('XX File'!$A$2:$A$29428,SMALL(IF(('XX File'!$F$2:$F$29428<='Input'!$A2)*('XX File'!$G$2:$G$29428>='Input'!$A2)*('XX File'!$A$2:$A$29428='Input'!$B2),ROW('XX File'!$A2:$A29428)-ROW('XX File'!$A$2)+1),ROWS(C2:C2))))}

{=IF(ROWS($C2:$C2)>$A2,"",INDEX('XX File'!$A$2:$A$29428,SMALL(IF(('XX File'!$F$2:$F$29428<='Input'!$A2)*('XX File'!$G$2:$G$29428>='Input'!$A2)*('XX File'!$A$2:$A$29428='Input'!$B2),ROW('XX File'!$A2:$A$29428)-ROW('XX File'!$A$2)+1),ROWS($C$2:C2))))}
 
Upvote 0
That adjustment for the formula worked for the first line and then after, i got #NUM!. the first part of the formula "IF(ROWS($C2:$C2)>$A2,"" is a reference to the below sumproduct, dont know if that helps:

=SUMPRODUCT(('XX File'!$F$2:$F$29428<='Input'!$A2)*('XX File'!$G$2:$G$29428>='Input'!$A2)*('XX File'!$A$2:$A$29428='Input'!$B2))
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,256
Members
448,557
Latest member
richa mishra

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