Return the Value of One Cell only if a Different Cell Contains a Key Word

nikSp910

New Member
Joined
Aug 8, 2019
Messages
2
Hello,
I'm trying to use a contains criteria to pull a time stamp to a new cell. I have tried everything I know. Below is what I'm working with. I'm trying to take the time stamp in the first column and put it in the last column but only if the middle column contains the word "Alerting".

So, start with this:
[TABLE="width: 519"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]CallEventLog[/TD]
[TD]Column1[/TD]
[TD]assigned user[/TD]
[TD]Alert time[/TD]
[/TR]
[TR]
[TD="align: right"]8:38:07 [/TD]
[TD]ACD interaction assigned to SueM[/TD]
[TD]SueM[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]8:38:07 [/TD]
[TD]ACD - Alerting: SueM[/TD]
[TD]SueM[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]8:38:07 [/TD]
[TD]Sent to user SueM[/TD]
[TD]SueM[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


End with this:
[TABLE="width: 519"]
<colgroup><col><col><col><col></colgroup><tbody></tbody>[/TABLE]

[TABLE="width: 519"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]CallEventLog[/TD]
[TD]Column1[/TD]
[TD]assigned user[/TD]
[TD]Alert time[/TD]
[/TR]
[TR]
[TD="align: right"]8:38:07 [/TD]
[TD]ACD interaction assigned to SueM[/TD]
[TD]SueM[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]8:38:07 [/TD]
[TD]ACD - Alerting: SueM[/TD]
[TD]SueM [/TD]
[TD]8:38:07[/TD]
[/TR]
[TR]
[TD="align: right"]8:38:07 [/TD]
[TD]Sent to user SueM[/TD]
[TD]SueM[/TD]
[/TR]
</tbody>[/TABLE]
****** id="cke_pastebin" style="position: absolute; top: 0px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">[TABLE="width: 519"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]CallEventLog[/TD]
[TD]Column1[/TD]
[TD]assigned user[/TD]
[TD]Alert time[/TD]
[/TR]
[TR]
[TD="align: right"]8:38:07 [/TD]
[TD]ACD interaction assigned to SueM[/TD]
[TD]SueM[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]8:38:07 [/TD]
[TD]ACD - Alerting: SueM[/TD]
[TD]SueM[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]8:38:07 [/TD]
[TD]Sent to user SueM[/TD]
[TD]SueM[/TD]
[/TR]
</tbody>[/TABLE]
</body>
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Welcome to the forum!

Try:


Book1
ABCD
1CallEventLogColumn1assigned userAlert time
28:38:07ACD interaction assigned to SueMSueM 
38:38:07ACD - Alerting: SueMSueM8:38:07
48:38:07Sent to user SueMSueM
Sheet3
Cell Formulas
RangeFormula
D2=IF(ISNUMBER(SEARCH("alerting",B2)),A2,"")
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,853
Members
452,361
Latest member
d3ad3y3

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