A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Maybe I could have been more clear in my first post.
I think VLOOKUP would work best.
If you have the following in cells A1:D5:
| Dates | Number 1 | Dates | Number 2 |
|---|---|---|---|
| 1 | 1 | 1 | 1 |
| 2 | 2 | 3 | 3 |
| 3 | 3 | 4 | 4 |
| 5 | 5 | 5 | 5 |
Then in F1:F6 you could place:
| Dates |
|---|
| 1 |
| 2 |
| 3 |
| 4 |
| 5 |
Then in G1: Number 1
In H1: Number 2
Then in G2 you can use the formula: =VLOOKUP($F2,$A$2:$B$5,2,FALSE)
and in H2 you can use the formula: =VLOOKUP($F2,$C$2:$D$5,2,FALSE)
Now you can drag cells G2:H2 down to row 6.
You should now see this:
| Dates | Number 1 | Number 2 |
|---|---|---|
| 1 | 1 | 1 |
| 2 | 2 | #N/A |
| 3 | 3 | 3 |
| 4 | #N/A | 4 |
| 5 | 5 | 5 |
The #N/A's are where data was missing. In Excel 2007+ we can use the IFERROR function to handle this if you want your table to visually look nicer. For example, in G2 you could use instead:
=IFERROR(VLOOKUP($F2,$A$2:$B$5,2,FALSE),"")
Now the cells with missing data will _appear_ blank.
Does that help?
Cheers
Rich