Help with summation of different rows in 1 column

bassemjohn1

Board Regular
Joined
Jun 26, 2020
Messages
51
Office Version
  1. 2016
Platform
  1. Windows
Hello guys,

I am new here and am in need of your help,I have a report that is really taking a huge time
and all I need is a way to sum what's in column D (invoice amount) for each supplier and put it in in column F (under Diff)
for example
summation of Hertz invoice amount then Oriental and so on
is there any sum equation to sum the invoice amount numbers related to each supplier without me having to sum it manually
for each supplier knowing that the start and number of rows vary from supplier to another.

1593178923796.png
 
If you can do not keep any space between the vendors, just make a database sheetwith the following columns

SupCodecurrencySup NameINV No.INV DateInvoAmountOPay AmountODiff

the difference column, cells should have inv amt-paid amt.

Now at the end of this table say in column Z, make a list of supplier name ( If needed make the column Sup name to be data validated for list from this table ) so say in cell Z2 you have hertz and cell Z3 you have the entry oriental trading co, for the column containing supplier name you will be able to select these names, increase selection as much as you want .

In Column AA 2 put this formula =SUMIF(F:F,Z2,G:G) In this change F to the column name of your supplier name, and change G to the column name of your difference THEN YOU WILL GET THE TOTAL DIFFERENCE AMOUNT FOR EACH VENDOR
Not only that in Column AB2 put this formula =SUMIF(F:F,Z2,G:G) In this change F to the column name of your supplier name, and change G to the column name of your Inv. amt, THEN YOU WILL GET THE TOTAL INVOICE AMOUNT FOR EACH VENDOR
that's awesome way to do it !! but sadly I have to stick to 1 sheet according to their policy.
 
Upvote 0

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
In that case try
VBA Code:
Sub bassemjohn()
   With Range("G1", Range("G" & Rows.Count).End(xlUp))
      .Replace "Diff", True, xlWhole, , False, , False, False
      .SpecialCells(xlConstants, xlLogical).Offset(1).FormulaR1C1 = "=sumifs(c5,c1,rc1)-sumifs(c6,c1,rc1)"
      .Replace True, "Diff", xlWhole, , False, , False, False
   End With
End Sub
I wanna thank you for the time you saved me this month
 
Upvote 0
i have 1 last obstacle

is there any way I can add the bank account automatically

For Ex: for TASC >> I use AED-001 account
and for oracle >> I use USD -001

I add them manually each month in column H , so is there any way I can let excel detect that it's oracle supplier for example and automatically add USD-001 to column H.

AEJ P.P.xls
ABCDEFGHIJKL
1SupCodeSup NameINV DateTran NoInvoAmountOPay AmountODiffDIVPGCBEDATECURDUEDATE
20019TASC Labour services LLC 13,298.25 AED - 001
3AED0.00
4001928-Jun-2013,298.250.00
5SupCodeSup NameINV DateTran NoInvoAmountOPay AmountODiffDIVPGCBEDATECURDUEDATE
60052Oracle Netsuite 2,267.46 USD - 102
7USD0.00
8005218-Feb-202,267.460.00
9SupCodeSup NameINV DateTran NoInvoAmountOPay AmountODiffDIVPGCBEDATECURDUEDATE
100272On Time Shipping Services LLC 6,664.00 AED - 002
11AED0.00
1202724-Mar-201,529.000.00
1302722-Mar-203,750.000.00
1402728-Jul-201,385.000.00
Sheet1
Cell Formulas
RangeFormula
G2,G10,G6G2=SUMIFS(E:E,A:A,A2)-SUMIFS(F:F,A:A,A2)
Named Ranges
NameRefers ToCells
_FilterDatabase=Sheet1!$A$1:$L$52G10, G6, G2
 
Upvote 0
As this is now a totally different question, please start a new thread.
Thanks
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,262
Members
449,075
Latest member
staticfluids

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