3 criteria filter?

tkaram

New Member
Joined
Mar 16, 2010
Messages
2
Hello,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:p></o:p>
<o:p></o:p>
I am currently working with a data table, and need to apply filters in order to get the relevant rows of data; I was working on a macro that filters automatically and pastes the relevant rows in a separate sheet. <o:p></o:p>
Example:<o:p></o:p>
I need to filter all the red blue and green clients, <o:p></o:p>
My problem is that I can’t use more that 2 criteria when I filter so I’ll have only red or blue<o:p></o:p>
<TABLE class=MsoNormalTable style="MARGIN: auto auto auto 4.9pt; WIDTH: 153.5pt; BORDER-COLLAPSE: collapse; mso-padding-alt: 0in 5.4pt 0in 5.4pt" cellSpacing=0 cellPadding=0 width=205 border=0><TBODY><TR style="HEIGHT: 13.3pt; mso-yfti-irow: 0; mso-yfti-firstrow: yes"><TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #003366; PADDING-BOTTOM: 0in; BORDER-LEFT: #003366 1pt solid; WIDTH: 47.75pt; PADDING-TOP: 0in; BORDER-BOTTOM: #e0dfe3; HEIGHT: 13.3pt" vAlign=bottom noWrap width=64>Client <o:p></o:p>

</TD><TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #003366; PADDING-BOTTOM: 0in; BORDER-LEFT: #e0dfe3; WIDTH: 54.65pt; PADDING-TOP: 0in; BORDER-BOTTOM: #e0dfe3; HEIGHT: 13.3pt" vAlign=bottom noWrap width=73>Color<o:p></o:p>

</TD><TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; BACKGROUND: #003366; PADDING-BOTTOM: 0in; BORDER-LEFT: #e0dfe3; WIDTH: 51.1pt; PADDING-TOP: 0in; BORDER-BOTTOM: #e0dfe3; HEIGHT: 13.3pt" vAlign=bottom noWrap width=68>Food<o:p></o:p>

</TD></TR><TR style="HEIGHT: 13.3pt; mso-yfti-irow: 1"><TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #003366 1pt solid; WIDTH: 47.75pt; PADDING-TOP: 0in; BORDER-BOTTOM: #e0dfe3; HEIGHT: 13.3pt; BACKGROUND-COLOR: transparent" vAlign=bottom noWrap width=64>1<o:p></o:p>

</TD><TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #e0dfe3; WIDTH: 54.65pt; PADDING-TOP: 0in; BORDER-BOTTOM: #e0dfe3; HEIGHT: 13.3pt; BACKGROUND-COLOR: transparent" vAlign=bottom noWrap width=73>red<o:p></o:p>

</TD><TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #e0dfe3; WIDTH: 51.1pt; PADDING-TOP: 0in; BORDER-BOTTOM: #e0dfe3; HEIGHT: 13.3pt; BACKGROUND-COLOR: transparent" vAlign=bottom noWrap width=68>Brgr<o:p></o:p>

</TD></TR><TR style="HEIGHT: 13.3pt; mso-yfti-irow: 2"><TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #003366 1pt solid; WIDTH: 47.75pt; PADDING-TOP: 0in; BORDER-BOTTOM: #e0dfe3; HEIGHT: 13.3pt; BACKGROUND-COLOR: transparent" vAlign=bottom noWrap width=64>2<o:p></o:p>

</TD><TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #e0dfe3; WIDTH: 54.65pt; PADDING-TOP: 0in; BORDER-BOTTOM: #e0dfe3; HEIGHT: 13.3pt; BACKGROUND-COLOR: transparent" vAlign=bottom noWrap width=73>red<o:p></o:p>

</TD><TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #e0dfe3; WIDTH: 51.1pt; PADDING-TOP: 0in; BORDER-BOTTOM: #e0dfe3; HEIGHT: 13.3pt; BACKGROUND-COLOR: transparent" vAlign=bottom noWrap width=68>Pizza<o:p></o:p>

</TD></TR><TR style="HEIGHT: 13.3pt; mso-yfti-irow: 3"><TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #003366 1pt solid; WIDTH: 47.75pt; PADDING-TOP: 0in; BORDER-BOTTOM: #e0dfe3; HEIGHT: 13.3pt; BACKGROUND-COLOR: transparent" vAlign=bottom noWrap width=64>3<o:p></o:p>

</TD><TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #e0dfe3; WIDTH: 54.65pt; PADDING-TOP: 0in; BORDER-BOTTOM: #e0dfe3; HEIGHT: 13.3pt; BACKGROUND-COLOR: transparent" vAlign=bottom noWrap width=73>blue<o:p></o:p>

</TD><TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #e0dfe3; WIDTH: 51.1pt; PADDING-TOP: 0in; BORDER-BOTTOM: #e0dfe3; HEIGHT: 13.3pt; BACKGROUND-COLOR: transparent" vAlign=bottom noWrap width=68>brgr<o:p></o:p>

</TD></TR><TR style="HEIGHT: 13.3pt; mso-yfti-irow: 4"><TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #003366 1pt solid; WIDTH: 47.75pt; PADDING-TOP: 0in; BORDER-BOTTOM: #e0dfe3; HEIGHT: 13.3pt; BACKGROUND-COLOR: transparent" vAlign=bottom noWrap width=64>4<o:p></o:p>

</TD><TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #e0dfe3; WIDTH: 54.65pt; PADDING-TOP: 0in; BORDER-BOTTOM: #e0dfe3; HEIGHT: 13.3pt; BACKGROUND-COLOR: transparent" vAlign=bottom noWrap width=73>green<o:p></o:p>

</TD><TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #e0dfe3; WIDTH: 51.1pt; PADDING-TOP: 0in; BORDER-BOTTOM: #e0dfe3; HEIGHT: 13.3pt; BACKGROUND-COLOR: transparent" vAlign=bottom noWrap width=68>Pizza<o:p></o:p>

</TD></TR><TR style="HEIGHT: 13.3pt; mso-yfti-irow: 5"><TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #003366 1pt solid; WIDTH: 47.75pt; PADDING-TOP: 0in; BORDER-BOTTOM: #e0dfe3; HEIGHT: 13.3pt; BACKGROUND-COLOR: transparent" vAlign=bottom noWrap width=64>5<o:p></o:p>

</TD><TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #e0dfe3; WIDTH: 54.65pt; PADDING-TOP: 0in; BORDER-BOTTOM: #e0dfe3; HEIGHT: 13.3pt; BACKGROUND-COLOR: transparent" vAlign=bottom noWrap width=73>Yellow<o:p></o:p>

</TD><TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #e0dfe3; WIDTH: 51.1pt; PADDING-TOP: 0in; BORDER-BOTTOM: #e0dfe3; HEIGHT: 13.3pt; BACKGROUND-COLOR: transparent" vAlign=bottom noWrap width=68>brgr<o:p></o:p>

</TD></TR><TR style="HEIGHT: 13.3pt; mso-yfti-irow: 6"><TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #003366 1pt solid; WIDTH: 47.75pt; PADDING-TOP: 0in; BORDER-BOTTOM: #e0dfe3; HEIGHT: 13.3pt; BACKGROUND-COLOR: transparent" vAlign=bottom noWrap width=64>6<o:p></o:p>

</TD><TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #e0dfe3; WIDTH: 54.65pt; PADDING-TOP: 0in; BORDER-BOTTOM: #e0dfe3; HEIGHT: 13.3pt; BACKGROUND-COLOR: transparent" vAlign=bottom noWrap width=73><?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:eek:ffice:smarttags" /><st1:City w:st="on"><st1:place w:st="on">Orange</st1:place></st1:City><o:p></o:p>

</TD><TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #e0dfe3; WIDTH: 51.1pt; PADDING-TOP: 0in; BORDER-BOTTOM: #e0dfe3; HEIGHT: 13.3pt; BACKGROUND-COLOR: transparent" vAlign=bottom noWrap width=68>Pizza<o:p></o:p>

</TD></TR><TR style="HEIGHT: 13.3pt; mso-yfti-irow: 7; mso-yfti-lastrow: yes"><TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #003366 1pt solid; WIDTH: 47.75pt; PADDING-TOP: 0in; BORDER-BOTTOM: #e0dfe3; HEIGHT: 13.3pt; BACKGROUND-COLOR: transparent" vAlign=bottom noWrap width=64>7<o:p></o:p>

</TD><TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #e0dfe3; WIDTH: 54.65pt; PADDING-TOP: 0in; BORDER-BOTTOM: #e0dfe3; HEIGHT: 13.3pt; BACKGROUND-COLOR: transparent" vAlign=bottom noWrap width=73>white<o:p></o:p>

</TD><TD style="BORDER-RIGHT: #e0dfe3; PADDING-RIGHT: 5.4pt; BORDER-TOP: #e0dfe3; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #e0dfe3; WIDTH: 51.1pt; PADDING-TOP: 0in; BORDER-BOTTOM: #e0dfe3; HEIGHT: 13.3pt; BACKGROUND-COLOR: transparent" vAlign=bottom noWrap width=68>brgr<o:p></o:p>

</TD></TR></TBODY></TABLE><o:p></o:p>
IS there something that could be done in order to automatically filter the red blue and green clients in a macro?<o:p></o:p>

Excuse my newbiness<o:p></o:p>

Thank you<o:p></o:p>
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
you will need to use a helper column with a formula

Excel Workbook
ABCD
1ClientColorFood
21redBrgr1
32redPizza1
43bluebrgr1
54greenPizza1
65Yellowbrgr0
76OrangePizza0
87whitebrgr0
Sheet3

'
then you can use that column to filter on the "1"
 
Upvote 0

Forum statistics

Threads
1,215,465
Messages
6,124,977
Members
449,200
Latest member
Jamil ahmed

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