SOLVED

I need a formula

%3CLINGO-SUB%20id%3D%22lingo-sub-2367159%22%20slang%3D%22en-US%22%3EI%20need%20a%20formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2367159%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20need%20your%20help%20guys%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20Excel%20file%20which%20is%20daily%20debitor%20report.%20This%20file%20has%20two%20sheets%20.%20Sheet%201%20and%20Sheet%202.%26nbsp%3B%3C%2FP%3E%3CP%3ESo%2C%20I%20want%20the%20data%20in%20the%20%3CSTRONG%3Esheet%202%3C%2FSTRONG%3E%20(here%20%3CSTRONG%3Esales%3C%2FSTRONG%3E%20and%20%3CSTRONG%3Ebank%3C%2FSTRONG%3E)%20to%20be%20added%20to%3CSTRONG%3E%20sheet%201%3C%2FSTRONG%3E%20automatically.%20One%20of%20my%20friend%20applied%20a%20VBA%20code%20for%20this%20and%20it%20works%20(%20%3CSTRONG%3Eattached%20file%20possess%20this%20VBA%20code%3C%2FSTRONG%3E).%20However%2C%20I%20want%20it%20with%20formula.%20I%20hope%20anyone%20can%20help%20me%20with%20this%20situation.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2367159%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2367292%22%20slang%3D%22en-US%22%3ERe%3A%20I%20need%20a%20formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2367292%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1057535%22%20target%3D%22_blank%22%3E%40ismat1950%3C%2FA%3E%26nbsp%3BAllow%20me%20to%20ask%20you%20a%20question.%20Why%20such%20a%20complicated%20approach%20where%20a%20list%20of%20transactions%20needs%20to%20broken%20up%20in%20small%20blocks%20of%20daily%20information%3F%20Probably%20something%20you%20need%20to%20recreate%20every%20month%20with%20no%20way%20to%20keep%20track%20of%20e.g.%20the%20whole%20year%20in%20one%20schedule.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20transform%20the%20transactions%20list%20in%20Sheet2%20to%20a%20structured%20Excel%20table%20and%20keep%20on%20adding%20transactions%2C%20day-by-day.%20Then%20you%20can%20build%20all%20sorts%20of%20reports%20off%20that%20table%20with%20Pivot%20Tables.%20No%20VBA%2C%20no%20complicated%20formulae%20needed.%20If%20you%20are%20not%20familiar%20with%20Pivot%20Tables%20you%20can%20learn%20more%20about%20them%20in%20the%20attached%20link.%20One%20of%20many%20on-line%20resources.%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Foffice%2Fcreate-a-pivottable-to-analyze-worksheet-data-a9a84538-bfe9-40a9-a8e9-f99134456576%23OfficeVersion%3DWindows%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Foffice%2Fcreate-a-pivottable-to-analyze-worksheet-data-a9a84538-bfe9-40a9-a8e9-f99134456576%23OfficeVersion%3DWindows%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2371050%22%20slang%3D%22en-US%22%3ERe%3A%20I%20need%20a%20formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2371050%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F403176%22%20target%3D%22_blank%22%3E%40Riny_van_Eekelen%3C%2FA%3E%26nbsp%3BI%20really%20don't%20know%20how%20to%20do%20it%20with%20Pivot%20Table.%20I%20tried%20to%20create%20but%20I%20couldn't.%3C%2FP%3E%3CP%3EI%20hope%20you%20could%20help%20me.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2371345%22%20slang%3D%22en-US%22%3ERe%3A%20I%20need%20a%20formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2371345%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1057535%22%20target%3D%22_blank%22%3E%40ismat1950%3C%2FA%3E%26nbsp%3BPerhaps%20the%20attached%20file%20(Sheet2)%20will%20help%20you%20get%20started%20with%20another%20way%20of%20collecting%20transactional%20data%20and%20using%20pivot%20tables%20to%20create%20different%20reports.%20Search%20the%20web%20for%20%22pivot%20table%20excel%22%20and%20you'll%20find%20many%20links%20that%20can%20help%20you%20discover%20them.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20table%20in%20col%20B%3AE%20is%20a%20structured%20table.%20Continue%20typing%20the%20date%20of%20next%20transaction%20in%20B15%20and%20the%20table%20will%20automatically%20expand.%20On%20the%20Data%20ribbon%20you'll%20find%20a%20Refresh%20button.%20Press%20it%20and%20all%20pivot%20tables%20(from%20col%20H%20and%20to%20the%20right)%20will%20refresh%20to%20include%20the%20new%20transaction(s).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2374900%22%20slang%3D%22en-US%22%3ERe%3A%20I%20need%20a%20formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2374900%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F403176%22%20target%3D%22_blank%22%3E%40Riny_van_Eekelen%3C%2FA%3E%26nbsp%3Bactually%20it%20helps.%20However%2C%20one%20more%20information%20I%20need%20to%20add%20to%20the%20table%20which%20is%20current%20outstanding%20balance%20for%20each%20customer.%20How%20can%20I%20do%20It%20again%20I%20don't%20know%20(.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2374993%22%20slang%3D%22en-US%22%3ERe%3A%20I%20need%20a%20formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2374993%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1057535%22%20target%3D%22_blank%22%3E%40ismat1950%3C%2FA%3E%26nbsp%3BNot%20sure%20I%20follow.%20Where%20do%20you%20want%20to%20add%20the%20current%20balances%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20transactions%20table%20has%20the%20opening%20balances%2C%20all%20sales%20amounts%20and%20incoming%20funds%20from%20the%20bank.%20These%20three%20together%20make-up%20the%20current%20outstanding%20balance%2C%20as%20shown%20on%20the%20subtotal%20rows%20in%20the%20grand%20total%20column%20of%20the%20pivot%20tables.%20Of%20course%2C%20you%20can%20create%20pivot%20table%20with%20just%20the%20company%20as%20the%20row%20header%20and%20the%20amount%20in%20the%20value%20field.%20That%20will%20result%20in%20a%20list%20of%20current%20balances%20per%20company.%20Please%20clarify%20it%20that%20is%20%3CSTRONG%3Enot%3C%2FSTRONG%3E%20what%20you%20want.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2375353%22%20slang%3D%22en-US%22%3ERe%3A%20I%20need%20a%20formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2375353%22%20slang%3D%22en-US%22%3ESorry%20Mr%20Riny%20van%20Ekelen.%20I%20realized%20where%20is%20my%20mistake.%20I%20did%20not%20put%20minus%20before%20the%20bank%20amount%20%3A%20)%20thats%20why%20it%20was%20incorrect%20overall%20balance.%3CBR%20%2F%3EThanks%20a%20lot%20Mr.%20I%20appreciate%20your%20help.%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello,

 

I need your help guys,

 

I have a Excel file which is daily debitor report. This file has two sheets . Sheet 1 and Sheet 2. 

So, I want the data in the sheet 2 (here sales and bank) to be added to sheet 1 automatically. One of my friend applied a VBA code for this and it works ( attached file possess this VBA code). However, I want it with formula. I hope anyone can help me with this situation. 

6 Replies
best response confirmed by ismat1950 (Occasional Contributor)
Solution

@ismat1950 Allow me to ask you a question. Why such a complicated approach where a list of transactions needs to broken up in small blocks of daily information? Probably something you need to recreate every month with no way to keep track of e.g. the whole year in one schedule.

 

I would transform the transactions list in Sheet2 to a structured Excel table and keep on adding transactions, day-by-day. Then you can build all sorts of reports off that table with Pivot Tables. No VBA, no complicated formulae needed. If you are not familiar with Pivot Tables you can learn more about them in the attached link. One of many on-line resources. 

https://support.microsoft.com/en-us/office/create-a-pivottable-to-analyze-worksheet-data-a9a84538-bf... 

@Riny_van_Eekelen I really don't know how to do it with Pivot Table. I tried to create but I couldn't.

I hope you could help me.

 

@ismat1950 Perhaps the attached file (Sheet2) will help you get started with another way of collecting transactional data and using pivot tables to create different reports. Search the web for "pivot table excel" and you'll find many links that can help you discover them.

 

The table in col B:E is a structured table. Continue typing the date of next transaction in B15 and the table will automatically expand. On the Data ribbon you'll find a Refresh button. Press it and all pivot tables (from col H and to the right) will refresh to include the new transaction(s).

 

@Riny_van_Eekelen actually it helps. However, one more information I need to add to the table which is current outstanding balance for each customer. How can I do It again I don't know (. 

 

@ismat1950 Not sure I follow. Where do you want to add the current balances?

 

The transactions table has the opening balances, all sales amounts and incoming funds from the bank. These three together make-up the current outstanding balance, as shown on the subtotal rows in the grand total column of the pivot tables. Of course, you can create pivot table with just the company as the row header and the amount in the value field. That will result in a list of current balances per company. Please clarify it that is not what you want. 

Sorry Mr Riny van Ekelen. I realized where is my mistake. I did not put minus before the bank amount : ) thats why it was incorrect overall balance.
Thanks a lot Mr. I appreciate your help.