LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 117
Default Cell Contains Value

Hi all,
I have a spreadsheet that looks like this:


A B
1 [drop down list]
..
..
4 Product Name Location
5 Product 1 Wharehouse - London
6 Product 1 Storage Room - London Office
7 Product 2 Goerge Street
8 Product 1 London Wharehouse

cell A1 contains a drop down list that has the following items: London,
Paris, NY
I would like to write a formula to count the numbers of product 1 where the
location CONTAINS the word listed in cell A1. For example: if the user
selects the word 'London' in cell A1, i want to be able to count the number
of product 1 located in London. In the example above the answer is 3.
I'm using the SumProduct function but i don't know how to refer to 'cell
contains':

=SUMPRODUCT(--(A5:A8="Product1"),--(B5:B8 "contains the word in cell A1"))

i tried using the wild card (*) but i didn't seem to get it right yet. Any
help will be much appreciated.
I'm using Excel 2003.

Tendresse

 
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
How can I copy a value from a cell and paste it into another cell while adding it to the previous value in that cell [email protected] Excel Worksheet Functions 2 November 7th 07 09:39 AM
Inputting cell value from source cell based on value in adjacent cell. michaelberrier Excel Discussion (Misc queries) 3 December 9th 06 09:16 PM
cell data not validated if navigating cell to cell with mouse LoveThatMouse Excel Worksheet Functions 6 May 21st 06 09:03 PM
How to create/run "cell A equals Cell B put Cell C info in Cell D abmb161 Excel Discussion (Misc queries) 5 January 26th 06 06:36 PM
Cell Formula reference to cell Based On third Cell Content Gabriel Excel Discussion (Misc queries) 0 February 11th 05 05:35 AM


All times are GMT +1. The time now is 10:59 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"