Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 138
Default How can I use the * wildcard in an array formula

Hi, I am trying to do a sumif in an array formula with 2 conditions.

In the second condition I am using the * wildcard to get cells that contain
the characters Buy.

The formula below entered as an array formula returns 0. I have confirmed
that the array formula is treating the * literally, as a character rather
than a wildcard.

Is there a way around this?

=SUM(IF((G$16:G$1000="Share Trade")*(H$16:H$1000="*Buy*"),I$16:I$1000))

Regards,

Bruce
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default How can I use the * wildcard in an array formula

Try the below

=SUMPRODUCT((G$16:G$1000="Share Trade")*
(ISNUMBER(SEARCH("Buy",H$16:H$1000))),I$16:I$1000)

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


"Bruce" wrote:

Hi, I am trying to do a sumif in an array formula with 2 conditions.

In the second condition I am using the * wildcard to get cells that contain
the characters Buy.

The formula below entered as an array formula returns 0. I have confirmed
that the array formula is treating the * literally, as a character rather
than a wildcard.

Is there a way around this?

=SUM(IF((G$16:G$1000="Share Trade")*(H$16:H$1000="*Buy*"),I$16:I$1000))

Regards,

Bruce

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default How can I use the * wildcard in an array formula

Hi,
You may use this formula. C17 contains Share Trade and D17 contains buy

=SUMPRODUCT(($G$16:$G$1000=C17)*(ISNUMBER(SEARCH(D 17,$H$16:$H$1000,1)))*($I$16:$I$1000))

Hope this helps.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Bruce" wrote in message
...
Hi, I am trying to do a sumif in an array formula with 2 conditions.

In the second condition I am using the * wildcard to get cells that
contain
the characters Buy.

The formula below entered as an array formula returns 0. I have confirmed
that the array formula is treating the * literally, as a character rather
than a wildcard.

Is there a way around this?

=SUM(IF((G$16:G$1000="Share Trade")*(H$16:H$1000="*Buy*"),I$16:I$1000))

Regards,

Bruce


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 138
Default How can I use the * wildcard in an array formula

Cool - thanks guys

Bruce

"Ashish Mathur" wrote:

Hi,
You may use this formula. C17 contains Share Trade and D17 contains buy

=SUMPRODUCT(($G$16:$G$1000=C17)*(ISNUMBER(SEARCH(D 17,$H$16:$H$1000,1)))*($I$16:$I$1000))

Hope this helps.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Bruce" wrote in message
...
Hi, I am trying to do a sumif in an array formula with 2 conditions.

In the second condition I am using the * wildcard to get cells that
contain
the characters Buy.

The formula below entered as an array formula returns 0. I have confirmed
that the array formula is treating the * literally, as a character rather
than a wildcard.

Is there a way around this?

=SUM(IF((G$16:G$1000="Share Trade")*(H$16:H$1000="*Buy*"),I$16:I$1000))

Regards,

Bruce


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default How can I use the * wildcard in an array formula

You are welcome.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Bruce" wrote in message
...
Cool - thanks guys

Bruce

"Ashish Mathur" wrote:

Hi,
You may use this formula. C17 contains Share Trade and D17 contains buy

=SUMPRODUCT(($G$16:$G$1000=C17)*(ISNUMBER(SEARCH(D 17,$H$16:$H$1000,1)))*($I$16:$I$1000))

Hope this helps.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Bruce" wrote in message
...
Hi, I am trying to do a sumif in an array formula with 2 conditions.

In the second condition I am using the * wildcard to get cells that
contain
the characters Buy.

The formula below entered as an array formula returns 0. I have
confirmed
that the array formula is treating the * literally, as a character
rather
than a wildcard.

Is there a way around this?

=SUM(IF((G$16:G$1000="Share Trade")*(H$16:H$1000="*Buy*"),I$16:I$1000))

Regards,

Bruce


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
Wildcard characters in countif array formulas gregtal Excel Discussion (Misc queries) 4 April 1st 09 10:27 PM
Can I use wildcard characters in array formulas devobrown Excel Worksheet Functions 1 November 7th 07 11:07 PM
Wildcard IF formula Goh Han Excel Worksheet Functions 3 April 12th 06 06:22 PM
how to use * wildcard in a sum(if((cond),range)) array formula Bruce Excel Worksheet Functions 3 February 10th 06 01:29 AM
Wildcard Character in an Array Formula Scorpvin Excel Discussion (Misc queries) 2 September 30th 05 06:44 PM


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