Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I need to find a solution for the following formula to be used in an Excel
worksheet in Excel 2003: =SUM((('GCP Vendors'!L3:L999)="*Other*")*(('GCP Vendors'!O3:O999)= "Consultation")) I need to count the number of times a cell contains the partial string "Other" in the L column and then sum up how many of these strings are related to "Consultation" in the O column. I can't figure out how to substitute for "*Other*" in an array. Thanks, GP |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
One way is to use
=isnumber(search(...)) =SUMPRODUCT(--(ISNUMBER(SEARCH("other",'gcp vendors'!L3:L999))), --('gcp vendors'!O3:O999="Consultation")) Using =sumproduct() means that I don't have use ctrl-shift-enter to enter the formula. And I like the -- and commas syntax. But =SUM((ISNUMBER(SEARCH("other",'gcp vendors'!L3:L999))), *('gcp vendors'!O3:O999="Consultation")) will work as an array formula. Ps. If you want to match case, then use =find() instead of =search(). Another wildcard and array problem wrote: I need to find a solution for the following formula to be used in an Excel worksheet in Excel 2003: =SUM((('GCP Vendors'!L3:L999)="*Other*")*(('GCP Vendors'!O3:O999)= "Consultation")) I need to count the number of times a cell contains the partial string "Other" in the L column and then sum up how many of these strings are related to "Consultation" in the O column. I can't figure out how to substitute for "*Other*" in an array. Thanks, GP -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try
=SUMPRODUCT(--(ISNUMBER(FIND("Other",L3:L999))),--(O3:O999="Consultation")) Hope this helps, Hutch "Another wildcard and array problem" wrote: I need to find a solution for the following formula to be used in an Excel worksheet in Excel 2003: =SUM((('GCP Vendors'!L3:L999)="*Other*")*(('GCP Vendors'!O3:O999)= "Consultation")) I need to count the number of times a cell contains the partial string "Other" in the L column and then sum up how many of these strings are related to "Consultation" in the O column. I can't figure out how to substitute for "*Other*" in an array. Thanks, GP |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Wildcard not working in SumProduct Array | Excel Discussion (Misc queries) | |||
How can I use the * wildcard in an array formula | Excel Worksheet Functions | |||
VB Solution for a INDEX Array Problem | Excel Discussion (Misc queries) | |||
Possible Array Solution Needed? | Excel Discussion (Misc queries) | |||
Wildcard Character in an Array Formula | Excel Discussion (Misc queries) |