Get value of columns in Excel - excel

Here i got a table in Excel. But how can I make these columns calculate in the 4th column the average from the ABC colums in front of it? I know how I can do it manually: AVERAGE(A1:A3) per column but that takes way too long.. Someone know a shortcut?

The correct formula to measure averages for the 3 columns to a cell's left is AVERAGE(A1:C1). Beneficially, we don't have to enter it for each row. Instead, enter it once in row 1. Next, if you hover your mouse over the lower right corner of the cell, the mouse cursor will turn into a small icon that looks like a t. Once this happens, click and drag the formula down as far as you'd like.

Related

Excel--Show X-Value of Data when Y-Value is a Maximum

I have multiple Excel spreadsheets with two columns of data (x-coordinates in Column A and y-coordinates in Column B). In another cell, F4, I have the maximum value of Column B. However, I do not know which cell this maximum value is found in. In cell F3, I want the CORRESPONDING x-value to be written.
I'm sure there is an easy way to do this, but I am unaware of this method at the moment.
I will take any and all suggestions. Thanks in advance.
Use INDEX/MATCH:
=INDEX(A:A,MATCH(F4,B:B,0))
when you're in the home button, on the top left you'll find a button called 'filter'.
Highlight column B, click the filter button, then filter from greatest to least.
The greatest value in column B should be at the top.

Excel Color a cell if it is an row outlier

I want to change the color of a cell if it is an outlier in its row, and apply this to all cells in the spreadsheet. Defining an outlier as a value two standard deviations away from the mean (of the row). How could I do this?
Sample Data
Formula I have so far:
=$C$9>(N9+2*$O$9)
This is your formula for you conditional formatting:
=OR(C9>($N9+2*$O9),C9<($N9-2*$O9))
Now you will need to properly apply it to the entire range. In order to do this, follow these steps:
Select the top left corner of your data and drag to the bottom right corner. This should leave the area in a grey zone with the top left cell being a white background and also known as the active cell.
Select conditional formatting from the ribbon and use the formula to determine as you have in your screen shot.
Enter the formula above in the formula bar. Note has the row numbers are not locked in all cases and only the column are locked with $ for column N and O. The formula will adjust itself as it moves through the selected range and away from the active cell which you enter the formula on.
Set up any formatting you want applied when the value of a cell is more than 2 std away from the mean.
Proof of Concept

Drag formula a vertically and horizontally in Excel

I trying to populate the formula of distance between two points-shown in the image below-I want to be able to type the equation in one cell and drag it vertically and horizontally to populate the matrix. I tried to $, but it didn't give the desired results. Please see the image below as an illustration; it's an example. Thank you in advance.
Excel doesn't understand the reference to x1 and x2. What you need to do first is type in the topmost cell coordinates like so:
sqrt((D6-H6)^2+(E6-I6)^2)
Then drag down from the corner of the cell containing the formula and Excel should extrapolate the forumla for you to populate the rest of the cells. Also, you can also simply click on the cells to insert them into the formula instead of typing them in.
As you drag down, Excel should automatically repeat the formula by incrementing the row number by one for each row you drag the cursor to:
sqrt((D7-H7)^2+(E7-I7)^2)
sqrt((D8-H8)^2+(E8-I8)^2)
sqrt((D9-H9)^2+(E9-I9)^2)
...
EDIT
If you're doing matrix multiplication, this may not work smoothly for you. Try giving this a read:
http://spu.fem.uniag.sk/cvicenia/ksov/hanova/Econometrics%20I/matrices2.pdf

Trendline conditional formatting

I wasn't successful in finding a solution to my question by googling it, so i hope here there are experts that can help.
I just have one set of data over time (the number of actions per date, so for one month, two columns and 30 rows). I am using a clustered column chart to visualize that data, and have placed a trendline on it.
I would like to change the color of the trendline dynamicaly, to RED if it it descending, or GREEN if ascending. That's it.
Whatever option I tried in Excel 2013, I haven't found the solution, and programmaticaly, I am too "dummy".
I have an approach that skips the built-in trendline. You calculate your own slope, intercept, and correlation, plot your own trendline(s), and use your own formula in the chart. In fact, you have two lines to go with your columns, one that appears if the slope is positive and the other if the slope is negative.
Here's how:
In the screenshot above I have your data in columns A and B. I calculate some statistics as follows:
cell G2: =SLOPE(B2:B12,ROW(B2:B12))
cell G3: =INTERCEPT(B2:B12,ROW(B2:B12))
cell G4: =CORREL(B2:B12,ROW(B2:B12))
I generate the formula in cell G6:
="Y = "&TEXT(G3,"0.0000")&" + "&TEXT(G2,"0.0000")&" * X"&CHAR(10)&"R² = "&TEXT(G4^2,"0.0000")
The superscript "²" is inserted by holding Alt while typing 0178 on the numeric keypad. "0.0000" is the format I'm using to display the cell values in the formula; without using the TEXT function, you'll get something with way too many digits to be useful.
The formulas in C2 and D2 (copied down the column as needed) are:
cell C2: =IF($G$2>0,$G$3+$G$2*ROW(),NA())
cell D2: =IF($G$2<0,$G$3+$G$2*ROW(),NA())
Because of the IF and the NA(), you get values only in one column and #N/A errors (which won't plot in a line chart) in the other, depending on slope.
Create a clustered column chart using all four columns, then change the chart type of the two trend series to line chart. Format the columns and lines as desired.
Select the title by its border, so the cursor isn't in the text of the title. Type =, then click on the cell with the formula. This link will cause the title to update if the formula changes. Change the title text size from huge to something reasonable.
Delete the legend if desired. In this case it really isn't needed.

how to create column of cell-by-cell sums in excel

I have a spreadsheet that is extremely long and I would like to create a new column (actually, 8) where each cell in the new column is the sum of two cells in other columns. An obvious answer is to create the column, create an instance of the formula in the first cell, and drag the formula down. However, since the spreadsheet is so long and I would like to do this 8 times, that process does not make sense for me. Is there an automated way to do this? I have never worked with VBA but have enough programming experience that I figure I could figure it out. Thank you.
What I do, E.g. long data in columns A & B
Put formula in C1 & D1
Click in B1, Ctrl+down-arrow to go to the last cell, go over to C & D & type in any value
Click C1, Shift+ctrl+down-arrow to select the empty cells, same with left-arrow to select horizontally
ctrl+D to fill with the formula
highlight the cell(s). double click on the black box in the corner, and the formula gets filled down to the end of the data next to it.
In pictures:
hover here:
Your cursor should change to a black + when you are hovering over the dot.
After you double click, the formula will be filled down
this way will copy the formatting of that cell, but if you don't want that, you can click on the menu popup (lower left of filled area)
and select fill without formatting

Resources