Slight change to formula

ExcelRoy

Well-known Member
Joined
Oct 2, 2006
Messages
2,540
Office Version
  1. 365
Platform
  1. Windows
Hi,

Can someone please assist me in changing the following formula to work if the criteria in Z2 is anything other than "SCT"

=IF($Z$2<>"",IFERROR(INDEX(Backorders!$G$2:$G$1000,SMALL(IF($L$2:$L$1000=$Z$2,ROW($L$2:$L$1000)-ROW($L$2)+1),ROWS(AJ$2:AJ2))),""),"")

Many thanks
 
AA2 house anything BUT "SCT" and Z2 house "SCT"

=IF($Z$2<>"SCT",IFERROR(INDEX(Backorders!$G$2:$G$1000,SMALL(IF($L$2:$L$1000=
$AA$2,ROW($L$2:$L$1000)-ROW($L$2)+1),ROWS(AJ$2:AJ2))),""),"")
 
Upvote 0

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Hi Aladin,

Edited:

It lists the non-SCT's, is there a way to have them in one lists with no blanks between them just like the SCT list



Many thanks for your help
 
Last edited:
Upvote 0
hi Admiral,

There may be more than one different Non-SCT entry so may be restricted to one cell

Thanks for trying though
 
Upvote 0
Hi Aladin,

Almost, the Non SCT lists brings up SCT's unfortunately

So close

Many thanks for your help

Let Z2 equal SCT

Now enter in AJ2 or some other cell more convenient...

Control+shift+enter, not just enter, and copy down:

=IFERROR(INDEX(Backorders!$G$2:$G$1000,SMALL(IF(1-($L$2:$L$1000=$Z$2),ROW($L$2:$L$1000)-ROW($L$2)+1),ROWS(AJ$2:AJ2))),"")

This should really produce a non-SCT sublist...

 
Upvote 0
Hi Aladin,

Sorry I did edit my post, but not quick enough

It produces the non-SCT list but with spaces inbetween them, strangely returning some "0"'s when dragged past row 100

Thanks
 
Upvote 0
Hi Aladin,

Sorry I did edit my post, but not quick enough

It produces the non-SCT list but with spaces inbetween them, strangely returning some "0"'s when dragged past row 100

Thanks

Does this eliminate empty/blank L-cells while producing non-SCT sublist?

=IFERROR(INDEX(Backorders!$G$2:$G$1000,SMALL(IF(1-($L$2:$L$1000=$Z$2),IF(1-($L$2:$L$1000=""),ROW($L$2:$L$1000)-ROW($L$2)+1)),ROWS(AJ$2:AJ2))),"")
 
Upvote 0
=IFERROR(INDEX(Backorders!G:G,LARGE(INDEX(IF(($L$2:$L$1000<>$Z$2),IF($L$2:$L$1000<>"",ROW($L$2:$L$1000))),0),ROW(A1))),"")

Control+shift+enter, not just enter
 
Upvote 0
Its genuinely scary the knowledge of you guys, many thanks both of you, both options work perfect

Thank you once again
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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