Filter using not FILTER but formula

makinmomb

Active Member
Joined
Dec 23, 2013
Messages
401
I have the following data on sheet1

COLOURART NO.BRANDSIZESURFACEPACKINGM2 CTNOUR CODEINCSTKBOOKFREE
Grey GCM04CEMENTUM60 X 60Matt31.08239.000.022,450.00 0
White GCM01CEMENTUM60 X 60Matt31.08239.000.012,450.00 0
CremaGGS12GRANTITE STONE30 X 60Rock81.44239.000.033,505.00 0
CremaGGS12GRANTITE STONE30 X 60Rock31.08239.000.782,590.00 0
<colgroup><col width="52" style="width: 39pt; mso-width-source: userset; mso-width-alt: 1901;"> <col width="54" style="width: 41pt; mso-width-source: userset; mso-width-alt: 1974;"> <col width="95" style="width: 71pt; mso-width-source: userset; mso-width-alt: 3474;"> <col width="44" style="width: 33pt; mso-width-source: userset; mso-width-alt: 1609;"> <col width="55" style="width: 41pt; mso-width-source: userset; mso-width-alt: 2011;"> <col width="52" style="width: 39pt; mso-width-source: userset; mso-width-alt: 1901;"> <col width="44" style="width: 33pt; mso-width-source: userset; mso-width-alt: 1609;"> <col width="61" style="width: 46pt; mso-width-source: userset; mso-width-alt: 2230;"> <col width="49" style="width: 37pt; mso-width-source: userset; mso-width-alt: 1792;"> <col width="27" style="width: 20pt; mso-width-source: userset; mso-width-alt: 987;"> <col width="37" style="width: 28pt; mso-width-source: userset; mso-width-alt: 1353;"> <col width="32" style="width: 24pt; mso-width-source: userset; mso-width-alt: 1170;"> <tbody> </tbody>

Can a drop box on sheet 2 specifying tile size pull data or without drop box , I know the normal filter is the best option but trying to spoon feed the sales team since some are weak users, they would hardly know how to use the FILTER option
 
The cell took the formula and the result is blank cell , I have requested to send the file to your mail , I wish I can take it too work 2moro

Did you used Ctrl+Shift+Enter to enter the formula?

Maybe I'm wrong, but I think that this is the problem here.

Markmzz
 
Upvote 0

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Here is the result of sheet2 (with my last formula):

20 X 90SIZESheet2
GripSURFACE
500 to 750QTY
COLOURART NO.
Grey GCM04*
Color23GCM14*
Color27GCM23*
Color36GCM29*
Color56GCM41*
Color64GCM44*
Color66GGS12*
***********************

<tbody>
</tbody>


Markmzz
 
Upvote 0
Hi, making use of your existing names (i.e. data) try this array formula (ctrl+shift+enter) in A6 and copy across.

Code:
A6{=IFERROR(INDEX(data,SMALL(IF(((INDEX(data,,MATCH($B$1,Sheet1!$A$1:$L$1,0))=$A$1)*(INDEX(data,,MATCH($B$2,Sheet1!$A$1:$L$1,0))=$A$2)*(INDEX(data,,MATCH($B$3,Sheet1!$A$1:$L$1,0))>=VALUE(LEFT($A$3,SEARCH(" ",$A$3)-1)))*(INDEX(data,,MATCH($B$3,Sheet1!$A$1:$L$1,0))<=IFERROR(VALUE(MID($A$3,SEARCH("to ",$A$3)+3,LEN($A$3)-SEARCH("to ",$A$3)+3)),9.99999999999999E+307)))>0,(INDEX(data,,MATCH($B$1,Sheet1!$A$1:$L$1,0))=$A$1)*(INDEX(data,,MATCH($B$2,Sheet1!$A$1:$L$1,0))=$A$2)*(INDEX(data,,MATCH($B$3,Sheet1!$A$1:$L$1,0))>=VALUE(LEFT($A$3,SEARCH(" ",$A$3)-1)))*(INDEX(data,,MATCH($B$3,Sheet1!$A$1:$L$1,0))<=IFERROR(VALUE(MID($A$3,SEARCH("to ",$A$3)+3,LEN($A$3)-SEARCH("to ",$A$3)+3)),9.99999999999999E+307))*(ROW(data)-MIN(ROW(data))+1)),ROWS(A$6:A6)),COLUMN()),"")}

ps: this formula is extensible if you have more criteria in future!
 
Upvote 0
Hi, making use of your existing names (i.e. data) try this array formula (ctrl+shift+enter) in A6 and copy across.

Code:
A6{=IFERROR(INDEX(data,SMALL(IF(((INDEX(data,,MATCH($B$1,Sheet1!$A$1:$L$1,0))=$A$1)*(INDEX(data,,MATCH($B$2,Sheet1!$A$1:$L$1,0))=$A$2)*(INDEX(data,,MATCH($B$3,Sheet1!$A$1:$L$1,0))>=VALUE(LEFT($A$3,SEARCH(" ",$A$3)-1)))*(INDEX(data,,MATCH($B$3,Sheet1!$A$1:$L$1,0))<=IFERROR(VALUE(MID($A$3,SEARCH("to ",$A$3)+3,LEN($A$3)-SEARCH("to ",$A$3)+3)),9.99999999999999E+307)))>0,(INDEX(data,,MATCH($B$1,Sheet1!$A$1:$L$1,0))=$A$1)*(INDEX(data,,MATCH($B$2,Sheet1!$A$1:$L$1,0))=$A$2)*(INDEX(data,,MATCH($B$3,Sheet1!$A$1:$L$1,0))>=VALUE(LEFT($A$3,SEARCH(" ",$A$3)-1)))*(INDEX(data,,MATCH($B$3,Sheet1!$A$1:$L$1,0))<=IFERROR(VALUE(MID($A$3,SEARCH("to ",$A$3)+3,LEN($A$3)-SEARCH("to ",$A$3)+3)),9.99999999999999E+307))*(ROW(data)-MIN(ROW(data))+1)),ROWS(A$6:A6)),COLUMN()),"")}

ps: this formula is extensible if you have more criteria in future!

WOW the formula pics all the 3 criteria , except its programmed for column J the stock while it needs to be programmed for column L the free stock after booked stock , test on the file I sent , 60 60 matt 250 to 500 , gih 06 is 294 but booked stock is 296 thus free is almost nil , it should thus not display

Please check and advice changes , wow I can now take it to work , how do further program for tiles less than 250 , validation 0 to 250
 
Upvote 0
Hi, the formula was designed to be flexible in that you just need to change the third rules by editing B3 from "STK" to "FREE" and it'll look into column L
Try it ;)
 
Upvote 0
how do further program for tiles less than 250 , validation 0 to 250

Try this:

Code:
In A5 - use Ctrl+Shift+Enter and not only Enter to enter the formula

=IFERROR(INDEX(Data,SMALL(IF((QTY>=IFERROR(--LEFT(SUBSTITUTE($A$3,"to","  "),4),0))*(QTY < IFERROR(--RIGHT(SUBSTITUTE($A$3,"to","  "),4),99^99))*
(COUNTIF($A$1,SIZE)+($A$1=""))*(COUNTIF($A$2,SURFACE)+($A$2="")),ROW(Data)-ROW(INDEX(Data,1,1))+1),ROWS(A$5:A5)),COLUMNS($A5:A5)),"")

Markmzz
 
Upvote 0

Forum statistics

Threads
1,215,355
Messages
6,124,468
Members
449,163
Latest member
kshealy

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