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

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.

Related

Plot intersection of row and colum values

I feel like there is a simple solution to this that I am overlooking?
I have column headers with unique values and a single column (A) with rows of data. I am looking for a way to mark the cell in the corresponding column for the value found in the column A of the row. See screenshot for example. I don't care what it is marked with (X in screenshot example). A solution that would easily executable against 30+ columns and thousands of rows would be preferable.
Type the following in B2: =IF(B$1=$A2,"X","")
Drag this to the right and down.
But using vba would be better.

Make a list of values in one column, which do not exist in a second column

I have a worksheet with two columns of data. Column A contains thousands of records, and Column B contains only a few records. I wish to identify which values in Column B do not exist in Column A, and display these in Column D. What is the quickest way to achieve this? Happy to use formulas, or otherwise.
I would use conditional formatting and filters:
Formula being:
=ISERROR(MATCH(A1,B:B,0))
I'd then filter on highlighted cells, select the cells in column A and use Alt+; to select only the visible cells, then paste in D.
Last, I'd clear all the conditional formatting and clean up anything left.
Using formulae would be a little more complex; usually the most of the time would be spent designing it, and it's an array formula (invoked correctly only with Ctrl+Shift+Enter):
=IFERROR(INDEX($A$1:$A$27,SMALL(IF(COUNTIF($B$2:$B$6,$A$2:$A$27)=0,ROW($A$2:$A$27),9^99),ROW(D1))),"")
The formula can also take some time to calculate for larger datasets.

Get value of columns in 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.

Displaying value of one cell or multiple cells based on values in other cells

I have an excel spreadsheet that lists a bunch of names and we are keeping track of how many times a certain occurrence happens. What I'm needing to do is find a way to calculate which name has the highest value of occurrences, and then display that name in another cell. What I'd also like to do, is if there is a tie, I'd like to display all of the names of the people who are in the tie for 1st. Any assistance is appreciated.
Thanks in advance.
You can use the Advanced Filter feature to do this:
(Screen shot from Excel 2010)
Formula in cell B2: =COUNTIFS(A:A,A2) (copy down as raf as required)
Formula in cell D2: =MAX(B:B)
Click OK and highest count names will be listed in column F (t and y in this example)

Find and count each occurence of a name is column A then read a value from column B

I need a formula that is beyond me and my Excel skills, I need to insert the number of times a match is found in column A into column C and then insert the total number of days for that person in column D. Can anyone help?
In cell C2:
=COUNTIF(A$2:A$6,A2)
In cell D2:
=SUMIF(A$2:A$6,A2,B$2:B$6)
See also:
COUNTIF
SUMIF
Have you considered using a pivot table? It's a little bit overkill but greatly simplifies what you want to do. Assuming your using Excel 2007:
Select the range of data including column labels.
Go to Insert->[Tables]->PivotTable.
In the dialog box that appears, select Existing Worksheet, choose a cell a click OK.
At this point, the PivotTable pane appears with your field names in one box and four other labeled boxes below.
Drag Name to the Row Labels box.
Drag Name to the Values box.
Drag Days to the Values box.
You're done!

Resources