Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default multiple criteria in one column VBA urgent need!


hi,

i need a vba code

for simple purposes, i create a worksheet

in column A : Company Names
in column B: The sector, company belongs
in column C: Net sales

i want to filter net sales according to multiple criteria

if the sector is food and beverage then show the row if the net sale
above 200
if the sector is Textile then show the row if the net sales above 60
or any other criteria

how do you set multiple criteria in the same column?

thanx in advanc

+-------------------------------------------------------------------
|Filename: sectordata.zip
|Download: http://www.excelforum.com/attachment.php?postid=3697
+-------------------------------------------------------------------

--
barkin
-----------------------------------------------------------------------
barkiny's Profile: http://www.excelforum.com/member.php...fo&userid=2039
View this thread: http://www.excelforum.com/showthread.php?threadid=39639

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 233
Default multiple criteria in one column VBA urgent need!

No need for VBA.

you just nee Advanced Filter on the Data/Filter menu.

Dm Unseen

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default multiple criteria in one column VBA urgent need!

Hi Barkiny,

As DM Unseen says, use the Advanced Filter feature.

To employ multiple criteria for a single field, simply use multiple criteria
rows.

If this is not immediately obvious, see Debra Dalgleish at:

http://www.contextures.com/xladvfilter01.html

See particularly, the section entitled: 'Setting up the Criteria Range'

---
Regards,
Norman



"barkiny" wrote in
message ...

hi,

i need a vba code

for simple purposes, i create a worksheet

in column A : Company Names
in column B: The sector, company belongs
in column C: Net sales

i want to filter net sales according to multiple criteria

if the sector is food and beverage then show the row if the net sales
above 200
if the sector is Textile then show the row if the net sales above 600
or any other criteria

how do you set multiple criteria in the same column?

thanx in advance


+-------------------------------------------------------------------+
|Filename: sectordata.zip |
|Download: http://www.excelforum.com/attachment.php?postid=3697 |
+-------------------------------------------------------------------+

--
barkiny
------------------------------------------------------------------------
barkiny's Profile:
http://www.excelforum.com/member.php...o&userid=20397
View this thread: http://www.excelforum.com/showthread...hreadid=396392



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Row and Column Criteria wade04 Excel Worksheet Functions 8 February 12th 09 11:55 PM
How do I sum column D and F based on multiple column criteria? sharon t Excel Worksheet Functions 12 August 20th 07 03:44 PM
FILTERATION ON MULTIPLE CRITERIA OF A COLUMN FARAZ QURESHI Excel Discussion (Misc queries) 2 May 31st 07 12:46 PM
Multiple Criteria in same Column Charlene Excel Worksheet Functions 9 February 19th 07 06:04 PM
multiple criteria in one column Barb Excel Worksheet Functions 1 December 3rd 04 07:49 PM


All times are GMT +1. The time now is 11:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"