Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
wmclemore
 
Posts: n/a
Default Searching rows with multiple columns criteria

How do I find all rows in a range that contain a particular value in one
column and another value in a different column? e.g. Find all rows where
column B = "apple" and column C = "pie".
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bernard Liengme
 
Posts: n/a
Default Searching rows with multiple columns criteria

What do you mean by 'find' ?
To count them use =SUMPRODUCT(--(B1:B100="apple"),--(C1:C100="pie"))
To display them in some color use Format Conditional Formatting with Formula
IS
=AND(B1="apple", C1="pie")
best wishes - please come back is more is needed
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"wmclemore" wrote in message
...
How do I find all rows in a range that contain a particular value in one
column and another value in a different column? e.g. Find all rows where
column B = "apple" and column C = "pie".



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
wmclemore
 
Posts: n/a
Default Searching rows with multiple columns criteria

This is great, Bernard! As I evaluated the formula, I could not tell what
the two "--"s were accomplishing. Nor could I find "--" in the help. What
does "--" accomplish?

Thanks,
William

"Bernard Liengme" wrote:

What do you mean by 'find' ?
To count them use =SUMPRODUCT(--(B1:B100="apple"),--(C1:C100="pie"))
To display them in some color use Format Conditional Formatting with Formula
IS
=AND(B1="apple", C1="pie")
best wishes - please come back is more is needed
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"wmclemore" wrote in message
...
How do I find all rows in a range that contain a particular value in one
column and another value in a different column? e.g. Find all rows where
column B = "apple" and column C = "pie".




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bernard Liengme
 
Posts: n/a
Default Searching rows with multiple columns criteria

Glad it worked.
For SUMPRODUCT see
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

and this explains the "--":
http://mcgimpsey.com/excel/formulae/doubleneg.html

--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"wmclemore" wrote in message
...
This is great, Bernard! As I evaluated the formula, I could not tell what
the two "--"s were accomplishing. Nor could I find "--" in the help.
What
does "--" accomplish?

Thanks,
William

"Bernard Liengme" wrote:

What do you mean by 'find' ?
To count them use =SUMPRODUCT(--(B1:B100="apple"),--(C1:C100="pie"))
To display them in some color use Format Conditional Formatting with
Formula
IS
=AND(B1="apple", C1="pie")
best wishes - please come back is more is needed
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"wmclemore" wrote in message
...
How do I find all rows in a range that contain a particular value in
one
column and another value in a different column? e.g. Find all rows
where
column B = "apple" and column C = "pie".






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Marty
 
Posts: n/a
Default Searching rows with multiple columns criteria

Use an Auto Filter on the top line of your spreadsheet, where all your
headers sit. (under Data - Filter - Auto Filter). Then using the drop down
box of the data filter for column B, select "(custom)". Select Equals as you
where condition and in the value area type "apple". Select OK and this should
have narrowed down the displayed data in column B to those row containing
"apple".

Do the same for column C, i.e. use the drop down box of the data filter for
column C, select "(custom)". Select Equals as you where condition and in the
value area type "pie". Select OK and this should have narrowed down the
displayed data in column C to those row containing "pie".

Now you should only be looking at rows that have apple in column B and pie
in column C.

"wmclemore" wrote:

How do I find all rows in a range that contain a particular value in one
column and another value in a different column? e.g. Find all rows where
column B = "apple" and column C = "pie".



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
SUMIF with multiple criteria, by columns Question Excel Worksheet Functions 3 March 29th 06 05:27 AM
How can I count items in multiple columns with different criteria. ChileRed Excel Worksheet Functions 0 March 21st 06 07:15 PM
Automatically Break Multiple Rows to Two Columns chuangbl Excel Discussion (Misc queries) 1 October 4th 05 02:21 PM
multiple columns / rows to be referenced through a listbox Hru48 Excel Discussion (Misc queries) 0 July 4th 05 04:12 PM
Counting rows based on criteria in multiple cells Margaret Excel Discussion (Misc queries) 11 December 2nd 04 11:04 PM


All times are GMT +1. The time now is 07:14 PM.

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"