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

Hi,

My data is like below:

A B
1 900180111 50000
2 902180111 20000
3 911180111 15000
4 900180121 40000
5 911280121 150000

what i want to do is:

sum of column B which the code in the column A started with 90 or 91 and
ended with 80111 the answer suld be 35000

any help would be appriciated.

Farhad
--

Farhad Hodjat
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,202
Default sumproduct

My data is like below:

A B
1 900180111 50000
2 902180111 20000
3 911180111 15000
4 900180121 40000
5 911280121 150000

what i want to do is:

sum of column B which the code in the column A started with 90 or 91 and
ended with 80111 the answer suld be 35000


Based on your criteria, I think the answer should be 85000... the first
three rows of column A start with either 90 or 91 and end with 80111. This
formula produces 85000 as an answer...

=SUMPRODUCT((LEFT(A1:A100,2)={"90","91"})*(RIGHT(A 1:A100,5)="80111")*(B1:B100))

Rick

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
Please help w/Sumproduct! bkt Excel Worksheet Functions 2 September 5th 06 07:26 PM
Sumproduct + Karen Smith Excel Discussion (Misc queries) 3 August 30th 06 09:16 PM
Sumproduct Karin Iversen Excel Worksheet Functions 2 November 2nd 05 05:56 PM
Sumproduct ?? PhilGTI Excel Worksheet Functions 3 September 22nd 05 05:41 PM
sumproduct FLKULCHAR Excel Worksheet Functions 1 September 18th 05 03:36 PM


All times are GMT +1. The time now is 03:20 AM.

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"