Possible Match formula help needed

chriseagleson

New Member
Joined
Aug 3, 2011
Messages
3
I hope I can explain this properly.

Column A and B are from a csv file. This csv file has an account code in column A and a total amount in column b. I have a second csv file column d and f. Column d is the account code and column f is an amount. The diffeerence between the two is. A & B is a total so there is only one line per account. Column d & F are transactions. There may be multiple lines per account.

I need to have column A look at column D, then sum column f all of the account matches. Column C will be the total amount of each line from column F. I hope this makes since.

Data Example
A B c D F
acct1 100 100 acct1 25
acct2 15
acct1 25
acct6 10
acct7 100
acct1 25
acct1 25
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
No, that's not clear. But I'd guess that you may want to look at the SUMIF function.
 
Upvote 0
<br /><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6"><colgroup><col width="25px" style="background-color: #E0E0F0" /><col /><col /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th></th><th>A</th><th>B</th><th>C</th><th>D</th><th>E</th><th>F</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">1</td><td style=";">acct1</td><td style="text-align: right;;">100</td><td style="text-align: right;;">100</td><td style=";">acct1</td><td style="text-align: right;;"></td><td style="text-align: right;;">25</td></tr><tr ><td style="color: #161120;text-align: center;">2</td><td style=";">acct2</td><td style="text-align: right;;"></td><td style="text-align: right;;">15</td><td style=";">acct2</td><td style="text-align: right;;"></td><td style="text-align: right;;">15</td></tr><tr ><td style="color: #161120;text-align: center;">3</td><td style=";">acct6</td><td style="text-align: right;;"></td><td style="text-align: right;;">10</td><td style=";">acct1</td><td style="text-align: right;;"></td><td style="text-align: right;;">25</td></tr><tr ><td style="color: #161120;text-align: center;">4</td><td style=";">acct7</td><td style="text-align: right;;"></td><td style="text-align: right;;">100</td><td style=";">acct6</td><td style="text-align: right;;"></td><td style="text-align: right;;">10</td></tr><tr ><td style="color: #161120;text-align: center;">5</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style=";">acct7</td><td style="text-align: right;;"></td><td style="text-align: right;;">100</td></tr><tr ><td style="color: #161120;text-align: center;">6</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style=";">acct1</td><td style="text-align: right;;"></td><td style="text-align: right;;">25</td></tr><tr ><td style="color: #161120;text-align: center;">7</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style=";">acct1</td><td style="text-align: right;;"></td><td style="text-align: right;;">25</td></tr></tbody></table><br /><br /><table cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #A6AAB6"><thead><tr style=" background-color: #E0E0F0;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">C1</th><td style="text-align:left">=SUMIF(<font color="Blue">D:D,A1,F:F</font>)</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">C2</th><td style="text-align:left">=SUMIF(<font color="Blue">D:D,A2,F:F</font>)</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">C3</th><td style="text-align:left">=SUMIF(<font color="Blue">D:D,A3,F:F</font>)</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">C4</th><td style="text-align:left">=SUMIF(<font color="Blue">D:D,A4,F:F</font>)</td></tr></tbody></table></td></tr></table><br />

SUMIF function
 
Upvote 0

Forum statistics

Threads
1,224,585
Messages
6,179,696
Members
452,938
Latest member
babeneker

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