nikkigotro
New Member
- Joined
- Oct 17, 2013
- Messages
- 6
I am working on a project in Excel 2013 in which I have data on two separate tabs. I am looking at the time stamp that a call was placed in one of our systems and am trying to use a lookup to find the closest corresponding time stamp on the orders data (on the other sheet) and return a unique order number for each call. I can get order numbers to pull over using both an INDEX MATCH and a VLOOKUP, but about 1/3 of my results are duplicates. Any help that I could get would be greatly appreciated!
Sheet 1
[TABLE="class: outer_border, width: 500, align: center"]
<tbody>[TR]
[TD]Timestamp[/TD]
[TD]Order[/TD]
[/TR]
[TR]
[TD][TABLE="width: 157"]
<tbody>[TR]
[TD]41556.003125[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 77"]
<tbody>[TR]
[TD="align: right"]2219680408[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 157"]
<tbody>[TR]
[TD]41556.0065740741[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 77"]
<tbody>[TR]
[TD="align: right"]2218774489[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 157"]
<tbody>[TR]
[TD]41556.1103009259[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 77"]
<tbody>[TR]
[TD="align: right"]2219672856[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 157"]
<tbody>[TR]
[TD][TABLE="width: 157"]
<tbody>[TR]
[TD]41556.5734837963[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 77"]
<tbody>[TR]
[TD="align: right"]2219670371[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
Sheet 2
[TABLE="class: outer_border, width: 500, align: center"]
<tbody>[TR]
[TD]Order[/TD]
[TD]Timestamp[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][TABLE="width: 136"]
<tbody>[TR]
[TD="class: xl65, width: 136"]41556.2737037037[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][TABLE="width: 136"]
<tbody>[TR]
[TD="class: xl65, width: 136"]41556.321087963[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][TABLE="width: 136"]
<tbody>[TR]
[TD="class: xl65, width: 136"]41556.3980439815[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][TABLE="width: 136"]
<tbody>[TR]
[TD="class: xl65, width: 136"]41556.425462963[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
The "Order" Column on the second sheet is the one I am trying to fill in based on approximate data in the first sheet (there should not be any cases where these match exactly). I just need unique order numbers in my second sheet. Also, the very first timestamp produces N/A error because there is not an order with a timestamp that comes in previous to that call. Is there a fix for this as well?
Thank you in advance!!!
Sheet 1
[TABLE="class: outer_border, width: 500, align: center"]
<tbody>[TR]
[TD]Timestamp[/TD]
[TD]Order[/TD]
[/TR]
[TR]
[TD][TABLE="width: 157"]
<tbody>[TR]
[TD]41556.003125[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 77"]
<tbody>[TR]
[TD="align: right"]2219680408[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 157"]
<tbody>[TR]
[TD]41556.0065740741[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 77"]
<tbody>[TR]
[TD="align: right"]2218774489[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 157"]
<tbody>[TR]
[TD]41556.1103009259[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 77"]
<tbody>[TR]
[TD="align: right"]2219672856[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 157"]
<tbody>[TR]
[TD][TABLE="width: 157"]
<tbody>[TR]
[TD]41556.5734837963[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 77"]
<tbody>[TR]
[TD="align: right"]2219670371[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
Sheet 2
[TABLE="class: outer_border, width: 500, align: center"]
<tbody>[TR]
[TD]Order[/TD]
[TD]Timestamp[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][TABLE="width: 136"]
<tbody>[TR]
[TD="class: xl65, width: 136"]41556.2737037037[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][TABLE="width: 136"]
<tbody>[TR]
[TD="class: xl65, width: 136"]41556.321087963[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][TABLE="width: 136"]
<tbody>[TR]
[TD="class: xl65, width: 136"]41556.3980439815[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][TABLE="width: 136"]
<tbody>[TR]
[TD="class: xl65, width: 136"]41556.425462963[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
The "Order" Column on the second sheet is the one I am trying to fill in based on approximate data in the first sheet (there should not be any cases where these match exactly). I just need unique order numbers in my second sheet. Also, the very first timestamp produces N/A error because there is not an order with a timestamp that comes in previous to that call. Is there a fix for this as well?
Thank you in advance!!!