Help with a formula...

dixiebritt

Board Regular
Joined
Jan 8, 2014
Messages
63
I have a formula that i use to pull out clients names that state "yes" if they are new. The formula has been working for a while and now it is not. On my very first cell, where I have the formula:
=IF(ROW(D1)>$M$2,"",INDEX($D$2:$D$8000,SMALL(IF($E$2:$E$8000="yes",ROW($D$2:$D$8000)-ROW($D$2)+1),ROW(D1))))
results in the correct result

The next cell, yeilds #NUM ! as the result - instead of the actual company name and it does this for all other cells, where this is the case, instead of listing the client name.
=IF(ROW(D3)>$M$2,"",INDEX($D$2:$D$8000,SMALL(IF($E$2:$E$8000="yes",ROW($D$2:$D$8000)-ROW($D$2)+1),ROW(D3))))

Do you have any solutions on why this would happen?
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Did you array enter the formula using Ctrl+Shift+Enter?
 
Upvote 0
Hi, not sure what this formula is meant to do, but is it actually an array formula ?
Does the first instance of the formula have curly brackets round it like this
{=IF(ROW.......(D1))))}

And is the second instance missing the curly brackets ?

I don't know what your source data looks like, but when I turn both versions into array formulas, I get results that look like they might be right, not #NUM .
Do you know how to turn a formula into an array formula ?
 
Upvote 0
The array works as long as there is data in the columns. You can add to the formula like this for blanks:

=IFERROR(IF(ROW(D1)>$M$2,"",INDEX($D$2:$D$8000,SMALL(IF($E$2:$E$8000="yes",ROW($D$2:$D$8000)-ROW($D$2)+1),ROW(D1)))),"")

Press CTRL+SHIFT+ENTER to make it an array.
 
Upvote 0
No curly brackets on this formula. When I put them in, nothing happens. Can you tell me how to turn this back into an array formula?
 
Upvote 0

Forum statistics

Threads
1,215,724
Messages
6,126,477
Members
449,315
Latest member
misterzim

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