#1   Report Post  
RB
 
Posts: n/a
Default Sumproduct Wildcard

=SUMPRODUCT(--(C6:C20=38473)*(C6:C20<=38503),--(D6:D20="food"),F6:F20)

Expert,
Above is the formula i am using, however it will only return a value when
only 'food' is contained in the cell. With this formula I have built a simple
check-book for my own personal finance. what can i do to this formula to look
for 'food' in cells such as ' Giant Food Store' of 'Food Lion'?

Thank you,
RB
  #2   Report Post  
Max
 
Posts: n/a
Default

One way ..

Try replacing: --(D6:D20="food")

with: --ISNUMBER(SEARCH("food",D6:D20)

in the formula
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"RB" wrote in message
...
=SUMPRODUCT(--(C6:C20=38473)*(C6:C20<=38503),--(D6:D20="food"),F6:F20)

Expert,
Above is the formula i am using, however it will only return a value when
only 'food' is contained in the cell. With this formula I have built a

simple
check-book for my own personal finance. what can i do to this formula to

look
for 'food' in cells such as ' Giant Food Store' of 'Food Lion'?

Thank you,
RB



  #3   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

=SUMPRODUCT(--(C6:C20=38473),--(C6:C20<=38503),
--ISNUMBER(FIND("food",D6:D20)), F6:F20)

In article ,
"RB" wrote:

=SUMPRODUCT(--(C6:C20=38473)*(C6:C20<=38503),--(D6:D20="food"),F6:F20)

Expert,
Above is the formula i am using, however it will only return a value when
only 'food' is contained in the cell. With this formula I have built a simple
check-book for my own personal finance. what can i do to this formula to look
for 'food' in cells such as ' Giant Food Store' of 'Food Lion'?

Thank you,
RB

  #4   Report Post  
Max
 
Posts: n/a
Default

Thought the OP wanted it case-insensitive <g, as per line
for 'food' in cells such as ' Giant Food Store' of 'Food Lion'?

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----


  #5   Report Post  
RB
 
Posts: n/a
Default

Thanks alot.... i tried using Find as sugested by JE ( and thank you as
well!),but SEARCH seemed to work great!!!!

"Max" wrote:

One way ..

Try replacing: --(D6:D20="food")

with: --ISNUMBER(SEARCH("food",D6:D20)

in the formula
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"RB" wrote in message
...
=SUMPRODUCT(--(C6:C20=38473)*(C6:C20<=38503),--(D6:D20="food"),F6:F20)

Expert,
Above is the formula i am using, however it will only return a value when
only 'food' is contained in the cell. With this formula I have built a

simple
check-book for my own personal finance. what can i do to this formula to

look
for 'food' in cells such as ' Giant Food Store' of 'Food Lion'?

Thank you,
RB






  #6   Report Post  
JE McGimpsey
 
Posts: n/a
Default

In article ,
"Max" wrote:

Thought the OP wanted it case-insensitive <g, as per line
for 'food' in cells such as ' Giant Food Store' of 'Food Lion'?


True - should use SEARCH instead of FIND. Thanks for the correction.
  #7   Report Post  
Max
 
Posts: n/a
Default

You're welcome !
SEARCH is case-insensitive, while FIND is
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"RB" wrote in message
...
Thanks alot.... i tried using Find as sugested by JE ( and thank you as
well!),but SEARCH seemed to work great!!!!



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 with Wildcard * Jim Excel Worksheet Functions 5 April 5th 05 05:56 PM
sumproduct causing memory errors? dave Excel Worksheet Functions 1 March 3rd 05 09:31 AM
Can I reference =, <, or > sign in SUMPRODUCT BobT Excel Discussion (Misc queries) 7 February 16th 05 01:58 PM
Sumproduct function not working Scott Summerlin Excel Worksheet Functions 12 December 4th 04 05:15 AM
adding two sumproduct formulas together ski2004_2005 Excel Worksheet Functions 1 November 12th 04 09:08 PM


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