Match Dates and values

xeven_

Active Member
Joined
Jan 20, 2012
Messages
302
Using excel 2016 I have dates in columns A and C and values in columns B and D.
The datesand their corresponding values are not matched but I only want to compare the values in B and D with their correspoding dates. Is there a formula I can put in the adjacent columns to match the dates with one another? I need the dates and values to match to do an accurate comparison om my chart..

Thursday, October 9, 19801.1763Thursday, October 9, 198085.64
Friday, October 10, 19801.1765Friday, October 10, 198085.59
Monday, October 13, 19801.1777Tuesday, October 14, 198085.73
Tuesday, October 14, 19801.1774Wednesday, October 15, 198086
Wednesday, October 15, 19801.1767Thursday, October 16, 198086.09
Thursday, October 16, 19801.1756Friday, October 17, 198086.52
Friday, October 17, 19801.1755Monday, October 20, 198086.98
Monday, October 20, 19801.1754Tuesday, October 21, 198086.92
Tuesday, October 21, 19801.1754Wednesday, October 22, 198087.06

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hi there. If I understand the question correctly, and assuming your data starts in row 2, this formula in E2 would find the relevant rows data from column B: =VLOOKUP(C2,A$2:B$10,2,FALSE) (replace B$10 with B$ followed by the last row number). You can build on this to make a comparison e.g. =IF(VLOOKUP(C2,A$2:B$10,2,FALSE)=D2,"match","no match")

Hope this helps
John
 
Upvote 0
Thanks for the reply. I put the first one in and it seems to N/A in the adjacent cell where the dates dont match. That makes it easier to notice which dates are offset so I can delete/adjust between the two. When trying to go through 10,000 cells of data it gets quite time consuming doing it manually.


Thanks again :)
 
Upvote 0
Hi there. Yes, if the vlookup cant find a matching date it will. I'm not sure I understood your question properly then. Try this improvement: =IF(ISNA(VLOOKUP(C2,A$2:B$10,2,FALSE)),"no match",VLOOKUP(C2,A$2:B$10,2,FALSE)). If you then want to also compare column B with D where the dates match use this: =IF(ISNA(VLOOKUP(C2,A$2:B$10,2,FALSE)),"Date not found",VLOOKUP(C2,A$2:B$10,2,FALSE)=D2,"match","no match"))
 
Upvote 0

Forum statistics

Threads
1,214,667
Messages
6,120,822
Members
448,990
Latest member
rohitsomani

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top