#1   Report Post  
Posted to microsoft.public.excel.misc
JackH1976
 
Posts: n/a
Default Wildcard Problem....


I work at an Insurance Agency and am having a problem with an Excel
formula for our application log. Here is the formula that is returning
a zero value to me:

=SUMPRODUCT((B4:B200="Hertvik")*(J4:J200="PL*")*(E 4:E200))

Column B contains our different agencies. In this instance I want all
policies with the "Hertvik" agency. Column J contains policy types
(i.e. PL Auto, PL Home, CL BOP, etc.). I want to sum the numbers in
column E for all of the policies with the Hertvik agency and start
withe the policy type "PL". However, the * wildcard is not working.
If I type in "PL Auto" instead of "PL*" it works fine. Is there a
reason that the wildcard is not working?

Thanks!


--
JackH1976
------------------------------------------------------------------------
JackH1976's Profile: http://www.excelforum.com/member.php...o&userid=29922
View this thread: http://www.excelforum.com/showthread...hreadid=496164

  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Wildcard Problem....

=SUMPRODUCT(--(B4:B200="Hertvik"),--(left(J4:J200,2)="PL*"),(E4:E200))

=sumproduct() likes to work with numbers.

The -- converts True's and False's to 1's and 0's.

JackH1976 wrote:

I work at an Insurance Agency and am having a problem with an Excel
formula for our application log. Here is the formula that is returning
a zero value to me:

=SUMPRODUCT((B4:B200="Hertvik")*(J4:J200="PL*")*(E 4:E200))

Column B contains our different agencies. In this instance I want all
policies with the "Hertvik" agency. Column J contains policy types
(i.e. PL Auto, PL Home, CL BOP, etc.). I want to sum the numbers in
column E for all of the policies with the Hertvik agency and start
withe the policy type "PL". However, the * wildcard is not working.
If I type in "PL Auto" instead of "PL*" it works fine. Is there a
reason that the wildcard is not working?

Thanks!

--
JackH1976
------------------------------------------------------------------------
JackH1976's Profile: http://www.excelforum.com/member.php...o&userid=29922
View this thread: http://www.excelforum.com/showthread...hreadid=496164


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
Domenic
 
Posts: n/a
Default Wildcard Problem....

Try...

=SUMPRODUCT((B4:B200="Hertvik")*(LEFT(J4:J200,2)=" PL")*(E4:E200))

or

=SUMPRODUCT(--(B4:B200="Hertvik"),--(LEFT(J4:J200,2)="PL"),E4:E200)

The latter is somewhat more efficient.

Hope this helps!

In article ,
JackH1976
wrote:

I work at an Insurance Agency and am having a problem with an Excel
formula for our application log. Here is the formula that is returning
a zero value to me:

=SUMPRODUCT((B4:B200="Hertvik")*(J4:J200="PL*")*(E 4:E200))

Column B contains our different agencies. In this instance I want all
policies with the "Hertvik" agency. Column J contains policy types
(i.e. PL Auto, PL Home, CL BOP, etc.). I want to sum the numbers in
column E for all of the policies with the Hertvik agency and start
withe the policy type "PL". However, the * wildcard is not working.
If I type in "PL Auto" instead of "PL*" it works fine. Is there a
reason that the wildcard is not working?

Thanks!

  #4   Report Post  
Posted to microsoft.public.excel.misc
Ragdyer
 
Posts: n/a
Default Wildcard Problem....

Dave had a small typo.

He really meant:

=SUMPRODUCT(--(B4:B200="Hertvik"),--(LEFT(J4:J200,2)="PL"),(E4:E200))

--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Dave Peterson" wrote in message
...
=SUMPRODUCT(--(B4:B200="Hertvik"),--(left(J4:J200,2)="PL*"),(E4:E200))

=sumproduct() likes to work with numbers.

The -- converts True's and False's to 1's and 0's.

JackH1976 wrote:

I work at an Insurance Agency and am having a problem with an Excel
formula for our application log. Here is the formula that is returning
a zero value to me:

=SUMPRODUCT((B4:B200="Hertvik")*(J4:J200="PL*")*(E 4:E200))

Column B contains our different agencies. In this instance I want all
policies with the "Hertvik" agency. Column J contains policy types
(i.e. PL Auto, PL Home, CL BOP, etc.). I want to sum the numbers in
column E for all of the policies with the Hertvik agency and start
withe the policy type "PL". However, the * wildcard is not working.
If I type in "PL Auto" instead of "PL*" it works fine. Is there a
reason that the wildcard is not working?

Thanks!

--
JackH1976
------------------------------------------------------------------------
JackH1976's Profile:

http://www.excelforum.com/member.php...o&userid=29922
View this thread:

http://www.excelforum.com/showthread...hreadid=496164

--

Dave Peterson


  #5   Report Post  
Posted to microsoft.public.excel.misc
JackH1976
 
Posts: n/a
Default Wildcard Problem....


Thanks a lot! That works!


--
JackH1976
------------------------------------------------------------------------
JackH1976's Profile: http://www.excelforum.com/member.php...o&userid=29922
View this thread: http://www.excelforum.com/showthread...hreadid=496164



  #6   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Wildcard Problem....

Thanks for the correction, RD.

Ragdyer wrote:

Dave had a small typo.

He really meant:

=SUMPRODUCT(--(B4:B200="Hertvik"),--(LEFT(J4:J200,2)="PL"),(E4:E200))

--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Dave Peterson" wrote in message
...
=SUMPRODUCT(--(B4:B200="Hertvik"),--(left(J4:J200,2)="PL*"),(E4:E200))

=sumproduct() likes to work with numbers.

The -- converts True's and False's to 1's and 0's.

JackH1976 wrote:

I work at an Insurance Agency and am having a problem with an Excel
formula for our application log. Here is the formula that is returning
a zero value to me:

=SUMPRODUCT((B4:B200="Hertvik")*(J4:J200="PL*")*(E 4:E200))

Column B contains our different agencies. In this instance I want all
policies with the "Hertvik" agency. Column J contains policy types
(i.e. PL Auto, PL Home, CL BOP, etc.). I want to sum the numbers in
column E for all of the policies with the Hertvik agency and start
withe the policy type "PL". However, the * wildcard is not working.
If I type in "PL Auto" instead of "PL*" it works fine. Is there a
reason that the wildcard is not working?

Thanks!

--
JackH1976
------------------------------------------------------------------------
JackH1976's Profile:

http://www.excelforum.com/member.php...o&userid=29922
View this thread:

http://www.excelforum.com/showthread...hreadid=496164

--

Dave Peterson


--

Dave Peterson
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
Urgent Help Required on Excel Macro Problem Sachin Shah Excel Discussion (Misc queries) 1 August 17th 05 06:26 AM
Problem With Reference Update Egon Excel Worksheet Functions 17 July 16th 05 05:45 AM
Copy an Drag cell Formula Problem Nat Excel Discussion (Misc queries) 1 June 20th 05 03:24 PM
problem office assistant R.VENKATARAMAN Excel Discussion (Misc queries) 0 June 15th 05 06:22 AM
Freeze Pane problem in shared workbooks JM Excel Discussion (Misc queries) 1 February 1st 05 12:04 AM


All times are GMT +1. The time now is 08:18 PM.

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"