LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Excel SUMPRODUCT, but matching like COUNTIF

Short Version:

how do I do:
=SUMPRODUCT((B$2!$E$8:$E$100) * (B$2!$F$8:$F$100 = "*"&$A2&"*"))

Long Version:
How do I count the occurances or a sub-string in a range of cells of
strings, with a weighting.

COUNTIF does the occurances but, and SUMPRODUCT does the weighting, but how
do I combine them?

eg.

a|b|c, 4
a|c, 2
c, 4

gives me:

6 a's
10 c's
4 b's

I would also like to do this across different sheets (b$2! bit in the short
version), but this is less important as I can just change to formula slightly.

--
Phil Standen
 
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
matching full name to 'two column' name using sumproduct Carrach Excel Worksheet Functions 9 May 24th 10 02:32 PM
SUMPRODUCT COUNTIF (Again) adrian007uk Excel Worksheet Functions 3 February 1st 10 02:54 AM
sumproduct with partial charcter matching Matt Excel Worksheet Functions 3 June 20th 09 03:30 AM
Sumproduct or countif or both... peterpeter Excel Discussion (Misc queries) 3 April 2nd 08 04:54 AM
SumProduct or CountIf Kim Excel Worksheet Functions 7 July 9th 05 12:04 AM


All times are GMT +1. The time now is 12:32 AM.

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"