Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Fresh pair of Eyes required

Hi,
with the help of some excellent feedback from the User Group I have
created the following formula but I am not getting the expected
results

The formula works finre until I put the 2nd search for a particular
word..
eg
This works fine

=SUMPRODUCT((('Grid data'!B2:B4557=A2)*(ISERROR(SEARCH("shine*",'Grid
data'!D2:D4557)*((('Grid data'!F2:F4557="NS")+('Grid data'!
F2:F4557="C")+(TRIM('Grid data'!
F2:F4557)="")))))))

And counts correctly, ignoring anything with SHINE in column D and
only including, blanks, C and NS values.

The following formula I am not getting the right results. It appears
to be ignoring the search for "NON" in column E.

=SUMPRODUCT((('Grid data'!B2:B4557=A2)*(ISERROR(SEARCH("shine*",'Grid
data'!D2:D4557)+(SEARCH( "non*",'Grid data'!E2:E4557))*((('Grid data'!
F2:F4557="NS")+('Grid data'!F2:F4557="C")+(TRIM('Grid data'!
F2:F4557)="")))))))


Paul
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Fresh pair of Eyes required

Try it like this:

((ISERROR(SEARCH("shine",rng)))+(ISERROR(SEARCH("n on",rng)))0)

The wildcards weren't really doing anything.


--
Biff
Microsoft Excel MVP


wrote in message
...
Hi,
with the help of some excellent feedback from the User Group I have
created the following formula but I am not getting the expected
results

The formula works finre until I put the 2nd search for a particular
word..
eg
This works fine

=SUMPRODUCT((('Grid data'!B2:B4557=A2)*(ISERROR(SEARCH("shine*",'Grid
data'!D2:D4557)*((('Grid data'!F2:F4557="NS")+('Grid data'!
F2:F4557="C")+(TRIM('Grid data'!
F2:F4557)="")))))))

And counts correctly, ignoring anything with SHINE in column D and
only including, blanks, C and NS values.

The following formula I am not getting the right results. It appears
to be ignoring the search for "NON" in column E.

=SUMPRODUCT((('Grid data'!B2:B4557=A2)*(ISERROR(SEARCH("shine*",'Grid
data'!D2:D4557)+(SEARCH( "non*",'Grid data'!E2:E4557))*((('Grid data'!
F2:F4557="NS")+('Grid data'!F2:F4557="C")+(TRIM('Grid data'!
F2:F4557)="")))))))


Paul



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Fresh pair of Eyes required

Paul,
Guess this earlier reply (in.misc) didn't quite take care of it ?
--------------
Maybe try changing this part of it in your expression to:
... *(ISERROR(SEARCH("shine*",'grid
data'!D2:D4557))*(ISERROR(SEARCH("non*",'grid data'!E2:E4557))* ...
-------------
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Fresh pair of Eyes required

Not *exactly* sure of what you're trying for,
but...maybe this:

This formula tests if:
((Col_B=A2 and Col_D does NOT contain "shine") OR Col_E contains "non")
AND
Col_F is any of "NS","C", or ""

(in sections for readability):
=SUMPRODUCT(--(
((('Grid data'!B2:B4557=A2)*ISERROR(SEARCH("SHINE",'Grid data'!D2:D4557))+
ISNUMBER(SEARCH("NON",'Grid data'!E2:E4557)))0)*
(TRIM('Grid data'!F2:F4557)={"NS","C",""})0))


Does that help?

--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)


wrote in message
...
Hi,
with the help of some excellent feedback from the User Group I have
created the following formula but I am not getting the expected
results

The formula works finre until I put the 2nd search for a particular
word..
eg
This works fine

=SUMPRODUCT((('Grid data'!B2:B4557=A2)*(ISERROR(SEARCH("shine*",'Grid
data'!D2:D4557)*((('Grid data'!F2:F4557="NS")+('Grid data'!
F2:F4557="C")+(TRIM('Grid data'!
F2:F4557)="")))))))

And counts correctly, ignoring anything with SHINE in column D and
only including, blanks, C and NS values.

The following formula I am not getting the right results. It appears
to be ignoring the search for "NON" in column E.

=SUMPRODUCT((('Grid data'!B2:B4557=A2)*(ISERROR(SEARCH("shine*",'Grid
data'!D2:D4557)+(SEARCH( "non*",'Grid data'!E2:E4557))*((('Grid data'!
F2:F4557="NS")+('Grid data'!F2:F4557="C")+(TRIM('Grid data'!
F2:F4557)="")))))))


Paul







  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Fresh pair of Eyes required

On Mar 14, 10:17 pm, "Ron Coderre"
wrote:
Not *exactly* sure of what you're trying for,
but...maybe this:

This formula tests if:
((Col_B=A2 and Col_D does NOT contain "shine") OR Col_E contains "non")
AND
Col_F is any of "NS","C", or ""

(in sections for readability):
=SUMPRODUCT(--(
((('Grid data'!B2:B4557=A2)*ISERROR(SEARCH("SHINE",'Grid data'!D2:D4557))+
ISNUMBER(SEARCH("NON",'Grid data'!E2:E4557)))0)*
(TRIM('Grid data'!F2:F4557)={"NS","C",""})0))

Does that help?

--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

wrote in message

...

Hi,
with the help of some excellent feedback from the User Group I have
created the following formula but I am not getting the expected
results


The formula works finre until I put the 2nd search for a particular
word..
eg
This works fine


=SUMPRODUCT((('Grid data'!B2:B4557=A2)*(ISERROR(SEARCH("shine*",'Grid
data'!D2:D4557)*((('Grid data'!F2:F4557="NS")+('Grid data'!
F2:F4557="C")+(TRIM('Grid data'!
F2:F4557)="")))))))


And counts correctly, ignoring anything with SHINE in column D and
only including, blanks, C and NS values.


The following formula I am not getting the right results. It appears
to be ignoring the search for "NON" in column E.


=SUMPRODUCT((('Grid data'!B2:B4557=A2)*(ISERROR(SEARCH("shine*",'Grid
data'!D2:D4557)+(SEARCH( "non*",'Grid data'!E2:E4557))*((('Grid data'!
F2:F4557="NS")+('Grid data'!F2:F4557="C")+(TRIM('Grid data'!
F2:F4557)="")))))))


Paul


Thanks Gents, all good now Paul


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
My eyes Are Tiered, Forehead Bruised, My Desk Dented.!! Help??? KG121953 Excel Discussion (Misc queries) 1 October 5th 07 08:03 PM
count and return pair numbers Sly Excel Worksheet Functions 14 July 28th 07 04:51 PM
Fonts Too Small or Eyes Too Big? Me2Ewe New Users to Excel 1 January 12th 06 06:33 AM
How do pair different data series. kurt Charts and Charting in Excel 1 June 8th 05 03:10 AM
in excel, how do I find which value doesn't have a pair? curiousjackie Excel Discussion (Misc queries) 3 December 17th 04 05:43 PM


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