Excel - keep common dates - excel

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.

Related

Excel Column B has duplicates and only 1 row has value in Column A for each set of duplicates in B, return something to identify there is a match

Excel Formula (non VBA preferred)
Column B has duplicates and only 1 row has value in Column A for each set of duplicates in column B.
Need to return "something"/True/False/wtvr in column C to identify there is a value in A and B anywhere for the duplicate values in column B, leaving items without something in Column A blank.
Pretty easy using COUNTIFS:
=IF(COUNTIFS(B:B,B2,A:A,"<>")>0,"something","")
If column A contains a formula that returns a null string (""), something like:
=IF(SUMPRODUCT((B$2:B$18=B2)*(LEN(A$2:A$18)>0))>0,"something","")
where B$2:B$18 and A$2:A$18 represent the ranges with data.

Conditional Formatting on Sum of Two Columns in Excel

I have two conditional formatting rules. One highlights the minimum value of the column and works correctly (Column B). I want to also highlight the adjacent columns within the same row (Columns D and E). Columns D and E in the same row will always add up to the value in columns B.
Essentially, I need equivalent code to be put into the conditional formatting field that resembles this:
=($B$175=($D$175+$E$175)) AND $B$175=MIN($B$175:$B$190)
=SMALL($B$175:$B190,1)
This will incorrectly fill any item in column D that matches the minimum of column B.
=SMALL($D$175:$E$190,COUNTIF($D$175:$E$190,0)+1)<br>
This will incorrectly fill the minimum of column between columns D and E.
=$B$175=($D$175+$E$175) or <br>
=SMALL(($D$175:$D$190)+($E$175:$E$190), 1)
This will incorrectly fill all rows of columns D and E.
=$B$175=MIN(($D$175:$D$190)+($E$175:$E$190), 1)<br>
This will not fill any rows column between columns D and E.
I know I'm close, but can't seem to figure it out!
You just need to check that the value in B is the SMALL of $B$175:$B$190. You don't need to consider the sum of E and F.
=$B175=SMALL($B$175:$B190,1)

How to average certain values in a range of dates in 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.

I have two large columns, one 391k long and one 50k. I need to have the cells with the same data put next to eachother

Both columns A & B have phone numbers. Each of the 50,000 column B does appear in the column A with 391,000 too.
I just want the 50,000 column B to have each number matched up with the same ROW as the 391k column A.
This way the same row for both column A and column B have the same value if the data is in both rows. If there is a phone number on the 391k list, but not on the 50k list, then in that row, column A would have a phone number, and column B would be blank.
Move Column B data to Column D
Then in Column B, use the following formula cell (B2) as an example.
=vlookup(A2,D:D,1,0)
That will match the value in A with the list in column D. Copy and paste special values and you are done.
In cell C1 and copied down to the last phone number in column A:
=IF(COUNTIF($B$1:$B$50000,A1)=0,"",A1)
Then hide column B.

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