How can I do this lookup?

chanman

New Member
Joined
Oct 14, 2008
Messages
24
Office Version
  1. 365
Platform
  1. Windows
Hi guys - I need some help returning some data on my spreadsheet
So I have a list of issues with a varying number of comments. In column A I need to show the Date of the latest comment from the user "Helen"
The data in comments in stored as Date/Time ; User ; Comment

Any help appreciated thanks!!

Expected resultComment1Comment2Comment3Comment4Comment5Comment6
01/06/202301/Jun/23 13:19 AM;Helen;Hello05/Jul/23 6:23 PM;Paul;Investigation is in progress
None26/Jun/23 10:19 AM;Paul;Hello
10/07/202305/Jul/23 6:28 PM;Jack;A New Comment10/Jul/23 6:46 PM;Helen;Help me
12/07/202303/Jul/23 6:18 PM;Paul;Will do it tomorrow04/Jul/23 11:11 AM;Jack;No - do it today05/Jul/23 6:23 PM;Helen;Quicker please08/Jul/23 4:22 PM;Helen;Update me now12/Jul/23 6:46 PM;Helen;Stop ignoring me15/Jul/23 5:57 PM;Paul;Hello Helen
01/05/202301/May/23 5:31 PM;Helen;Boo26/Jun/23 5:31 PM;Paul;Hi
None16/Jun/23 12:26 PM;Jack;Hi20/Jun/23 9:06 AM;Paul;Hello20/Jun/23 4:00 PM;Jack; Helen says Hi
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
How about
Fluff.xlsm
ABCDEFG
1Expected resultComment1Comment2Comment3Comment4Comment5Comment6
201/06/202301/Jun/23 13:19 AM;Helen;Hello05/Jul/23 6:23 PM;Paul;Investigation is in progress
3None26/Jun/23 10:19 AM;Paul;Hello
410/07/202305/Jul/23 6:28 PM;Jack;A New Comment10/Jul/23 6:46 PM;Helen;Help me
512/07/202303/Jul/23 6:18 PM;Paul;Will do it tomorrow04/Jul/23 11:11 AM;Jack;No - do it today05/Jul/23 6:23 PM;Helen;Quicker please08/Jul/23 4:22 PM;Helen;Update me now12/Jul/23 6:46 PM;Helen;Stop ignoring me15/Jul/23 5:57 PM;Paul;Hello Helen
601/05/202301/May/23 5:31 PM;Helen;Boo26/Jun/23 5:31 PM;Paul;Hi
7None16/Jun/23 12:26 PM;Jack;Hi20/Jun/23 9:06 AM;Paul;Hello20/Jun/23 4:00 PM;Jack; Helen says Hi
Master
Cell Formulas
RangeFormula
A2:A7A2=IFERROR(--TEXTBEFORE(TAKE(FILTER(B2:G2,ISNUMBER(FIND(";Helen;",B2:G2))),,-1)," ",,,1),"None")
 
Upvote 0
Thanks Fluff - that works a treat, however I missed a step!

It should be " In column A I need to show the Date of the latest comment from a user whos is "Team A"

I have a separate table for user to team:
UserTeam
HelenTeam A
DavidTeam A
JackTeam B
PaulTeam C



It was left out as I though I'd be able to adjust the forumla to do the lookup myself.... but i dont even know where to start.
 
Upvote 0
How about
Fluff.xlsm
ABCDEFG
1Expected resultComment1Comment2Comment3Comment4Comment5Comment6
201/06/202301/Jun/23 13:19 AM;Helen;Hello05/Jul/23 6:23 PM;Paul;Investigation is in progress
3None26/Jun/23 10:19 AM;Paul;Hello
410/07/202305/Jul/23 6:28 PM;Jack;A New Comment10/Jul/23 6:46 PM;Helen;Help me
512/07/202303/Jul/23 6:18 PM;Paul;Will do it tomorrow04/Jul/23 11:11 AM;Jack;No - do it today05/Jul/23 6:23 PM;Helen;Quicker please08/Jul/23 4:22 PM;Helen;Update me now12/Jul/23 6:46 PM;David;Stop ignoring me15/Jul/23 5:57 PM;Paul;Hello Helen
601/05/202301/May/23 5:31 PM;Helen;Boo26/Jun/23 5:31 PM;Paul;Hi
7None16/Jun/23 12:26 PM;Jack;Hi20/Jun/23 9:06 AM;Paul;Hello20/Jun/23 4:00 PM;Jack; Helen says Hi
8
9
10
11
12
13
14UserTeam
15HelenTeam A
16DavidTeam A
17JackTeam B
18PaulTeam C
Master
Cell Formulas
RangeFormula
A2:A7A2=IFERROR(--TEXTBEFORE(TAKE(FILTER(B2:G2,BYCOL(ISNUMBER(SEARCH(";"&FILTER($A$15:$A$18,$B$15:$B$18="Team A")&";",B2:G2)),LAMBDA(bc,SUM(--bc)))),,-1)," ",,,1),"None")
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,180
Messages
6,123,504
Members
449,101
Latest member
mgro123

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