I'm trying to calculate the sales target achievable possibilities in given month.
E.g. If the sales target is 72 units per month, how can we add the formula in google sheets in percentage?
Monthly Sales Target = 72
Units sold so far = 41
Remaining days = 10 (of the month)
How to make the calculation or the formula for 31 (i.e. 72-41)) units needs to be achieved in remaining 10 days? (What is percentage of possibility of we can reach the target within 10 days?)
see:
=IF((B7/B10)*100>100, 100, (B7/B10)*100)
I want to calculate es's indexing rate myself. In stats api,there is a index_time_in_millis field,what's the meaning of the field?
You're close. I believe you can calculate the index rate by doing the following:
Sample the index_total and index_time_in_millis for a couple time periods.
Subtract the index_total (sample period + 1) from index_total for the original sample period.
Subtract the index_time_in_millis (sample period +1) from the index_time_in_millis for the original sample period. Then divide this number by 1000 to get seconds.
Finally take the number from step 2 and divide by step 3. This will give you the number of documents indexed/sec.
Formula: (Tindex_+1 - Tindex)/((Indx_time_milis_+1 - Indx_time_milli)/1000)
I am trying to develop a program to compute the tax for a given base salary, I believe given the format of the income tax table that I have, there should be a formula or algorithm to calculate the tax for a given base salary. Below is the sample format of income tax table. I can do lookups but I think an algorithm or formula might be the best approach.
Annual Salary Monthly From Ranges To Tax Due
18,000.00 0.00 1,500.00 0.00
18,060.00 1,500.01 1,505.00 0.25
18,120.00 1,505.01 1,510.00 0.50
18,180.00 1,510.01 1,515.00 0.75
18,240.00 1,515.01 1,520.00 1.00
.....
27,960.00 2,325.01 2,330.00 41.50 --last line of first format
28,020.00 2,330.01 2,335.00 41.83 -- start of second format
28,080.00 2,335.01 2,340.00 42.33
28,140.00 2,340.01 2,345.00 42.83
I was able to find a formula for the first part and its working find in my program but I can't make the second part work.
The formula for the first part is below :
The tax is 0.25 on every 5.00 or portion above 1500. So I am using
Ceil((monthly−1500)/5) * 0.25
I have tried similar methods for the second pattern but its not working so far
It seems like you just want to offset it by some number, specifically 41.33.
41.33 + Ceil((monthly − 2330) / 5) * 0.5
Although this seems like a better solution: (considering that it might be the least effort to deal with new versions of it)
Reading the data in in some automated way
Doing a binary search for the range the salary falls under
Look up the tax due
A fully automated algorithm:
linear fit of the salary/tax table;
interpolation search for the exact value.
How do I do time/hour arithmetic in a Google spreadsheet?
I have a value that is time (e.g., 36:00:00) and I want to divide it by another time (e.g., 3:00:00) and get 12. If I divide just one by the other, I get 288:00:00 when what I want is 12 (or 12:00:00).
Note that using the hours() function doesn't work, because 36:00:00 becomes 12.
When the number being returned by your formula is being formatted as a time, and you want it formatted as a plain number, change the format of the cell to a plain number format: click the cell and then click Format, Number, Normal.
Time values in Google spreadsheet are represented as days and parts of days. For example, 36:00:00 is the formatted representation of the number 1.5 (a day and a half).
Suppose you divide 36:00:00 by 3:00:00, as in your example. Google Spreadsheet performs the calculation 1.5 divided by 0.125, which is 12. The result tells you that you have 12 3-hour intervals in a 36-hour time period. 12, of course, is not a time interval. It is a unitless quantity.
Going the other way, it is possible to format any number as a time. If you format 12 as a time, it's reasonable to expect that you will get 288:00:00. 12 days contain 288 hours.
Google Sheets now have a duration formatting option. Select: Format -> Number -> Duration.
Example of calculating time:
work-start work-stop lunchbreak effective time
07:30:00 17:00:00 1.5 8 [=((A2-A1)*24)-A3]
If you subtract one time value from another the result you get will represent the fraction of 24 hours, so if you multiply the result with 24 you get the value represented in hours.
In other words: the operation is mutiply, but the meaning is to change the format of the number (from days to hours).
You can use the function TIME(h,m,s) of google spreadsheet. If you want to add times to each other (or other arithmetic operations), you can specify either a cell, or a call to TIME, for each input of the formula.
For example:
B3 = 10:45
C3 = 20 (minutes)
D3 = 15 (minutes)
E3 = 8 (hours)
F3 = B3+time(E3,C3+D3,0) equals 19:20
I had a similar issue and i just fixed it for now
format each of the cell to time
format the total cell (sum of all the time) to Duration
I used the TO_PURE_NUMBER() function and it worked.
So much simpler: look at this
B2: 23:00
C2: 1:37
D2: = C2 - B2 + ( B2 > C2 )
Why it works, time is a fraction of a day, the comparison B2>C2
returns True (1) or False (0), if true 1 day (24 hours) is added.
http://www.excelforum.com/excel-general/471757-calculating-time-difference-over-midnight.html
if you have duration in h:mm, the actual value stored in that cell is the time converted to a real number, divided by 24 hours per day.
ex: 6:45 or 6 hours 45 minutes is 6.75 hours 6.75 hours / 24 = 0.28125 (in other words 6hrs45minutes is 28.125% of a day). If you use a column to convert your durations into actual numbers (in example, converting 6:45 into 0.28125) then you can do you multiplication or division and get the correct answer.
In the case you want to format it within a formula (for example, if you are concatenating strings and values), the aforementioned format option of Google is not available, but you can use the TEXT formula:
=TEXT(B1-C1,"HH:MM:SS")
Therefore, for the questioned example, with concatenation:
="The number of " & TEXT(B1,"HH") & " hour slots in " & TEXT(C1,"HH") _
& " is " & TEXT(C1/B1,"HH")
Cheers
In an fresh spreadsheet with 36:00:00 entered in A1 and 3:00:00 entered in B1 then:
=A1/B1
say in C1 returns 12.
Type the values in single cells, because google spreadsheet cant handle duration formats at all, in any way shape or form. Or you have to learn to make scripts and graduate as a chopper pilot. that is also a option.
I am trying to find interest on a savings account for the following transactions in an mvc.net application:
Date Balance
----------- -------
01-Apr-2011 100
05-Apr-2011 200
30-Apr-2011 300
28-Jun-2011 400
The interest rate is 4% per annum.
Is there a simple way to calculate simple interest for these transactions for the quarter (i.e. 01-Apr-2011 - 31-Jun-2011)? Once I figure it out the calculation for one account, I will write a function to calculate it for all accounts. I got the Average Daily Available Balance(ADAB) as 24500 / 91 = $269.23. I used the below formula to get the simple interest for the quarter. Is it correct? Is there any other method to calculate the interest without using ADAB?
ADAB x (annual interest / 365 x number of days), or 269.23 x (0.04 / 365 x 91) = 2.6849
Sorry, neither calculation is correct. First, 4% interest should be expressed as 0.04. Next, the simple interest calculation should be ADAB x (annual interest / 365 x number of days), or 269.23 x (0.04 / 365 x 91) = 2.6849.
Because this is 4% simple interest for one quarter, if your answer is not roughly 1%, there is a problem.