#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,388
Default SumProduct

Hi all.
XP xl2003

After some struggling, I have managed to create the following formula in a
procedure which works fine returning the correct result from a filtered list.
However, I would like to include two more tests if possible before the
result in INV_AMOUNT is returned.

In the RECONCILIATION worksheet I have two cols (B & C) for firstname &
Lastname so in addition to testing for invoice ID in Col E ( named range
INV_APARID in INVOICE sheet ) I also need to test both B10 & C10 on
reconciliation sheet against named ranges INV_FNAME & INV_LNAME in INVOICE
worksheet before INV_AMOUNT is returned. However, I am not too sure how to
include extra tests in the formula?

..Range("G10").Formula = _

"=IF($E10=$E9,0,SUMPRODUCT(SUBTOTAL(3,OFFSET(INV_A PARID,ROW(INV_APARID)-MIN(ROW(INV_APARID)),,1)),--(INV_APARID=RECONCILIATION!$E10),INV_AMOUNT))"


Hope clear - any help / guidance appreciated.
--
dave
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default SumProduct

Hello Dave,

I use the sumprod function in many apps, so, please consider :
"=IF(cond1,cond1_matched,
SUMPRODUCT(SUBTOTAL(3,OFFSET(INV_APARID,ROW(INV_AP ARID)-MIN(ROW(INV_APARID)),,1)),--(INV_APARID=RECONCILIATION!$E10),INV_AMOUNT)
+SUMPRODUCT(mmmmmmmmmmmmmm)
+SIMPRODUCT(nnnnnnnnnnnnnnnnnnnnnnn)
....
+SUMPRODUCT(yyyyyyyyyyyyyyyyyyyyyyyyyyyy)
)"

I also have a pdf which I could send to you about SUMPROD

regards,
Hervé+

--
Herve Hanuise
http://www.affordsol.be


"dave" wrote:

Hi all.
XP xl2003

After some struggling, I have managed to create the following formula in a
procedure which works fine returning the correct result from a filtered list.
However, I would like to include two more tests if possible before the
result in INV_AMOUNT is returned.

In the RECONCILIATION worksheet I have two cols (B & C) for firstname &
Lastname so in addition to testing for invoice ID in Col E ( named range
INV_APARID in INVOICE sheet ) I also need to test both B10 & C10 on
reconciliation sheet against named ranges INV_FNAME & INV_LNAME in INVOICE
worksheet before INV_AMOUNT is returned. However, I am not too sure how to
include extra tests in the formula?

.Range("G10").Formula = _

"=IF($E10=$E9,0,SUMPRODUCT(SUBTOTAL(3,OFFSET(INV_A PARID,ROW(INV_APARID)-MIN(ROW(INV_APARID)),,1)),--(INV_APARID=RECONCILIATION!$E10),INV_AMOUNT))"


Hope clear - any help / guidance appreciated.
--
dave

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,388
Default SumProduct

thanks for reply,
offer of PDF very kind but given I have been struggling with SumProduct I
was hoping some kind person would be kind enough to help me complete the
formula.
--
dave


"affordsol" wrote:

Hello Dave,

I use the sumprod function in many apps, so, please consider :
"=IF(cond1,cond1_matched,
SUMPRODUCT(SUBTOTAL(3,OFFSET(INV_APARID,ROW(INV_AP ARID)-MIN(ROW(INV_APARID)),,1)),--(INV_APARID=RECONCILIATION!$E10),INV_AMOUNT)
+SUMPRODUCT(mmmmmmmmmmmmmm)
+SIMPRODUCT(nnnnnnnnnnnnnnnnnnnnnnn)
...
+SUMPRODUCT(yyyyyyyyyyyyyyyyyyyyyyyyyyyy)
)"

I also have a pdf which I could send to you about SUMPROD

regards,
Hervé+

--
Herve Hanuise
http://www.affordsol.be


"dave" wrote:

Hi all.
XP xl2003

After some struggling, I have managed to create the following formula in a
procedure which works fine returning the correct result from a filtered list.
However, I would like to include two more tests if possible before the
result in INV_AMOUNT is returned.

In the RECONCILIATION worksheet I have two cols (B & C) for firstname &
Lastname so in addition to testing for invoice ID in Col E ( named range
INV_APARID in INVOICE sheet ) I also need to test both B10 & C10 on
reconciliation sheet against named ranges INV_FNAME & INV_LNAME in INVOICE
worksheet before INV_AMOUNT is returned. However, I am not too sure how to
include extra tests in the formula?

.Range("G10").Formula = _

"=IF($E10=$E9,0,SUMPRODUCT(SUBTOTAL(3,OFFSET(INV_A PARID,ROW(INV_APARID)-MIN(ROW(INV_APARID)),,1)),--(INV_APARID=RECONCILIATION!$E10),INV_AMOUNT))"


Hope clear - any help / guidance appreciated.
--
dave

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 with Condition OR Sumproduct with ADDRESS function - HE gholly Excel Discussion (Misc queries) 2 September 28th 09 05:07 PM
sumproduct Brad Autry Excel Worksheet Functions 1 August 10th 09 09:15 PM
Conditional SUMPRODUCT or SUMPRODUCT with Filters Ted M H Excel Worksheet Functions 4 August 14th 08 07:50 PM
sumproduct? sumif(sumproduct)? David Excel Worksheet Functions 3 July 13th 07 07:06 PM
sumproduct John997 Excel Discussion (Misc queries) 6 March 6th 06 11:55 PM


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