SUM All the Action from Users

mastercands

New Member
Joined
Apr 1, 2014
Messages
3
Hi All,

I have a new question that till now I did not find an easy solution:

1) Users

I got a file (file3.xls) with users of my company:
users
123
234
345
456
567
678
789

<colgroup><col width="64" style="width:48pt"> </colgroup><tbody>
</tbody>

2) Other file (file1.xls) with Users and Accounts. Each users can have different records with different accounts. This means the user had a contact with the account.
file1
usersaccounts number
1231234
2342345
3453456
4564567
5675678
6786789
7897890
1231234
1232345
2343456
2344567
4565678
5676789
6787890
7891234
1232345
7893456
7894567

<colgroup><col width="64" span="2" style="width: 48pt; text-align: center;"> </colgroup><tbody>
</tbody>

3) The fie (file2.xls) has Account Transaction for the specific account number.

file2
accounts numbercash
23451
34561
45671
56781
67891
78901
12341
23451
34561
45671
56781
67891
78901
12341
23451
23451
34561
45671

<colgroup><col width="64" span="2" style="width: 48pt; text-align: center;"> </colgroup><tbody>
</tbody>


My point:
1) I want to know for each user what was to total of money they transacted.

Eg: user 123 had contacted the account 1234 (2 times) and 2345 (4times). So the total for user 123 should be the value of the transactions of 1234 + transactions of the account 2345.

Note that the cash I put 1. But in real world is different values.

If you require more details, please elaborate.
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
3 Excel Files (I think is workbook).
File1.xls = Users and Accounts
File2.xls = Accounts and money
File3.xls = user list
 
Upvote 0
3 Excel Files (I think is workbook).
File1.xls = Users and Accounts
File2.xls = Accounts and money
File3.xls = user list

File2, Sheet1, B2, control+shift+enter, not just enter, and copy down:
Rich (BB code):
=SUM(IF(ISNUMBER(MATCH([file2.xlsx]Sheet1!$A$2:$A$19,
  IF([file1.xlsx]Sheet1!$A$2:$A$19=$A2,[file1.xlsx]Sheet1!$B$2:$B$19),0)),
  [file2.xlsx]Sheet1!$B$2:$B$19))
 
Upvote 0

Forum statistics

Threads
1,216,022
Messages
6,128,325
Members
449,440
Latest member
Gillian McGovern

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top