On 2002-10-21 08:21, msohail wrote:
At present the SUMIF is using the studid and not name, I want it to use both. I don't know how to combine both in the formula, would it be through AND as in the email or some other way??
On 2002-10-21 07:53, msohail wrote:
Aladin,
I've tried your formula below and it did produce the desired result, thankyou so much, and everyone for their contributions.
=IF(C2<>C3,SUMIF($C$2:$C$40,C2,$D$2:$D$40),"")
I now wish to extend the formula to say =IF (C2 AND B2.....) i.e. look for both the student ID (c2) and also their name (b2) and then summ where both these fields are identical. This added factor is required because a single ID can have 2 diff names, landlords name aswell as student name. I've tried this formula, variation of the above, but receive this error message (#NAME)
=IF(B2 AND C2<>B3 AND C3,SUMIF($B$1:$C$23,B2 AND C2,$E$1:$E$23),"")
Could u pls help with how I might need to change the formula to accomodate the above. Many Thanks,
Mohammed
On 2002-10-21 10:26, msohail wrote:
Thanq Aladin,
your very useful formula has produced the following result:
col_B col_C(Stud ID) col_D(£) Formula
Smith 111222 100 blank
Smith 111222 50 blank1
Walker 111222 75 75
It correctly returns the value of £225 where the 75 is if the entry in B3 was also 'Smith', but as it's diff I would like it to return a value of 150 in blank1, leaving 'blank' blank. I think it just needs a little tweek somewhere. Mohammed
On 2002-10-21 11:29, msohail wrote:
I've explored the pivot table option but really only need a formula. Your formula was almost there. Is not possible to change the ending of the formula from ',""' to another sumif type statement or another IF formula?? Mohammed
Book3 | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
1 | Name | ID | Amount | RunningTotal | Name | ID | Total | ||
2 | Smith | 111222 | 100 | Smith | 111222 | 150 | |||
3 | Smith | 111222 | 50 | 150 | Walker | 111222 | 75 | ||
4 | Walker | 111222 | 75 | 75 | |||||
5 | |||||||||
Sheet1 |
On 2002-10-22 05:10, msohail wrote:
Thanks so much Aladin. How did u get the summary data in columns E, F, G?? I would like to get the summary on a seperate sheet which would summarise like this:
Name ID Desc Date Total etc
As u have done in cells EFG but on a seperate worksheet. Is it possible for the formula to pick up absolute text values (for name and desc and date and ID fields)?? If i enter the same formula it summs the ID's. I probably need to change the 'sumproduct' part of the formula to 'text' ot 't' or something else which returns absolute values.
aaCondSumRunningTotal msohail.xls | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
3 | SumofAmount | ID | ||||
4 | Name | 111222 | GrandTotal | |||
5 | Smith | 150 | 150 | |||
6 | Walker | 75 | 75 | |||
7 | GrandTotal | 225 | 225 | |||
Sheet3 |