How to average certain values in a range of dates in excel - excel

A column are dates, B column are values. There might be 10 values in column B which corresponding to the same dates in column A. On the next day, there might be 14 values in column B corresponding to the next date in column A. I would like to average values in column B on the same date and I have over thousands of lines. Any suggestion of how to do this efficiently?

Use a PivotTable with dates for ROWS and Average of value for Σ VALUES:

AVERAGEIF
Create Column C with only unique dates for A.
In Column D, formula should be: =AVERAGEIF(A$1:A$100, C1, $B1:B$100)
Adjust row numbers as necessary for A and B.

Related

Power Query Excel formula

In excel I have three columns A, B, C. Each column has values from A2:A33, B2:B33, C2:C33. In this column A value is 55.jpg and column B value is 1 for all rows. The value in C is different . In this case I want to align the values in Row 2 to single row like C3 in D2....

Averaging + Summing a range of numbers in excel based on other cell values

I have a large amount of data where I have a Column A with a number x and two other columns B & C with different numbers.
I want to sum numbers in column B and take the average of the numbers in column C but only while column A has the same value.
So while x is 1 in column A I want to take the average of the numbers in Column B and sum up the numbers in Column C. If value in column a changes to 4 i want to take the sum & average of the corresponding values.
Thanks for your replies.
I solved it with a pivot table

Excel - keep common dates

Column A has a set of dates, column B has an exchange rate for every cell in column A.
Similarly, column C has a set of dates while column D has an exchange rate for every cell in column C.
However, the set of dates in A and C is not the same.
I want to keep the common dates in both rows and their corresponding rates in the other two rows.
How can I do this?
Use the vlookup function in column E where the key is the date in column C, and the lookup range is columns A and B, use a column index of 2 (so it displayes the rate from column B) and make sure that the final argument is false so that it finds the exact value. This will return a #N/A for dates that are not also in column A.
Next, copy column C, and paste values. This will hardcode the values that the formula displays. Now you can delete all rows that have #N/A in column E, and you are left the data you want in columns C to E.

in excel check a column with text value if true return numeric value in next column

I have two columns, A, B and C,
Column A has two text values "Petrol" & "Butane"
column B has just numeric values (i.e their cost in USD)
I need to run a formula in column C so i can check column A for "Petrol" and check corresponding rows in Column B for their value and then get a SUM of those numeric values as a total cost in column C
Any help would be appreciated!
Thanks
=SUMIF(A:A,"Petrol",B:B)
And
=SUMIF(A:A,"Butane",B:B)
Any cell you put this in will return the sum of all cells in column B where the value on the same row but in column A is equal to the word.
You can use the ISTEXT function
=ISTEXT(A2) Checks to see if cell A2 has text (TRUE)

Excel formula- Two or more different cells repeat same text

I need help with a formula.
In Column A I have a list of numbers or text.
In column B, I have another list of numbers or text, but for example in cell B 10 is the same a number or text as in cell A55. I need a formula in column C10 that will show that the cells B10 and A55 same.
Columns A and B contain different data (text or numbers) but there is a possibility that in column B may be repeated as the data in column A.
In A column I have about 250 different data in column B maximum of 15, so I need a formula for Column C that will indicate if a value in column B repeats.
I need a formula for excel 2003
This will give you the row number of the first object found in Column A which is repeated in a cell of column B.
=IFERROR(MATCH(B1,A:A,0),"")
With your figures:

Resources