Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 81
Default Sumproduct + wildcard

Any body able to help?
I have a summary sheet looking up from a data sheet
I need to look up a company name and produce a value of work at a defined
stage
The problem is that a single company can sometimes work in partnership with
one or more other companies - all hose company names are recorded in the same
cell in the data sheet. I use range names for contractors; value; status
I use the following function
SUMIF(contractors,"*" & A4 &"*",value)
which gives me the total value of the contractors work, even when in
partnership

I want to use
SUMPRODUCT(--(status=D$2),--(contractors=$A4),value)
to give me a value at a stage (status) - but I also need to expand the
contractors=$A$4 to include wildcard ie "*" & $A$4 "*", but it does not work
when I insert the wildcard elements - any ideas on what I am missing?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Sumproduct + wildcard

One way, try something like this:
=SUMPRODUCT((status=D$2)*(ISNUMBER(FIND($A$4,contr actors)))*($A$4<""),value)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Saintsman" wrote:
Any body able to help?
I have a summary sheet looking up from a data sheet
I need to look up a company name and produce a value of work at a defined
stage
The problem is that a single company can sometimes work in partnership with
one or more other companies - all hose company names are recorded in the same
cell in the data sheet. I use range names for contractors; value; status
I use the following function
SUMIF(contractors,"*" & A4 &"*",value)
which gives me the total value of the contractors work, even when in
partnership

I want to use
SUMPRODUCT(--(status=D$2),--(contractors=$A4),value)
to give me a value at a stage (status) - but I also need to expand the
contractors=$A$4 to include wildcard ie "*" & $A$4 "*", but it does not work
when I insert the wildcard elements - any ideas on what I am missing?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 81
Default Sumproduct + wildcard

Max
This works OK - thanks very much

"Max" wrote:

One way, try something like this:
=SUMPRODUCT((status=D$2)*(ISNUMBER(FIND($A$4,contr actors)))*($A$4<""),value)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Saintsman" wrote:
Any body able to help?
I have a summary sheet looking up from a data sheet
I need to look up a company name and produce a value of work at a defined
stage
The problem is that a single company can sometimes work in partnership with
one or more other companies - all hose company names are recorded in the same
cell in the data sheet. I use range names for contractors; value; status
I use the following function
SUMIF(contractors,"*" & A4 &"*",value)
which gives me the total value of the contractors work, even when in
partnership

I want to use
SUMPRODUCT(--(status=D$2),--(contractors=$A4),value)
to give me a value at a stage (status) - but I also need to expand the
contractors=$A$4 to include wildcard ie "*" & $A$4 "*", but it does not work
when I insert the wildcard elements - any ideas on what I am missing?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Sumproduct + wildcard

Good to hear that, Saintsman !
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Saintsman" wrote in message
...
Max
This works OK - thanks very much



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, COUNTIF and wildcard Epinn Excel Worksheet Functions 3 November 2nd 06 03:16 AM
Wildcard character inside sumproduct andy62 Excel Worksheet Functions 4 November 1st 06 09:46 AM
wildcard in sumproduct? cjjoo Excel Worksheet Functions 2 October 17th 05 01:08 PM
SUMPRODUCT with Wildcard JerryS Excel Worksheet Functions 7 June 18th 05 01:45 PM
Sumproduct with Wildcard * Jim Excel Worksheet Functions 5 April 5th 05 05:56 PM


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