index\match 4th critera not working

KDS14589

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

I'm having problems adding a forth criteria to this formula =IFERROR(INDEX(statement_name,AGGREGATE(15,6,(ROW(statement_name)-ROW(Statement!$AA$10)+1)/(statement_Bal_this_month>=$BC$16)/(statement_Bal_this_monthl<$BC$17)/(statement_min_due>0)/(statement_name,Avoid_name),ROWS(Statement!BN$10:BN10))),"")

It's the statement_name,Avoid_name part

I've used the same formula minus the troubling part with success in other parts but if I add that forth part it stops.

That part refers to a name that I want to include as the result. If I don't have that part, I'll have 11 names but when I add that part, I get no name when I want just the one name it refers to.

If I get this working, I want to modify my other formulas to show the names minus the referred name because I just now notice this problem.
Rich (BB code):
=IFERROR(INDEX(statement_name,AGGREGATE(15,6,(ROW(statement_name)-ROW(Statement!$AA$10)+1)/(statement_Bal_this_month>=$BC$16)/(statement_Bal_this_monthl<$BC$17)/(statement_min_due>0)/(statement_name,Avoid_name),ROWS(Statement!BN$10:BN10))),"")
 

Attachments

  • Mr Excel 7.5.20  .png
    Mr Excel 7.5.20 .png
    112.8 KB · Views: 6
  • Mr Excel 7.5.20  .png
    Mr Excel 7.5.20 .png
    112.8 KB · Views: 3

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Not sure what you are trying to do...
A **guess**....
Try this on the 4th criterion
(statement_name<>Avoid_name)

M.
 
Upvote 0
I tried that before but with no luck, thanks for the suggest though.
I'm trying to get just one listing without rewriting the complete formula just for this section. the other sections will have this 'Avoid_Name" as a disclaimer criteria
 
Upvote 0
I tried that before but with no luck, thanks for the suggest though.

I'm trying to get just one listing without rewriting the complete formula just for this section. the other sections will have this 'Avoid_Name" as a disclaimer criteria


More Info:

Without that criteria I'm getting a list with that name included.

In the other sections I get a listing that is restricted to the values in BC16 and BC17 and a 'min_due' more than 0 (those work)

In 'Avoid_Name' is a name that I want the other sections lists to ignore
 
Upvote 0
It worked for me with a small sample of data (see below)

Observe at the example
- the named ranges
- John meets the conditions >=Min ($E$2) and <=Max ($F$2)
- John is in the Avoid_name range and therefore, despite meeting the above conditions, he does not appear in the list
- the others that meet the Min and Max conditions appear in the list

Pasta1
ABCDEFGH
1statement_namestatement_Bal_this_monthAvoid_nameMinMaxList
2Albert10John3040Diana
3Diana35Mike
4John38Richard
5Mike32 
6Richard32
Plan1
Cell Formulas
RangeFormula
H2:H5H2=IFERROR(INDEX(statement_name,AGGREGATE(15,6,(ROW(statement_name)-ROW(INDEX(statement_name,1))+1)/((statement_Bal_this_month>=$E$2)*(statement_Bal_this_month<=$F$2)*(statement_name<>Avoid_name)),ROWS(H$2:H2))),"")
Named Ranges
NameRefers ToCells
Avoid_name=Plan1!$D$2H2:H5
statement_Bal_this_month=Plan1!$B$2:$B$6H2:H5
statement_name=Plan1!$A$2:$A$6H2:H5


Hope it helps

M.
 
Upvote 0
Solution
It worked for me with a small sample of data (see below)

Observe at the example
- the named ranges
- John meets the conditions >=Min ($E$2) and <=Max ($F$2)
- John is in the Avoid_name range and therefore, despite meeting the above conditions, he does not appear in the list
- the others that meet the Min and Max conditions appear in the list

Pasta1
ABCDEFGH
1statement_namestatement_Bal_this_monthAvoid_nameMinMaxList
2Albert10John3040Diana
3Diana35Mike
4John38Richard
5Mike32 
6Richard32
Plan1
Cell Formulas
RangeFormula
H2:H5H2=IFERROR(INDEX(statement_name,AGGREGATE(15,6,(ROW(statement_name)-ROW(INDEX(statement_name,1))+1)/((statement_Bal_this_month>=$E$2)*(statement_Bal_this_month<=$F$2)*(statement_name<>Avoid_name)),ROWS(H$2:H2))),"")
Named Ranges
NameRefers ToCells
Avoid_name=Plan1!$D$2H2:H5
statement_Bal_this_month=Plan1!$B$2:$B$6H2:H5
statement_name=Plan1!$A$2:$A$6H2:H5


Hope it helps

M.
It works

I also found an extra letter after one of the name_range I used (my shaky hands due to my disability) in that section. I'm going to double check the other sections formulas.

THANKS for the help
 
Upvote 0

Forum statistics

Threads
1,215,231
Messages
6,123,754
Members
449,119
Latest member
moudenourd

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