Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35
Default Rectify function - combination of Sumproduct and OR

Hi,

1) how can I combine Sumproduct and the OR function?
eg

av Bank1 1
av Bank2 2
av Bank3 3
av LADD 4
av LCH 3
av MSL 2


=SUMPRODUCT(($B$19:$B$24="av")*OR(($C$19:$C$24<"B ank1"),($C$19:$C$24<"Bank
2"),($C$19:$C$24<"Bank3"))*($D$19:$D$24))
returns 15


but I want it to pick up only LADD, LCH & MSL
i.e return 9!



2) can one use wildcard characters?
eg if there is a Bank4 and Bank5 in the list


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Rectify function - combination of Sumproduct and OR

Try it like this:

=SUMPRODUCT(($B$19:$B$24="av")*(LEFT($C$19:$C$24,4 )<"Bank")*($D$19:$D
$24))

Hope this helps.

Pete

On Feb 27, 10:04*am, "Hilton" wrote:
Hi,

1) how can I combine Sumproduct and the OR function?
eg

* * * av Bank1 1
* * * av Bank2 2
* * * av Bank3 3
* * * av LADD 4
* * * av LCH 3
* * * av MSL 2

=SUMPRODUCT(($B$19:$B$24="av")*OR(($C$19:$C$24<"B ank1"),($C$19:$C$24<"Ban*k
2"),($C$19:$C$24<"Bank3"))*($D$19:$D$24))
returns 15

but I want it to pick up only LADD, LCH & MSL
i.e return 9!

2) can one use wildcard characters?
eg if *there is a Bank4 and Bank5 in the list


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 67
Default Rectify function - combination of Sumproduct and OR

Hilton

Try:

=SUMPRODUCT(($B$19:$B$24="av")*($C$19:$C$24<"Bank 1")*($C$19:$C$24<"Bank2")*($C$19:$C$24<"Bank3"), ($D$19:$D$24))

Not sure about wildcards - I'll let somebody else respond on that.

Terry

"Hilton" wrote in message
...
Hi,

1) how can I combine Sumproduct and the OR function?
eg

av Bank1 1
av Bank2 2
av Bank3 3
av LADD 4
av LCH 3
av MSL 2


=SUMPRODUCT(($B$19:$B$24="av")*OR(($C$19:$C$24<"B ank1"),($C$19:$C$24<"Bank
2"),($C$19:$C$24<"Bank3"))*($D$19:$D$24))
returns 15


but I want it to pick up only LADD, LCH & MSL
i.e return 9!



2) can one use wildcard characters?
eg if there is a Bank4 and Bank5 in the list




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 806
Default Rectify function - combination of Sumproduct and OR

Hello,

I suggest
=SUMPRODUCT(--($B$19:$B$24="av"),SIGN(($C$19:$C$24="LADD") + ($C$19:$C
$24="LCH") + ($C$19:$C$24="MSL")),$D$19:$D$24)

Regards,
Bernd
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 rectify the DATA Error [47 OF 94 33 F4 55] Bhaskar Excel Discussion (Misc queries) 1 July 11th 07 04:20 PM
SUMPRODUCT, SUM(IF(...), or some combination? [email protected] Excel Worksheet Functions 2 October 24th 06 02:36 PM
i cannot use the mouse right click in excel. how to rectify? j New Users to Excel 6 September 20th 06 01:54 PM
Help with Combination Function Santhosh Mani Excel Worksheet Functions 4 December 14th 05 07:26 AM
query wizard has stopped working how do i rectify this Marie LND Excel Worksheet Functions 0 February 18th 05 11:31 AM


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