I want to be able to SUM one column and SUM another column and display one over the other, for example.
=SUM(A:A) / SUM(B:B)
But for it not to be divided.
This is to calculate actual profit made out of potential profit i could have made.
Thanks!!
Related
Hi, I have a large dataset where I need to calculate a lot of averages. I have a large table, where every row represents a different timepoint, and every two adjacent columns are a replicate of that timepoint, which I want to calculate the average of and return it in a new table below. Basically, I want to calculate the average of the same row of two columns (i.e. C55 and D55), and put the averages in C92, then move on to the next set of two columns (i.e. E55 to and F55), put the averages in D92 and so on.
I have tried using the Offset formula, but I can't figure it out. Could someone provide me with the correct formula to plug in?
Thanks!!!
If you have Excel 365 you could use this formula in C92 to retrieve the averages for row 55:
=TOROW(BYROW(WRAPROWS(C55:H55,2),LAMBDA(r,AVERAGE(r))))
WRAPWROWS wraps the row into single rows per two columns - then it is easy to calculate the average 'BYROW'.
I would like to get the result for multiple percentage values.
Currently, it's only doing it for a single percentage value, e.g. on my screenshot for the -1,0% value.
The Sales row depends on the values from the Sales Growth rates row.
The result with the sums just sums up the values from Sales.
Is there a way to do it efficiently, without adding 3 more Sales Growth rates rows?
Edit:
Sorry I may not have expressed myself correctly.
The first two Sales growth rates have base values pre-defined.
Its values after 2019 are multiplied with $F$69 * -1,00%.
The Sales rows values are all multiplied with the according Sales growth rates values.
Thus I just want the Sales Growth Rates also being multiplied with the other percentages, thus having a sum of sales for each of the 4 percentage values.
One solution for example would be to add 3 more Sales and 3 more Sales growth rates rows, each being multiplied with the 4 percentage values. But that's very inefficient.
Edit2:
This is a screenshot of how it can be done statically in an inefficient way as I mentioned in the last part of my first edit:
My goal is to spare the cells with the green rows as shown in my first screenshot.
I think it is more a mathematical question than an Excel one.
I used a helper column to calculate the growth rates for each scenario.
The formula is =1+A5*$C$3 where A5 is -1% and C3 is 10% under 2019. Drag it down to work out the growth rates for -0.5%, -1.5% and -2%.
Then you can use either of the following formulas to find out the total sales for each scenario:
=SUM($B$2:$C$2,$C$2*(B5+B5^2+B5^3+B5^4+B5^5+B5^6+B5^7+B5^8+B5^9+B5^10+B5^11))
or
=SUM($B$2:$C$2)+SUMPRODUCT($C$2*POWER(B5,ROW($1:$11)))
Drag them down to apply to each scenario.
Let me know if you have any questions. Cheers :)
I need to calculate the average value of a column contain temperature values (column H). The difficult part is that I want to average only specific cells of this column, that meet certain criteria. More specifically, I want to average temperature values from column H, only if the wind direction is northwest,which is detoned as "NW", the values of which are in column J, as well as if the wind speed is lower than 2 (column D). I used the AVERAGEIFS command but I recieve a message that "excel the formula you typed contains an error".
AVERAGEIFS($J$3:$J$5434;"NW";$H$3:$H$5434;D3:D5434;"<2")
Is the averageifs not the proper command to calculate this? Do you have any other ideas on how I could do it?
=AVERAGEIFS(H3:H5434;J3:J5434;"NW";D3:D5434;"<2")
should work, where the main difference is that the column to be averaged comes first. Since there seems no need to copy this formula around the $s seem redundant.
I have 3 columns that guess what a number should be, and then the actual column of what the numbers are. I need to determine mathematically overall a few things. (Each column is a prediction and there are 3 sources.)
Which column was the closest to the actual column.
Which column was the closest to the actual column, but was larger than the actual column. (Supervisor would rather guess high than low.)
Which column should I use in assisting me predict the actual numbers for next year.
I'm not sure if I should use only Conditional Formatting, or have columns with the percentages of over / under. What do you recommend and how would you do this?
Thank you!
I would use root-mean-square to evaluate each option. For example, to compare cols A and D, use:
=SQRT(SUMPRODUCT((A2:A15-D2:D15)^2))
then compare B and D. Finally compare C and D.
Use whichever column has the lowest RMS score.
All functions I seem to look at i.e. IF, SUMIF/S and COUNTIF/S keep returning the number of cells that meet my conditions. What I want to obtain is one single total of select values within a column which meet conditions in one column and another condition in a second column.
For example I have total meters of sections of a pipeline in column A, in column B it specifies what ground type the pipeline crosses beneath (e.g. field, footpath, road). In column C I have the diameter of the pipe (200, 150, 65).
So say I want from column A a total meters of pipe that passes under a field and is 200 in diameter.
How would I achieve this using a formula in Excel?
Seems you have already come across:
=SUMIFS(A:A,B:B,"field",C:C,200)