Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Max
 
Posts: n/a
Default

the store names are in one column on sheet 2 as
acme-south, acme-north,... i need a count of all the acme stores
regardles of the south north whatever


Assume the names are in A2:A100 in Sheet2
In say, Sheet3, put in B2:
=SUMPRODUCT(--ISNUMBER(SEARCH("acme",Sheet2!A2:A100)))
This gives you the count of all "acme" stores
Note that case insensitivity is presumed (e.g. acme = ACME)

.. in a seperate column there are numbers,
so i need to find all the acme stores with that specific number... i.e.
JEWEL-OSCO 3003 303 HOLMES AVE CLARENDON HILLS IL 60514 DU PAGE 8904 003
ok thats how the columns look...
so on a seperate page, i need to find out how many stores are in the
JEWEL area no matter what the -osco or whatever, and that fall in 003.


Assume this whole lot of text:
JEWEL-OSCO 3003 303 HOLMES AVE CLARENDON HILLS IL 60514 DU PAGE 8904 003

is in Sheet2, in a single cell B2
(with other similar text in B3, B4, .. up to B100)

In Sheet3, put in C2:

=SUMPRODUCT((ISNUMBER(SEARCH("acme",Sheet2!A2:A100 )))*(ISNUMBER(SEARCH("jewe
l",Sheet2!B2:B100)))*(RIGHT(Sheet2!B2:B100,3)="003 "))

This gives you the count of all "acme" stores in the "JEWEL" area that fall
in "003". Note that case insensitivity is presumed (e.g. JEWEL = jewel), and
the "003" is presumed to refer to the rightmost 3 digits at the end of the
text in B2 (or in col B) in Sheet2
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----


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
Counting Across Multiple Ranges, Based on Condition Stacy Excel Worksheet Functions 2 June 22nd 05 08:35 PM
count duplicate (or, inversely, unique) entries, but based on a condition markx Excel Worksheet Functions 3 March 8th 05 06:57 PM
Condition IF Jeff Excel Discussion (Misc queries) 3 February 15th 05 10:19 PM
Add condition to formula Pat Excel Worksheet Functions 0 November 16th 04 12:23 PM
External reference as a condition Ingeniero1 Excel Worksheet Functions 2 November 12th 04 07:10 PM


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