Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default sumproduct problem

Hi there,

I've got following constellation:
A1 to C4 is a little database
in A6, I put in a name like CAIRO
in A7, I put in a description like CA M 4


Whenever CA is part of the description, the formula must give me C817
as result in cell A9. My problem is, that 'CA' is only a part of the
description.


A B C
1 CAIRO PB M 6 C816
2 CAIRO CA M 4 C817
3 CAIRO PB M 3 C816
4 CAIRO CA M 2 C817
5
6 CAIRO
7 CA M 4
8
9 =SUMPRODUCT(((A1:A3=A6)*(B1:B3=A7))*C1:C3)

Can anyone help me please?

Thanks a lot

Norbert
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default sumproduct problem

Hi
try the following array formula (entered with CTRL+SHIFT+ENTER):
=INDEX(C1:C4,MATCH((A1:A4=A6)*(B1:B4=A7),0))

--
Regards
Frank Kabel
Frankfurt, Germany

Norbert Jaeger wrote:
Hi there,

I've got following constellation:
A1 to C4 is a little database
in A6, I put in a name like CAIRO
in A7, I put in a description like CA M 4


Whenever CA is part of the description, the formula must give me C817
as result in cell A9. My problem is, that 'CA' is only a part of the
description.


A B C
1 CAIRO PB M 6 C816
2 CAIRO CA M 4 C817
3 CAIRO PB M 3 C816
4 CAIRO CA M 2 C817
5
6 CAIRO
7 CA M 4
8
9 =SUMPRODUCT(((A1:A3=A6)*(B1:B3=A7))*C1:C3)

Can anyone help me please?

Thanks a lot

Norbert



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default sumproduct problem

=INDEX(C1:C3,SMALL(IF((A1:A3=A6)*(LEFT(B1:B3,2)=LE FT(A7,2)),ROW(C1:C3)),1),1
)

Entered with Ctrl+Shift+Enter rather than just enter since this is an array
formula.



--
Regards,
Tom Ogilvy

"Norbert Jaeger" wrote in message
...
Hi there,

I've got following constellation:
A1 to C4 is a little database
in A6, I put in a name like CAIRO
in A7, I put in a description like CA M 4


Whenever CA is part of the description, the formula must give me C817
as result in cell A9. My problem is, that 'CA' is only a part of the
description.


A B C
1 CAIRO PB M 6 C816
2 CAIRO CA M 4 C817
3 CAIRO PB M 3 C816
4 CAIRO CA M 2 C817
5
6 CAIRO
7 CA M 4
8
9 =SUMPRODUCT(((A1:A3=A6)*(B1:B3=A7))*C1:C3)

Can anyone help me please?

Thanks a lot

Norbert



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
Sumproduct Problem (AB) albertmb Excel Discussion (Misc queries) 4 May 6th 10 10:08 PM
Sumproduct problem willemeulen Excel Discussion (Misc queries) 1 March 1st 10 11:58 AM
SUMPRODUCT Problem Joe Gieder New Users to Excel 5 May 29th 07 07:04 PM
Problem with SumProduct dinadvani via OfficeKB.com Excel Discussion (Misc queries) 5 July 31st 06 01:55 PM
sumproduct problem andy New Users to Excel 2 March 29th 06 01:52 PM


All times are GMT +1. The time now is 11:17 PM.

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"