I'm trying to find a formula that could help me with the sum I'm trying to do.
I have a file with differents amounts received at different period that need to be accrued on 13 period and next to that I have a column with a year to that of what is collected.
Exemple in P1 I received 15 000$ which is 1 154$ monthly. Next period I have a additional amount of 200 000$ divided by 13 amount to 15 385$ for a new YTD P2 at 17 693.
The formula I used looks like this for Period 2:
=E3*B4+D4
Period 3 looks like this:
=$E$3*$B5+$D$4*(B5-$B$4)+D5
Period 4 looks like this:
=$E$3*$B6+$D$4*(B6-$B$4+1)+$D$5*(B6-$B$5+1)+D6
And I added to the formula like this until my P13. Is there any other way this could be done ? You can find below an example of the formulas on multiple line:
Link to example file
Thank you!
I think your math is a little off (even though your year end totals are correct).
This is my suggestion:
Add in a column between Monthly and YTD for Monthly Collections. The formula in that column will be =D3 in the first used cell, and then drag down =E3+D4 and so on til the end of the list.
Then in the YTD column put =E3 in the first used cell, and then drag down =F3+E4 and so on til the end of the list.
This should help you eliminate the long manual formulas.
Related
I have an excel document with values for every hour for every day of a year.
In total there are 365*24=8760 values.
I would like to get the average value at every hour, (etc at 00:00, 01:00, 02:00..)
I was thinking maybe to sum every 24th value and then divide it by 365 but I don't know how to sum every 24th value.
Does anyone know how to do that?
Thanks for any help!
The clearer way of doing it is using a column to get the hour of each data point and adding a AVERAGEIF formula to calculate the average of every hour.
I am assuming your date/time is on A2:A8761 and the values on B2:B8761.
On C2, add the formula =HOUR(A2) and drag it down to find the hour of every data observation (for newer excel versions you can also
do =HOUR(A2:A8761) and the formula will automatically spill down). The results are numbers from 0 to 23.
Building the summary table:
Add a column listing the numbers 0 to 23 to represent the 24 hours. I did it on column E2:E25. Note that those are numbers, not date/time.
On F2, add the formula =AVERAGEIF($C$2:$C$8761,E2,$B$2:$B$8761) to calculate the average of the hours listed on column E. Then, drag it down. Finally, you will have the values you need on F2:F25.
Find bellow my result.
Please let me know if you have any question so I can improve the answer.
I would like to ask for a bit of help, as I can't figure it out myself.
What I would like to end up is, get the total calculation of the work time hours for each name only for the month written in A5 cell.
So far I used this code to have the start date Monday, based on the date in A5 cell.
=A5-MOD(A5-2,7)
With this community help I ended up with this code to count the work time for each name in the week (lots of students in the schedule)
=SUMPRODUCT(IFERROR(TIMEVALUE(MID(C7:H7,FIND("-",C7:H7,1)+1,LEN(C7:H7)-FIND("-",C7:H7,1))) - TIMEVALUE(LEFT(C7:H7,FIND("-",C7:H7,1)-1)),0))
The help I need, if it's possible, is to figure out how to get the total work time only for the month entered in cell A5 (which is 1.october - 31.october) without counting the last 3 days in September. I plan to use this spreadsheet for the following months as well. I tried to use COUNTIFS, but no luck so far. Also, I am using an online excel version, which is very limited in the menu.
Thanks in advance for any help.
=TEXT(c6, "mmm") will give Sep, while TEXT(A5, "mmm") will give Oct. You need to SUMIF the month matches.
You could incorporate this together with the equation you already have but I think it might be easier to create a duplicate table below the main table, copying the day of the month and the names and using your above mentioned equation to get the hours to be summed.
Either above or below the date, or instead of the date, I'd pull out the month with =TEXT(C6, "mmm")
Lets say the duplicate table for cells B16-I12 was in cells B106-I112 with the extra row specifying the month above this in row 105 (=TEXT(C106, "mmm") etc.).
Then in cell D24, you'd have
=SUMIF(C$105:I$105,TEXT($A$5,"mmm"),C107:I107) +[same again for the next week, cells B15-I21] + [same again for the next week] etc.
This can then be copied down for all the names.
You could also feed this information up into cells K7, K8,K12, becuase you only need this for the first and last months. So J6 would read 'hours this week' K6 would read Hours last month, L6, hours this month. Then D24 could sum L7 and J16 etc.
I have a column(A) of times, stored in time format. And I have columns(B-M) of hourly times, 08:00:00 - 09:00:00 etc. I want Excel to put a 1 in the correct hourly column based on the time, and hopefully a zero in all the others. I thought COUNTIFS could do this, I tried
=COUNTIFS(A2, ">=08:00:00", A2, "<09:00:00") So if the time is between 8 and 9am I would get a 1 in column B. Obviously it didn't work, hence why I'm here.
Excel book 1
You can use this formula
=AND($A2>=TIMEVALUE(LEFT(B$1,5)),$A2<TIMEVALUE(RIGHT(B$1,5)))
Put it in B2 and pull it downwards and sideways. This takes the time ranges from the first row and looks if the time from the first column is inside the current range.
If you don't want True or False(in the example pictures it's in german) you can multiply the formula by 1 to get 0 and 1 as results or wrap an if around to get any desired output.
Assume my Dec'2020 revenue is 1000. My total 2021 revenue forecast is 15000.
I turned this into a monthly revenue increase evenly distributing the growth.
I set every month equals to their previous month PLUS a number(currently blank) throughout the 2021.
Then I have a SUM() formula to total every month of 2021.
I would then use goal seek to set the SUM to 15000 and change the value of the "number".
Results look like this
This has produced the desire result.
However, I am wondering if there's a faster way to do this? I would need this in a formula that I can simply drag over and get the results.
I have tried PMT formula with no luck.
Not sure if I understand what you after correctly, but here is my attempt:
Suppose you have the following named ranges:
Rev_Fcst being the forecast revenue for the next year which is 15,000 in your example;
Rev_Mth0 being the starting revenue of Month zero which is 1,000 in your case;
Rev_Growth being a dollar value of monthly revenue growth, and in your assumption this figure is fixed across the 12 months.
Suppose your data is in Column A:M being the 13 months from Dec-2020 to Dec-2021,
Use this formula to calculate Rev_Growth:
=(Rev_Fcst-Rev_Mth0*COLUMNS($A$1:$M$1))/SUMPRODUCT(ROW($1:$12))
Suppose the revenue of Month Zero Dec-2020 is in Cell A2, then in Cell B2 enter the following formula, then drag it across all the way to Month Dec-2021.
=A2+Rev_Growth
See below demonstration:
Let me know if you have any questions. Cheers :)
I am looking at a rather large excel spreadsheet with a long list of dates on it. Each one of these dates marks an error. What I am trying to find out is how many errors occur per week? From there I hope to make a control chart. Thanks so much and please let me know if there are any additional details I need to provide.
Just Like TMH8885 metioned get week number from each date and then assuming that your dates are in Column A and weeknumbers are in column B make a table that list numbers from 1 to 52 next to which enter a COUNTIF(B:B,D2)(change D2 to cell pointing at correct week number of course).
In the screen shot I was lazy and included only 22 weeks for my table.
You could use the WEEKNUM function to pull which week of the year the error occurred in.
=WEEKNUM(your date cell)
From there you could use a pivot table to pull in the weeks then find the average count of errors.