index/match 3 possible forth criteria

KDS14589

Board Regular
Joined
Jan 10, 2019
Messages
182
Office Version
  1. 2016
Platform
  1. Windows
Hello All

I had problem adding a fourth criteria, but with the help from a Mr Excel moderator In cell Avoid!BL18 I came up with:

Rich (BB code):
=IFERROR(INDEX(statement_name,AGGREGATE(15,6,(ROW(statement_name)-ROW(Statement!$AA$10)+1)/(statement_Bal_this_month>$BM$15)/(statement_Bal_this_month<=$BM$16)/(statement_min_due>0)/(statement_name=Avoid_name_1),ROWS(Avoid!$BL$18:BL18))),"")



it's the (statement_name=Avoid_name) part.



Now I've added a wrinkle by now wishing to add two more names to that criterion.



This is my last attempt:

Rich (BB code):
=IFERROR(INDEX(statement_name,AGGREGATE(15,6,(ROW(statement_name)-ROW(Statement!$AA$10)+1)/(statement_Bal_this_month>$BM$15)/(statement_Bal_this_month<$BM$16)/(statement_min_due>0)/(OR(statement_name=avoid_name1,statement_name=avoid_name2,statement_name=avoid_name3)),ROWS(Avoid!$BL$18:BL18))),"")



But now it lists all the names in the list and not just the three. Hopefully this is possible, but if not or this is to involved, I'll just stick with the original.


Help would be nice.
 

Attachments

  • Mr. Excel 7.7.21    .png
    Mr. Excel 7.7.21 .png
    53 KB · Views: 8
Looking at the sheet, I think that my logic was wrong. Try changing >0 to =0 and see if that gives the correct results.

One thing with the layout that gives me cause for concern. If any of the named ranges used in the formula contain merged cells then this type of formula is not going to work well.
 
Upvote 0

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.
on the change of the >0 to =0 did not help, now I get full list again
the thing about merged cells I'll check, but it'll be awhile because I got to leave home for several days, death in family
after I get back and check I'll let you know
THANKS
 
Upvote 0
I'm sorry to hear that.

I'll keep your question on my watch list so that I get notified when you return to it.
 
Upvote 0

Forum statistics

Threads
1,215,242
Messages
6,123,827
Members
449,127
Latest member
Cyko

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