#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default SumIf Formula

Hi,

I'm trying to find the appropriate formula for my needs. I need a formula
like SumIf, but the logical test only picks up bits of the text in a cell,
not the whole cell. e.g. If I wanted the sum of all transactions at PnP
store, I could enter a sumif formula and it would total all the corresponding
cells that had PnP in the corresponding cell even if there was other text in
the cell.

I hope that makes sense.

Simon
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default SumIf Formula

Using a structure like
=Sumproduct(--(CriteriaCheck),(NumbersToSum))

We can produce something like:
=SUMPRODUCT(--ISNUMBER(SEARCH("Find me",A2:A1000)),(B2:B1000))

Note that unless using XL 2007, you can't callout entire columns in
sumproduct. (but you can callout entire rows...go figure!)
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"SimonM" wrote:

Hi,

I'm trying to find the appropriate formula for my needs. I need a formula
like SumIf, but the logical test only picks up bits of the text in a cell,
not the whole cell. e.g. If I wanted the sum of all transactions at PnP
store, I could enter a sumif formula and it would total all the corresponding
cells that had PnP in the corresponding cell even if there was other text in
the cell.

I hope that makes sense.

Simon

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default SumIf Formula

Try it like this...

=SUMIF(A1:A10,"*PnP*",B1:B10)

Or, using a cell to hold the criteria:

D1 = PnP

=SUMIF(A1:A10,"*"&D1&"*",B1:B10)

--
Biff
Microsoft Excel MVP


"SimonM" wrote in message
...
Hi,

I'm trying to find the appropriate formula for my needs. I need a formula
like SumIf, but the logical test only picks up bits of the text in a cell,
not the whole cell. e.g. If I wanted the sum of all transactions at PnP
store, I could enter a sumif formula and it would total all the
corresponding
cells that had PnP in the corresponding cell even if there was other text
in
the cell.

I hope that makes sense.

Simon



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
Formula Help - Not sure which one I need! SUMIF I think?! HayleyKingston Excel Discussion (Misc queries) 6 March 12th 08 10:23 PM
Nesting a sumproduct formula within a sumif formula. jerrymcm Excel Discussion (Misc queries) 2 October 3rd 07 03:35 PM
multiply formula where 1 cell has a (sumif) formula as a result kcip Excel Worksheet Functions 1 May 3rd 07 07:41 AM
Is there a MAXIF formula similar to the SUMIF formula? tlc Excel Discussion (Misc queries) 2 March 13th 06 08:07 PM
SumIF Formula Erika Excel Worksheet Functions 3 June 3rd 05 01:58 AM


All times are GMT +1. The time now is 05:24 PM.

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"