#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Sumif

Hi. This is Pritesh from Mumbai, India. I have expense codes and respective
figures in my MIS reports. If I need to sum all expenses, which contain
specfic characters or numbers in it's Exp Code, how can I do that? Maybe I
can use =Sumif or =Sum(If functions, but how? Please help.

In this example, how can I add all exps containing "East"?
Exp Codes Amt
EastZone 10
WestZone 10
NorthZone 10
SouthZone 10
EastZone 20
SouthZone 20
EastZone 30

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default Sumif

column A B
Exp Codes Amt
=SUMPRODUCT(--(NOT(ISERROR(SEARCH("east",A2:A8)))),B2:B8)


Regards,
Stefi

€˛Pritesh€¯ ezt Ć*rta:

Hi. This is Pritesh from Mumbai, India. I have expense codes and respective
figures in my MIS reports. If I need to sum all expenses, which contain
specfic characters or numbers in it's Exp Code, how can I do that? Maybe I
can use =Sumif or =Sum(If functions, but how? Please help.

In this example, how can I add all exps containing "East"?
Exp Codes Amt
EastZone 10
WestZone 10
NorthZone 10
SouthZone 10
EastZone 20
SouthZone 20
EastZone 30

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Sumif


I would use a sumproduct solution

=sumproduct((a1:a10=eastx)*(b1:b10))+sumproduct((a 1:a10=easty)*(b1:b10))

you will need to expand the formula for every way you have east
followed by something else


--
robert111
------------------------------------------------------------------------
robert111's Profile: http://www.excelforum.com/member.php...o&userid=31996
View this thread: http://www.excelforum.com/showthread...hreadid=567834

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
How to use SUMIF to return sums between two values located in cells ScottBerger Excel Worksheet Functions 2 April 23rd 23 09:05 PM
SUMIF function help PO Excel Worksheet Functions 1 June 1st 06 09:33 AM
Sumif of Sumif perhaps? Fred Excel Discussion (Misc queries) 2 March 29th 06 05:39 PM
SUMIF Ferg Excel Worksheet Functions 3 February 28th 06 03:37 AM
Embedding a Sumif in a sumif C.Pflugrath Excel Worksheet Functions 5 August 31st 05 07:31 PM


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