Formula Help...First instance of a string based on another variable.

larsocha

New Member
Joined
May 30, 2018
Messages
5
Hello,

What I want to do is find the first instance of a "string" contained within a cell based on a grouping of other cells and return another cell...

Looking at the table below, I want to find the first "Transfer" in column D for the group of specified ID's in Column A and return the value in Column B. So...E1 would return 3/22/18 16:11, E2 return 3/24/18 16:11, E3 return 3/27/18 16:11 and E4 return 4/27/18 16:11.

IDDate/TimeEventDescription
E13/19/18 16:11Account Created
E13/20/18 16:11Logged outTimeout
E13/21/18 16:11Logged outTimeout
E13/22/18 16:11Logged outTransfer
E13/23/18 16:11Logged outTransfer
E13/24/18 16:11Logged outTransfer
E23/19/18 16:11Account Created
E23/24/18 16:11Logged outTransfer
E23/26/18 16:11Logged outTransfer
E23/27/18 16:11Logged outTransfer
E33/20/18 16:11Account Created
E33/21/18 16:11Logged outTimeout
E33/27/18 16:11Logged outTransfer
E43/29/18 16:11Account Created
E44/27/18 16:11Logged outTransfer
E45/02/18 16:11Logged outTransfer
E45/03/18 16:11Logged outTransfer
E45/04/18 16:11Logged outTransfer

<tbody>
</tbody>

Any help would be appreciated...Thanks!
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
In Sheet2 column A put the E values E1 to E4

In Sheet2!B1
Array formula
=MIN(IF((Sheet1!D1:D1000="Transfer")*(Sheet1!A1:A1000=A1),Sheet1!B1:B1000))
and copy down the column
 
Upvote 0
This is working so for...one follow-up question.

Is there a way to make the ="Transfer" section a variable string that contains "Transfer"? Something like ="*transfer*"?

Thanks.
 
Upvote 0
Array formula again
=MIN(IF(ISNUMBER(SEARCH("Transfer",Sheet1!D1:D1000))*(Sheet1!A1:A1000=A1),Sheet1!B1:B1000))
 
Upvote 0

Forum statistics

Threads
1,215,212
Messages
6,123,656
Members
449,114
Latest member
aides

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