Finding a word in a cell and looking down that column and returning a result based on 2 pieces of criteria - Really stuck!

matttytn2

New Member
Joined
Jul 3, 2017
Messages
12
Hello all,

I am hoping someone can help me.

There is a report that shows user files being backed upsuccessfully or not.

In column D is the success status. If a backup fails it tries again up to 3 timesthat same day for each user. The data issorted by username and in date order. My example just has 1 UserName but thiscan be many different people.
In column E I am trying to find out if the backup triedagain and was successful or not; so if cell D contains “failure” I want to lookdown D to find the first instance of the word Success it then needs to check incolumn C if it’s the same day as the failure entry and in column F if it’s the sameusername. If all these conditions aremet return the result “Yes” if not “backup failed on retry”



[TABLE="width: 1139"]
<tbody>[TR]
[TD="width: 64"]Month
[/TD]
[TD="width: 165"]Timestamp
[/TD]
[TD="width: 79"]Day
[/TD]
[TD="width: 151"]BackupSuccessStatus
[/TD]
[TD="width: 877"]SuccessAfterRetry
[/TD]
[TD="width: 183"]UserName
[/TD]
[/TR]
[TR]
[TD]Jul-19
[/TD]
[TD]2019-07-10T03:15:18.303Z
[/TD]
[TD]2019-07-10
[/TD]
[TD]Success
[/TD]
[TD][/TD]
[TD]Joe Bloggs
[/TD]
[/TR]
[TR]
[TD="bgcolor: #D9E1F2"]Jul-19
[/TD]
[TD="bgcolor: #D9E1F2"]2019-07-10T11:14:46.527Z
[/TD]
[TD="bgcolor: #D9E1F2"]2019-07-10
[/TD]
[TD="bgcolor: #D9E1F2"]Success
[/TD]
[TD="bgcolor: #D9E1F2"][/TD]
[TD="bgcolor: transparent"]Joe Bloggs
[/TD]
[/TR]
[TR]
[TD]Jul-19
[/TD]
[TD]2019-07-10T19:15:14.482Z
[/TD]
[TD]2019-07-10
[/TD]
[TD]Success
[/TD]
[TD][/TD]
[TD]Joe Bloggs
[/TD]
[/TR]
[TR]
[TD="bgcolor: #D9E1F2"]Jul-19
[/TD]
[TD="bgcolor: #D9E1F2"]2019-07-11T03:16:13.583Z
[/TD]
[TD="bgcolor: #D9E1F2"]2019-07-11
[/TD]
[TD="bgcolor: #D9E1F2"]Success
[/TD]
[TD="bgcolor: #D9E1F2"][/TD]
[TD="bgcolor: transparent"]Joe Bloggs
[/TD]
[/TR]
[TR]
[TD]Jul-19
[/TD]
[TD]2019-07-11T11:15:07.287Z
[/TD]
[TD]2019-07-11
[/TD]
[TD]Success
[/TD]
[TD][/TD]
[TD]Joe Bloggs
[/TD]
[/TR]
[TR]
[TD="bgcolor: #D9E1F2"]Jul-19
[/TD]
[TD="bgcolor: #D9E1F2"]2019-07-11T19:16:43.063Z
[/TD]
[TD="bgcolor: #D9E1F2"]2019-07-11
[/TD]
[TD="bgcolor: #D9E1F2"]Success
[/TD]
[TD="bgcolor: #D9E1F2"][/TD]
[TD="bgcolor: transparent"]Joe Bloggs
[/TD]
[/TR]
[TR]
[TD]Jul-19
[/TD]
[TD]2019-07-12T03:16:43.754Z
[/TD]
[TD]2019-07-12
[/TD]
[TD]Success
[/TD]
[TD][/TD]
[TD]Joe Bloggs
[/TD]
[/TR]
[TR]
[TD="bgcolor: #D9E1F2"]Jul-19
[/TD]
[TD="bgcolor: #D9E1F2"]2019-07-12T11:14:42.834Z
[/TD]
[TD="bgcolor: #D9E1F2"]2019-07-12
[/TD]
[TD="bgcolor: #D9E1F2"]Failure
[/TD]
[TD="bgcolor: #D9E1F2"]if cell in D contains "Failure" look down D to find "success" and if the date and user name are the same as the failure say "yes" if not "no"
[/TD]
[TD="bgcolor: transparent"]Joe Bloggs
[/TD]
[/TR]
[TR]
[TD]Jul-19
[/TD]
[TD]2019-07-12T19:15:49.091Z
[/TD]
[TD]2019-07-12
[/TD]
[TD]Failure
[/TD]
[TD][/TD]
[TD]Joe Bloggs
[/TD]
[/TR]
[TR]
[TD="bgcolor: #D9E1F2"]Jul-19
[/TD]
[TD="bgcolor: #D9E1F2"]2019-07-13T03:14:57.752Z
[/TD]
[TD="bgcolor: #D9E1F2"]2019-07-13
[/TD]
[TD="bgcolor: #D9E1F2"]Failure
[/TD]
[TD="bgcolor: #D9E1F2"][/TD]
[TD="bgcolor: transparent"]Joe Bloggs
[/TD]
[/TR]
[TR]
[TD]Jul-19
[/TD]
[TD]2019-07-16T11:14:32.349Z
[/TD]
[TD]2019-07-16
[/TD]
[TD]Success
[/TD]
[TD][/TD]
[TD]Joe Bloggs
[/TD]
[/TR]
[TR]
[TD="bgcolor: #D9E1F2"]Jul-19
[/TD]
[TD="bgcolor: #D9E1F2"]2019-07-16T19:14:19.309Z
[/TD]
[TD="bgcolor: #D9E1F2"]2019-07-16
[/TD]
[TD="bgcolor: #D9E1F2"]Success
[/TD]
[TD="bgcolor: #D9E1F2"][/TD]
[TD="bgcolor: transparent"]Joe Bloggs
[/TD]
[/TR]
[TR]
[TD]Jul-19
[/TD]
[TD]2019-07-17T03:14:49.159Z
[/TD]
[TD]2019-07-17
[/TD]
[TD]Success
[/TD]
[TD][/TD]
[TD]Joe Bloggs
[/TD]
[/TR]
[TR]
[TD="bgcolor: #D9E1F2"]Jul-19
[/TD]
[TD="bgcolor: #D9E1F2"]2019-07-17T11:19:17.870Z
[/TD]
[TD="bgcolor: #D9E1F2"]2019-07-17
[/TD]
[TD="bgcolor: #D9E1F2"]Success
[/TD]
[TD="bgcolor: #D9E1F2"][/TD]
[TD="bgcolor: transparent"]Joe Bloggs
[/TD]
[/TR]
[TR]
[TD]Jul-19
[/TD]
[TD]2019-07-17T19:14:35.656Z
[/TD]
[TD]2019-07-17
[/TD]
[TD]Success
[/TD]
[TD][/TD]
[TD]Joe Bloggs
[/TD]
[/TR]
[TR]
[TD="bgcolor: #D9E1F2"]Jul-19
[/TD]
[TD="bgcolor: #D9E1F2"]2019-07-18T03:15:00.344Z
[/TD]
[TD="bgcolor: #D9E1F2"]2019-07-18
[/TD]
[TD="bgcolor: #D9E1F2"]Success
[/TD]
[TD="bgcolor: #D9E1F2"][/TD]
[TD="bgcolor: transparent"]Joe Bloggs
[/TD]
[/TR]
[TR]
[TD]Jul-19
[/TD]
[TD]2019-07-18T11:14:48.402Z
[/TD]
[TD]2019-07-18
[/TD]
[TD]Success
[/TD]
[TD][/TD]
[TD]Joe Bloggs
[/TD]
[/TR]
[TR]
[TD="bgcolor: #D9E1F2"]Jul-19
[/TD]
[TD="bgcolor: #D9E1F2"]2019-07-18T19:16:22.214Z
[/TD]
[TD="bgcolor: #D9E1F2"]2019-07-18
[/TD]
[TD="bgcolor: #D9E1F2"]Success
[/TD]
[TD="bgcolor: #D9E1F2"][/TD]
[TD="bgcolor: transparent"]Joe Bloggs
[/TD]
[/TR]
[TR]
[TD]Jul-19
[/TD]
[TD]2019-07-19T03:16:25.317Z
[/TD]
[TD]2019-07-19
[/TD]
[TD]Success
[/TD]
[TD][/TD]
[TD]Joe Bloggs
[/TD]
[/TR]
[TR]
[TD]Jul-19
[/TD]
[TD]2019-07-19T11:14:44.400Z
[/TD]
[TD]2019-07-19
[/TD]
[TD]Success
[/TD]
[TD][/TD]
[TD="bgcolor: transparent"]Joe Bloggs
[/TD]
[/TR]
</tbody>[/TABLE]

Sorry I couldn't figure how to attach file?
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
How about

Book1
ABCDEF
1MonthTimestampDayBackupSuccessStatusSuccessAfterRetryUserName
2Jul-192019-07-10T03:15:18.303Z10/07/2019Success Joe Bloggs
3Jul-192019-07-10T11:14:46.527Z10/07/2019SuccessJoe Bloggs
4Jul-192019-07-10T19:15:14.482Z10/07/2019SuccessJoe Bloggs
5Jul-192019-07-11T03:16:13.583Z11/07/2019SuccessJoe Bloggs
6Jul-192019-07-11T11:15:07.287Z11/07/2019SuccessJoe Bloggs
7Jul-192019-07-11T19:16:43.063Z11/07/2019SuccessJoe Bloggs
8Jul-192019-07-12T03:16:43.754Z12/07/2019SuccessJoe Bloggs
9Jul-192019-07-12T11:14:42.834Z12/07/2019FailureYesJoe Bloggs
10Jul-192019-07-12T19:15:49.091Z12/07/2019FailureYesJoe Bloggs
11Jul-192019-07-13T03:14:57.752Z12/07/2019SuccessJoe Bloggs
12Jul-192019-07-16T11:14:32.349Z16/07/2019FailureNoJoe Bloggs
13Jul-192019-07-16T19:14:19.309Z16/07/2019FailureNoJoe Bloggs
14Jul-192019-07-17T03:14:49.159Z17/07/2019SuccessJoe Bloggs
15Jul-192019-07-17T11:19:17.870Z17/07/2019SuccessJoe Bloggs
16Jul-192019-07-17T19:14:35.656Z17/07/2019SuccessJoe Bloggs
17Jul-192019-07-18T03:15:00.344Z18/07/2019SuccessJoe Bloggs
18Jul-192019-07-18T11:14:48.402Z18/07/2019SuccessJoe Bloggs
19Jul-192019-07-18T19:16:22.214Z18/07/2019SuccessJoe Bloggs
20Jul-192019-07-19T03:16:25.317Z19/07/2019SuccessJoe Bloggs
21Jul-192019-07-19T11:14:44.400Z19/07/2019SuccessJoe Bloggs
Master Image
Cell Formulas
RangeFormula
E2{=IF(D2<>"Failure","",IF(ISNUMBER(MATCH("Success"&C2&F2,D3:D$21&C3:C$21&F3:F$21,0)),"Yes","No"))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

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