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”



Month
Timestamp
Day
BackupSuccessStatus
SuccessAfterRetry
UserName
Jul-19
2019-07-10T03:15:18.303Z
2019-07-10
Success
Joe Bloggs
Jul-19
2019-07-10T11:14:46.527Z
2019-07-10
Success
Joe Bloggs
Jul-19
2019-07-10T19:15:14.482Z
2019-07-10
Success
Joe Bloggs
Jul-19
2019-07-11T03:16:13.583Z
2019-07-11
Success
Joe Bloggs
Jul-19
2019-07-11T11:15:07.287Z
2019-07-11
Success
Joe Bloggs
Jul-19
2019-07-11T19:16:43.063Z
2019-07-11
Success
Joe Bloggs
Jul-19
2019-07-12T03:16:43.754Z
2019-07-12
Success
Joe Bloggs
Jul-19
2019-07-12T11:14:42.834Z
2019-07-12
Failure
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"
Joe Bloggs
Jul-19
2019-07-12T19:15:49.091Z
2019-07-12
Failure
Joe Bloggs
Jul-19
2019-07-13T03:14:57.752Z
2019-07-13
Failure
Joe Bloggs
Jul-19
2019-07-16T11:14:32.349Z
2019-07-16
Success
Joe Bloggs
Jul-19
2019-07-16T19:14:19.309Z
2019-07-16
Success
Joe Bloggs
Jul-19
2019-07-17T03:14:49.159Z
2019-07-17
Success
Joe Bloggs
Jul-19
2019-07-17T11:19:17.870Z
2019-07-17
Success
Joe Bloggs
Jul-19
2019-07-17T19:14:35.656Z
2019-07-17
Success
Joe Bloggs
Jul-19
2019-07-18T03:15:00.344Z
2019-07-18
Success
Joe Bloggs
Jul-19
2019-07-18T11:14:48.402Z
2019-07-18
Success
Joe Bloggs
Jul-19
2019-07-18T19:16:22.214Z
2019-07-18
Success
Joe Bloggs
Jul-19
2019-07-19T03:16:25.317Z
2019-07-19
Success
Joe Bloggs
Jul-19
2019-07-19T11:14:44.400Z
2019-07-19
Success
Joe Bloggs

<tbody>
</tbody>

Sorry I couldn't figure how to attach file?
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
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,214,911
Messages
6,122,196
Members
449,072
Latest member
DW Draft

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