chrismarince
New Member
- Joined
- Jul 16, 2012
- Messages
- 9
I have this spreadsheet...
[TABLE="class: cms_table, width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]8:45[/TD]
[TD]26[/TD]
[TD][/TD]
[TD]85[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9:49[/TD]
[TD]14[/TD]
[TD][/TD]
[TD]30[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10:34[/TD]
[TD]85[/TD]
[TD][/TD]
[TD]14[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]11:12[/TD]
[TD]30[/TD]
[TD][/TD]
[TD]26[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3:05[/TD]
[TD]90[/TD]
[TD][/TD]
[TD]30[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2:33[/TD]
[TD]14[/TD]
[TD][/TD]
[TD]90[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]12:45[/TD]
[TD]26[/TD]
[TD][/TD]
[TD]26[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1:00[/TD]
[TD]90[/TD]
[TD][/TD]
[TD]14[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2:45[/TD]
[TD]30[/TD]
[TD][/TD]
[TD]90[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I need to put a formula in E that says: compare Column D with Column B. For any cell in B that is equal to a cell in D, print the corresponding text from the cell in A in the cell in E. However, once a pair from B and D are found to match, they are no longer used for future comparisons.
I understand that sentence may not be entirely clear. I will show you what the end result should look like...
[TABLE="class: cms_table, width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]8:45[/TD]
[TD]26[/TD]
[TD][/TD]
[TD]85[/TD]
[TD]10:34[/TD]
[/TR]
[TR]
[TD]9:49[/TD]
[TD]14[/TD]
[TD][/TD]
[TD]30[/TD]
[TD]11:12[/TD]
[/TR]
[TR]
[TD]10:34[/TD]
[TD]85[/TD]
[TD][/TD]
[TD]14[/TD]
[TD]9:49[/TD]
[/TR]
[TR]
[TD]11:12[/TD]
[TD]30[/TD]
[TD][/TD]
[TD]26[/TD]
[TD]8:45[/TD]
[/TR]
[TR]
[TD]3:05[/TD]
[TD]90[/TD]
[TD][/TD]
[TD]30[/TD]
[TD]2:45[/TD]
[/TR]
[TR]
[TD]2:33[/TD]
[TD]14[/TD]
[TD][/TD]
[TD]90[/TD]
[TD]3:05[/TD]
[/TR]
[TR]
[TD]12:45[/TD]
[TD]26[/TD]
[TD][/TD]
[TD]26[/TD]
[TD]12:45[/TD]
[/TR]
[TR]
[TD]1:00[/TD]
[TD]90[/TD]
[TD][/TD]
[TD]14[/TD]
[TD]2:33[/TD]
[/TR]
[TR]
[TD]2:45[/TD]
[TD]30[/TD]
[TD][/TD]
[TD]90[/TD]
[TD]1:00[/TD]
[/TR]
</tbody>[/TABLE]
As you can see, the second "30" found in column D (D5) reads the time in Column A corresponding with the second "30" in column B (B9) as opposed to the first "30" in B (B4).
If this could be done with formulas as opposed to Marcos, that is preferable.
Thank you very much for your help!
[TABLE="class: cms_table, width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]8:45[/TD]
[TD]26[/TD]
[TD][/TD]
[TD]85[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9:49[/TD]
[TD]14[/TD]
[TD][/TD]
[TD]30[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10:34[/TD]
[TD]85[/TD]
[TD][/TD]
[TD]14[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]11:12[/TD]
[TD]30[/TD]
[TD][/TD]
[TD]26[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3:05[/TD]
[TD]90[/TD]
[TD][/TD]
[TD]30[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2:33[/TD]
[TD]14[/TD]
[TD][/TD]
[TD]90[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]12:45[/TD]
[TD]26[/TD]
[TD][/TD]
[TD]26[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1:00[/TD]
[TD]90[/TD]
[TD][/TD]
[TD]14[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2:45[/TD]
[TD]30[/TD]
[TD][/TD]
[TD]90[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I need to put a formula in E that says: compare Column D with Column B. For any cell in B that is equal to a cell in D, print the corresponding text from the cell in A in the cell in E. However, once a pair from B and D are found to match, they are no longer used for future comparisons.
I understand that sentence may not be entirely clear. I will show you what the end result should look like...
[TABLE="class: cms_table, width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]8:45[/TD]
[TD]26[/TD]
[TD][/TD]
[TD]85[/TD]
[TD]10:34[/TD]
[/TR]
[TR]
[TD]9:49[/TD]
[TD]14[/TD]
[TD][/TD]
[TD]30[/TD]
[TD]11:12[/TD]
[/TR]
[TR]
[TD]10:34[/TD]
[TD]85[/TD]
[TD][/TD]
[TD]14[/TD]
[TD]9:49[/TD]
[/TR]
[TR]
[TD]11:12[/TD]
[TD]30[/TD]
[TD][/TD]
[TD]26[/TD]
[TD]8:45[/TD]
[/TR]
[TR]
[TD]3:05[/TD]
[TD]90[/TD]
[TD][/TD]
[TD]30[/TD]
[TD]2:45[/TD]
[/TR]
[TR]
[TD]2:33[/TD]
[TD]14[/TD]
[TD][/TD]
[TD]90[/TD]
[TD]3:05[/TD]
[/TR]
[TR]
[TD]12:45[/TD]
[TD]26[/TD]
[TD][/TD]
[TD]26[/TD]
[TD]12:45[/TD]
[/TR]
[TR]
[TD]1:00[/TD]
[TD]90[/TD]
[TD][/TD]
[TD]14[/TD]
[TD]2:33[/TD]
[/TR]
[TR]
[TD]2:45[/TD]
[TD]30[/TD]
[TD][/TD]
[TD]90[/TD]
[TD]1:00[/TD]
[/TR]
</tbody>[/TABLE]
As you can see, the second "30" found in column D (D5) reads the time in Column A corresponding with the second "30" in column B (B9) as opposed to the first "30" in B (B4).
If this could be done with formulas as opposed to Marcos, that is preferable.
Thank you very much for your help!