Let's say you have a table like this
Frequency
Cost
Monthly
10.99
Annually
11.99
Monthly
12.99
Annually
13.99
Monthly
10.99
What's the best formula to calculate the total of items that have a monthly cost and then the total of items that have an Annually cost?
So replace X's with the totals
Monthly Total
Annually Total
X
X
Note the table above is simplified and I have over 200 rows
=SUMIF(A2:A99,"Monthly",B2:B99)
This seems to work
Related
I have a pivot table that is pulling in quarterly sales data and splitting it up by lead source. I want to calculate the percentage of leads brought in by each person as compared to the subtotal of jobs per quarter.
The problem I am running into is I cannot figure out how to get the subtotal as a number in my calculated field. The equation is simple- total leads per lead source divided by total number of leads. But because I have the pivot table split up by lead source, I cannot get the subtotal to calculate.
In my screenshot, you will see the "% of Total Jobs" column looking correct in the 2021-Q4 category. This is because I just did the Calculated field as "=counta(Project)/16." This is what I want it to look like dynamically for each quarter, with the "16" being replaced with whatever the subtotal of that quarter is. For instance, for Q3, that number should be 14.
The solution might be right under my nose and I'm not thinking of it.
Google Sheets screenshot of pivot table
Thank you!
I'm using google sheets to calculate sales tax for items our company is selling, but when I try and get the total sales tax, it produces it into a large number.
For example, I'm selling an item for $89.26, at a tax rate of 10.25%. The total should be 9.14915, and if it's rounded - would be 9.15
But the total that pops up at the moment is 915.
I'd like to know how to get the desired 9.15 and not 915
If anyone can help that would be great,
Thank you.
multiply it by 0.01
=your_formula_here()*0.01
Alternatively you can divide by 100
=YOURFORMULA()/100
I am using this formula in I5 =G5-SUMIF($A$5:A5,A5,$K$5:K5) to calculate the outstanding amount which is getting 0 once all the fee is paid, then I am pivoting the data to compare the course Fee vs Outstanding amount as shown in the below pivot screen shot:
As per the calculation I want to compare the fee amount received vs remaining balance in the pivot of a respective reg no. If the final balance is 0 it should show in the pivot instead of adding the course outstanding entries.
Please help me out.
Sample worksheet : https://docs.google.com/spreadsheets/d/1roEXEuBBwHU8lKV_QruY6hVjYOOkpwAwAI5x8yuYfZ8/edit#gid=339420405
Solution:
Since the balance goes down every time a payment is made every row, you can use MIN of Course Outstanding Amount Rs on the PivotTable values to show the final balance:
In Google Sheets, is there any way that the "Grand Total" of a column in a Pivot Table is something different than the values of the column represents? (for instance, in a sum column, show the average).
An example would be in a sheet with daily sales of several products. You want in the column for each product to show the yearly sales (sum column), but the grand total to show the average of the values in the column.
This is very easy to do in Excel, since you can configure the Grand Total to be other function. I have not been able to find the same functionality in Google Sheets.
Edit: Original question was badly formulated.
Though it reads Grand Total, the presented result depends on the choices you make on Summarise by as clearly seen in the image.
In our example for Days the Grand Total is the average of all days.
For Points the Grand Total is the minimum of all points
Average daily trading volume is obtained by this formula GOOGLEFINANCE("Symbol", "volumeavg") on Google Spreadsheet. How is the average volume calculated? Based on how many days of moving average?
You can also do the following:
get the last x many days' volume for a ticker (I used 80 to be safe since there are weekends, and holidays for when the market is closed)
query the 50 records descending by date, (for a 50 day moving average use 50, for other averages use your own limit)
get just the prices
average
=average(index(query(googlefinance("AAPL","volume",today()-80,today()), "select * order by Col1 desc limit 50"),0,2))
Juan F Miguez has here "30 days" and a spot test has indicated it is around that period.
Average volume used in finance market is 50 days.
Presently google finance makes the average for 30 days.