Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
dj dj is offline
external usenet poster
 
Posts: 92
Default ISNUMBER & SEARCH problem

Got a sheet with formula
=SUMPRODUCT(--(ISNUMBER(SEARCH("yes",raw_data!$D$2:$D$8002))*(--(ISNUMBER(SEARCH(D2,raw_data!$U$2:$U$8002))))))
- basically it is searching another sheet for number of 'yes' responses from
group of people in D2 (i.e. sales).

Works fine but is counting "sales & marketing", "web sales" etc - I only
want it to count lines that have a "yes" and "sales" only - hope that makes
sense.

Any help gratefully rec'd.

--
DJ
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default ISNUMBER & SEARCH problem

.. I only want it to count lines that have a "yes" and "sales" only

Perhaps this suffices:
=SUMPRODUCT((raw_data!$D$2:$D$8002="yes")*(raw_dat a!$U$2:$U$8002=D2))
where D2 contains: sales

aha? hit the YES below
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"DJ" wrote:
Got a sheet with formula
=SUMPRODUCT(--(ISNUMBER(SEARCH("yes",raw_data!$D$2:$D$8002))*(--(ISNUMBER(SEARCH(D2,raw_data!$U$2:$U$8002))))))
- basically it is searching another sheet for number of 'yes' responses from
group of people in D2 (i.e. sales).

Works fine but is counting "sales & marketing", "web sales" etc - I only
want it to count lines that have a "yes" and "sales" only - hope that makes
sense

  #3   Report Post  
Posted to microsoft.public.excel.misc
dj dj is offline
external usenet poster
 
Posts: 92
Default ISNUMBER & SEARCH problem

tried and it didn't work but I think I know why; I made a slight error in my
initial Q. I need to be able to count "sales" and "sale" - basically anything
need to add wildcard at end of "sale" - tried in your calc and it didn't work
- any idea?
--
DJ


"Max" wrote:

.. I only want it to count lines that have a "yes" and "sales" only


Perhaps this suffices:
=SUMPRODUCT((raw_data!$D$2:$D$8002="yes")*(raw_dat a!$U$2:$U$8002=D2))
where D2 contains: sales

aha? hit the YES below
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"DJ" wrote:
Got a sheet with formula
=SUMPRODUCT(--(ISNUMBER(SEARCH("yes",raw_data!$D$2:$D$8002))*(--(ISNUMBER(SEARCH(D2,raw_data!$U$2:$U$8002))))))
- basically it is searching another sheet for number of 'yes' responses from
group of people in D2 (i.e. sales).

Works fine but is counting "sales & marketing", "web sales" etc - I only
want it to count lines that have a "yes" and "sales" only - hope that makes
sense

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default ISNUMBER & SEARCH problem

Try

=SUMPRODUCT((raw_data!$D$2:$D$8002="yes")*(ISNUMBE R(SEARCH("sale",raw_data!$U$2:$U$8002))))

search string *sale*

If this post helps click Yes
---------------
Jacob Skaria


"DJ" wrote:

tried and it didn't work but I think I know why; I made a slight error in my
initial Q. I need to be able to count "sales" and "sale" - basically anything
need to add wildcard at end of "sale" - tried in your calc and it didn't work
- any idea?
--
DJ


"Max" wrote:

.. I only want it to count lines that have a "yes" and "sales" only


Perhaps this suffices:
=SUMPRODUCT((raw_data!$D$2:$D$8002="yes")*(raw_dat a!$U$2:$U$8002=D2))
where D2 contains: sales

aha? hit the YES below
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"DJ" wrote:
Got a sheet with formula
=SUMPRODUCT(--(ISNUMBER(SEARCH("yes",raw_data!$D$2:$D$8002))*(--(ISNUMBER(SEARCH(D2,raw_data!$U$2:$U$8002))))))
- basically it is searching another sheet for number of 'yes' responses from
group of people in D2 (i.e. sales).

Works fine but is counting "sales & marketing", "web sales" etc - I only
want it to count lines that have a "yes" and "sales" only - hope that makes
sense

  #5   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default ISNUMBER & SEARCH problem

If source cells could contain either of these 2 words:
.. need to be able to count "sales" and "sale"


My ventu
=SUMPRODUCT((raw_data!$D$2:$D$8="yes")*(ISNUMBER(M ATCH(TRIM(raw_data!$U$2:$U$8),{"sale","sales"},0)) ))

Test it out ..
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"DJ" wrote:
tried and it didn't work but I think I know why; I made a slight error in my
initial Q. I need to be able to count "sales" and "sale" - basically anything
need to add wildcard at end of "sale" - tried in your calc and it didn't work
- any idea?


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
Combine: ISNUMBER(SEARCH( and EXACT( ? nastech Excel Discussion (Misc queries) 5 May 9th 23 03:42 AM
SUMPRODUCT + ISNUMBER(SEARCH) + Empty Cells BLUV Excel Discussion (Misc queries) 4 January 30th 09 05:47 AM
Limit to nested IF(ISNUMBER(SEARCH)) functions? Jonathan Horvath Excel Worksheet Functions 22 June 25th 07 08:04 PM
problem with =isnumber(match(right(... Luke Excel Worksheet Functions 17 September 25th 05 01:01 AM
Problem with Array Formulas and ISNUMBER Henrik Excel Worksheet Functions 1 February 10th 05 12:31 AM


All times are GMT +1. The time now is 04:08 AM.

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

About Us

"It's about Microsoft Excel"