Re: Sumproduct forumla for complex sum.
- From: DocBrown <DocBrown@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 15 Sep 2009 16:52:01 -0700
Hi guys, I appreciate your help on this.
Hi p45cal,
Your solution is working except that it doesn't pick up the $120 value in
B5. In that case, the value 120 in A5 is found in col E, but since there's no
entry in F3, I need that value to be added also.
I'm thinking of a MATCH or SUMIF or something like that. Any ideas?
Here's NEW data that has all the conditions, I think.
A B C D E F
1 100 $100.00 100 $300.00
2 120 $121.00 120
3 $75.00 130 $200.00
4 100 $25.00 140 $250.00
5 140 $218.00
The total should be:
Sum(F1:F5)+ ( B3 ) + ( B2 ) = 750.00 + 75.00 + 121.00 = 946.00
B2 is added because no value is in F2,
B3 is added because no id is in A3.
Note that all values present in A are found in E. Extra values may be
present in E.
John
"Peter T" wrote:
.
"p45cal" <p45cal.3yk4n3@xxxxxxxxxxxxxxx> wrote in message
news:p45cal.3yk4n3@xxxxxxxxxxxxxxxxxx
Peter T;488737 Wrote:
You said the result needed to be like thistesting yields some odd results; If the ranges in your formula are
= (F1 + F2) + B2 + B4 + B5
= 300.00 + 200.00 + 50.00 + 75.00 + 120.00
= 745
The Sumproduct/Countif formula I suggested returns 745 with your
sample
data.
Regards,
Peter TYes, Peter, it gives the same result for his example. But further
expanded to cater for the full 15 rows possible, then when you:
Add a new item in table 1 after the last entry, call it 101 and give it
the value $3 in the second column of table 1,
then add 101 after the last entry in column 1 of table 2 and leave the
value empty..
I -*think *-the answer should be 748, but your formula gives 673.
Indeed you are right, I see why it's wrong but trickier to fix than I
thought!
Of course would be much easier if the data is tidied up a little beforehand.
Regards,
Peter T
- Follow-Ups:
- Re: Sumproduct forumla for complex sum.
- From: p45cal
- Re: Sumproduct forumla for complex sum.
- References:
- Sumproduct forumla for complex sum.
- From: DocBrown
- Re: Sumproduct forumla for complex sum.
- From: p45cal
- Re: Sumproduct forumla for complex sum.
- From: DocBrown
- Re: Sumproduct forumla for complex sum.
- From: p45cal
- Re: Sumproduct forumla for complex sum.
- From: DocBrown
- Re: Sumproduct forumla for complex sum.
- From: Peter T
- Re: Sumproduct forumla for complex sum.
- From: p45cal
- Re: Sumproduct forumla for complex sum.
- From: Peter T
- Sumproduct forumla for complex sum.
- Prev by Date: Re: VBA adding borders
- Next by Date: Re: *Fast* way of extracting cell text formatting
- Previous by thread: Re: Sumproduct forumla for complex sum.
- Next by thread: Re: Sumproduct forumla for complex sum.
- Index(es):
Relevant Pages
|
Loading