Lookup

empee

New Member
Joined
Jan 6, 2005
Messages
16
Hi,

I'm having two collum's in collum F there's a list of dynamic date's.
In collum G there's a number between 0 and 2. like this:

Collum F Collum G
2004-01-01 00:00:00 0
2004-01-13 11:28:42 1
2004-01-13 11:28:43 2
2004-01-13 11:38:27 1
2004-01-13 11:38:29 0
2004-01-14 00:00:00 0

In collum H i want excel to display the date which has a value of 2 in
collum G. So in this case it would be like this:

Collum H
2004-01-13 11:28:43

I've tried doing it with the lookup function:
=LOOKUP(I3;G2:INDEX(G:G;I4);F2:INDEX(F:F;I4))

I3 = the cell with the lookup value, in this case 2
I4 = the cell which counts the number of date's for the end of the table

This function works ok if there are only a few rows, but if there are more
rows in the collum it will just give the last day in the collum.
It's a long question but i hope somebody could help me out here!!!
Thanx! :beerchug:
 
thanx it works great, could you also tell me what it should be if there were more date's with a value of 2?

Thanx!!! :bow:
MP
 
Upvote 0

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