Using Gathering/Automating information from Excel sheets - excel

I have multiple Excel files with sheets that show bank account information in the picture. I want to show a daily beginning and ending balance for each account and also show a total of the transactions that took place on each account with a daily closing balance. What is a good way to go about doing this? The end result with be a sheet or a table with each daily closing amount and each total of the transactions that took place in the various daily accounts

put a table like this in G9 onwards, showing all the bank accounts listed in column A:
then put this formula in H9
=SUMIF(OFFSET($B$6,MATCH($G9,$A$6:$A$200,0),0,MATCH($G10,$A$6:$A$200,0)-MATCH($G9,$A$6:$A$200,0)),$B$7,OFFSET(C$6,MATCH($G9,$A$6:$A$200,0),0,MATCH($G10,$A$6:$A$299,0)-MATCH($G9,$A$6:$A$200,0)))
copy the formula down next to the bank account numbers and to the right 3 more columns (4) in total
this should work as long as your data isn't long than 200 rows. if it is change all the 200's in the code to a number larger than your last row.
it may struggle for the last bank account, if it does add end in a cell just below you data in column A and end as a final entry in that table built from G9 onwards, also make sure that the 200's cover the row end is in or update them to do so.
Finally let us know how it goes and mark the answer accepted if it does what you need :)

Related

How to use Excel to automatically add interest to a total daily

I can't find my answer anywhere, but believe it's a simple solution. I need Excel to automatically calculate the daily interest on an amount (which will go up and down with deposits and withdrawals), and then add it to the total, to display the overall total including interest (compounding). This will change daily when someone looks at the value in Excel due to the daily interest being added.
For example. I have $5000. At 5% APR, the daily interest rate would be .0137%. The day after the $5000 is there, the new total should show $5000.68 if I opened and looked at the spreadsheet. If didn't check the spreadsheet, then on day 2, the total should show $5001.37. If I added $5000 more to the total on day 2 (after interest was added) I would then have $10001.37 and the interest rate for the next day should automatically add on to the new total, compounding daily.
Sample spreadsheet with today as 12/10/22, needing to have total balance update daily
Essentially, I want a spreadsheet that can display the overall balance in an account which compounds daily, allowing withdrawals and deposits at anytime [H2]. How do I accomplish this!?
If you have interest starting date then could use below formula-
=(B2*0.0137%)*(TODAY()-A1)
Here A1 cell is interest starting date.
To see total with interest can use-
=B2+(B2*0.0137%)*(TODAY()-A1)
Make a named value called DailyInterest with a value of 1.000137.
Then make a table like this...
Date
Change
Amount
5/5/2022
$5,000.00
0
Then highlight it and click Insert Table from the ribbon.
Tables will give you a few benefits, some cosmetic, but the one I want to show you is that you can define a formula for a column, and it's ONE formula. It doesn't get copied down to each row, it just seems that way, but the reality is that the formula stored once, internally, and applied to every row.
So, then, change that amount of 0 with
=IFERROR(OFFSET([#Amount],-1,0)*POWER(DailyInterest,[#DATE]-OFFSET([#Date],-1,0),0)+N([#Change])
Within the table, [#Date] refers to the value in the Date column for that row.
I used N() so that nonvalues in the Change column are treated as zeroes.
Now, each time you fill in the Date and Change column, the Amount column will be automatically populated.

excel sumproduct formula calculating time

hello dear forum members and admins,
i created a dashboard to calculate customer numbers based on raw data prepared on day and time set.
there is no problem here I can calculate. but I also want to calculate the monthly average customer numbers based on the time set. for this purpose, I created a data table in a daily_pax_sheet. for e.g in January between 10:00 - 10:30 CUSTOMERS E totally number is 35 and this 35 amount occurred in 8 days, then it calculates 4 amounts. in daily_pax_details sheet row 107 formula firstly calculate sum of the data then it divides the day number (for e.g this amount occurs in 8 days) but in some cases, raw data include more than 20k line and it's calculating and waiting too much. is there any other way to do it in a quick way ? how can I change this formula to make calculation quick ?
https://docs.google.com/spreadsheets/d/1y-2Ke2ssskzSM-wYszU54CIEraPbEX4X/edit#gid=459027650
UPDATE: thanks for the idea and solution from members
I also realized another solution and I think it will help other people in the future. we can get the data to the pivot table with counting the unique values with changing field settings. To do it you should get the data pivot table with selecting "add this data to the data model". then changing value field settings with the "Distinct value". hope it will help another pppl.
Your SUMIFS formulas use whole columns as criteria, so every calculation checks more than 1 million cells. And because you use more than 1 column, then every time you update *anything in the file, Excel checks more than 4 million cells because of your formulas...
I changed all to use the righ rawdata range of cells used, not whole columns. And now it works perfect.
As example, your formula is:
=SUMIFS('raw data'!$R:$R;'raw data'!$D:$D;'Daily customer'!C$3;'raw data'!$I:$I;'Daily customer'!$A4)
And I changed to:
=SUMIFS('raw data'!$R$2:$R$2461;'raw data'!$D$2:$D$2461;'Daily customer'!C$3;'raw data'!$I$2:$I$2461;'Daily customer'!$A4)
Because in your sheet raw data your data goes from row 2 to 2461, so in every calculation Excel checks only 2460 cells, not 1 million....
Change all your formulas like this and you should notice a better performance indeed.
UPDATE: I've uploaded the modified file: https://docs.google.com/spreadsheets/d/11isonBHFJTFFWtZTJg66JHbtyrD0XFGl/edit?usp=sharing&ouid=114417674018837700466&rtpof=true&sd=true
It works smoothly for me. No lag or anything. I can change any cell value, move the graph, filter cells and everything is done almost instantly.

Excel formula looks up by date and other characteristics

Hello I have a file that has two tabs. In the first tab it lists all bank accounts down the bottom of the page in rows. The list includes details about each account from columns A-H and then it has dates going all the way out from I-EY. The details in A-H have the unique identifier I created in column A and the other details in B-H most relevant for this is the account type(ZBA or Balance) in column G. For the data in I-EY, I have the dates listed across the top in row 2 for all dates going out for each bank account. For each date I populated the balance its a balance account or the activity if it's a ZBA. This is the data that I will use for the other subsequent tab #2. The data in tab 1 is all hardcoded.
In Tab#2, its setup the exact same way. All the bank accounts are in the same rows as tab 1 but the columns are off by one. The dates start one day earlier in tab 1.(tab1 in column I starts with 6/30 and in tab 2 column I starts as 7/1) I will get into why. In tab 2 I want to calculate or pull the daily activity for each account based on the type of account it is. If says balance in column G) i want to calculate for each date the change in balances from the prior day. (So for 7/1 if its a balance account take the balance in 7/1 columnJ and substract the balance in column I). This will populate the activity for 7/1 in tab 2. If its a ZBA then just take that specific number.
So I was hoping to perform this function I can have a standard if formula but I wanted to avoid any problems on a daily basis by creating a formula in tab 2 that looks up that date(row 2) and what type of account it is. If it's a balance account i want it to take the date in row 2 for each column and have it lookup the balance for the previous day(Date - 1) so it calculates and then if its a ZBA just look up the date and find the balance for that day.
Hope this makes sense. Appreciate all the help
So basically i need a formula that

how to summarize total hours worked by an employee per week based on the schedule

I have an excel sheet with 3 sheets. The second sheet is a list of permutation/combination of employee and the possible shifts they can work and hours they get.
The first sheet has a monthly calendar view. For each calendar day they are select from the list from second sheet
I want the their sheet to display number of total hours each employee is scheduled to worked based on sheet 2 numbers ( column B)
Awesome scheduler ... I made one just like it a couple of years ago but will additional reporting pages that would break down the total hours by standard pay, OT pay, and holiday pay, then with that information calculate their gross pay.
I recreated a basic version of what you have pictured above and then put together two different methods for calculating the total hours per week per employee based on the schedule.
The first way is the simpler way that makes each calculation individually and then totals them on the back end. To do so you will use the 'countif' function for each shift for each person (the range is the whole calendar and the , then multiply by the corresponding number of hours per shift on the 2nd page.
Then in the next column you see I merged the cells next these subtotals, and wrote a 'sum' formula to total the subtotals for each shift totals in column J. This approach is easier to put together and easier to diagnose issues with as you are working on it.
The 2nd method I used is more complicated as it nests these functions into a single operation using the 'sum' and then several iterations of the 'countif' within it.
If you really want to get fancy you could go another step further and put together an array formula, but they are a bit more tricky.
Depending on how meticulous you are about having innocuous data, I added an additional condition on mine that would leave the totals cells blank if someone didn't work, just because I don't like to see the '0' when I was reviewing the back end report.
Hope this helps.

Invoice List Running Balance based on date and Account

I'm using Excel 2010 and have made a UserForm that Displays a complete list of Invoices from Worksheets("InvoiceListIncome") using a ListBox control, the Worksheet has 13 Columns and Thousands of rows, an example image below;
The problem I'm having is the Balance Row Range("InvoiceListIncome_Balance")" displays the balance of each Invoice individual, what I need is a running balance starting from the first invoice Range("InvoiceListIncome_Date") so with each Transaction it Adds up the Current + all previous invoices for that account.
The Macro I'm currently using is;
Range("InvoiceListIncome_Balance").FormulaR1C1 = "=SUM(RC[-1])-SUM(RC[-2])"
which simply subtracts whats Paid in Column F from Item Price in Column G, but I cant seem to figure out how to add all previous balances by date, I can either get it to Sum the complete Range with the Customers account as the criteria or just the activerow.
I have been running circles trying to figure this out for days now, any help would be muchly appreciated, thanks.
Here is an example of what I need;
Assuming you have Account, Price, and Paid in columns A, D, and E, respectively, with your first row of data in row 2, try the following formula in row 2:
=SUMIF($A$2:$A2,$A2,$E$2:$E2)-SUMIF($A$2:$A2,$A2,$D$2:$D2)
Copy the formula down the column. This assumes that your data is sorted in increasing chronological order as you show.
Also, if this formula is working, you have the wrong sign on the 4th row from the bottom of the column that you want????
You want a running total, so you want to incorporate the balance of row (n-1) when calculating the balance for row n.
Based on your 1st picture, make the following changes:
formula in G2: =F2-E2
formula in G3: =G2+F3-E3
copy formula from G3 down to the end of the list; the last value is your current balance
edit
sorry ... I seem to have overlooked the break-on-account condition. Well that makes it even easier as there is only one formula you need all the way down ....
to break on customer (provided the customer column is sorted) you would use the following formula
formula in G2: =IF(A2=A1,G1+F2-E2,F2-E2)
copy formula from G2 down to the end of the list
(if this.account = previous.account then calculate.running.total else create.new.balance)
This will work as long as your first customers' name is <> "Account" :-)

Resources