Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35
Default Wildcards with Sumproduct?

Hi, can I use wildcards with sumproduct?

eg

3A22 8
3B11 6
3B12 12

Would like agrregate 3B11 & 3B12

3B = 18

Thanks




  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default Wildcards with Sumproduct?

Not wild card, but you can use regular string functions. Try this:
=SUMPRODUCT(--(LEFT(A1:A3,2)="3B"),--(B1:B3))

"Hilton" wrote:

Hi, can I use wildcards with sumproduct?

eg

3A22 8
3B11 6
3B12 12

Would like agrregate 3B11 & 3B12

3B = 18

Thanks





  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Wildcards with Sumproduct?

In this case you would use a condition like:

(LEFT(A1:A100,2)="3B")

so you probably want something like:

=SUMPRODUCT(--(LEFT(A1:A100,2)="3B"),B1:B100)

Hope this helps.

Pete

On Aug 29, 9:29*am, "Hilton" wrote:
Hi, can I use wildcards with sumproduct?

eg

3A22 * *8
3B11 * *6
3B12 * *12

Would like agrregate 3B11 & 3B12

3B = 18

Thanks


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Wildcards with Sumproduct?

What's wrong with

=SUMIF(A:A,"3B*",B:B)

Not a SUMPRODUCT in sight

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Hilton" wrote in message
...
Hi, can I use wildcards with sumproduct?

eg

3A22 8
3B11 6
3B12 12

Would like agrregate 3B11 & 3B12

3B = 18

Thanks






  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Wildcards with Sumproduct?

Well, Bob, the OP did specifically ask about sumproduct !! <bg

Pete

On Aug 29, 10:21*am, "Bob Phillips" wrote:
What's wrong with

=SUMIF(A:A,"3B*",B:B)

Not a SUMPRODUCT in sight

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Hilton" wrote in message

...



Hi, can I use wildcards with sumproduct?


eg


3A22 * *8
3B11 * *6
3B12 * *12


Would like agrregate 3B11 & 3B12


3B = 18


Thanks- Hide quoted text -


- Show quoted text -




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Wildcards with Sumproduct?

He did Pete, but we can set him right <g

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Pete_UK" wrote in message
...
Well, Bob, the OP did specifically ask about sumproduct !! <bg

Pete

On Aug 29, 10:21 am, "Bob Phillips" wrote:
What's wrong with

=SUMIF(A:A,"3B*",B:B)

Not a SUMPRODUCT in sight

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"Hilton" wrote in message

...



Hi, can I use wildcards with sumproduct?


eg


3A22 8
3B11 6
3B12 12


Would like agrregate 3B11 & 3B12


3B = 18


Thanks- Hide quoted text -


- Show quoted text -



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
Sumproduct if two conditions are met but using wildcards? Madduck Excel Discussion (Misc queries) 5 September 24th 07 06:20 AM
Sumproduct with wildcards Saintsman Excel Worksheet Functions 3 January 18th 07 02:51 PM
sumproduct won't accept wildcards dcd123 Excel Worksheet Functions 1 September 20th 05 02:40 PM
Sumproduct and wildcards vipa2000 Excel Worksheet Functions 18 July 31st 05 09:24 PM
Wildcards with SumProduct pomalley Excel Worksheet Functions 7 March 24th 05 03:01 PM


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