Not sure my title is aligned with what I am trying to accomplish. So apologies. I have a table with a column Source HostName (Column G) and for each Source HostName there could 1 to many attempts in migrating that Host. When migrating that host, we either have a 'Success' or 'Error' Status (Column F). I need to find when the Source Host migrated resulted in a Success. Obviously, it is easy when there is one record since it was successful on first attempt. Or opposite, when it has all errors there is no Success.
However, when the first (or 2nd or 3rd) attempt(s) might be an error, I am trying to come up with a formula or vba code to find out that (for example) for source Hostname = Server1 the Status = Success happened in the 4th attempt. Hope that makes sense.
I do sort by the Source Hostname and then by Start Time which is coming out of a server in it's given format.
Here is a sample table
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]UUID[/TD]
[TD]StartTime[/TD]
[TD]OSType[/TD]
[TD]TargetHost[/TD]
[TD]MigrationType[/TD]
[TD]Status[/TD]
[TD]SourceHost[/TD]
[/TR]
[TR]
[TD]24b06954-44b3-4ddc-b7f6-03c6672c1bfe[/TD]
[TD]2018-08-08T09:17:08.000Z[/TD]
[TD]Windows[/TD]
[TD]BackupProxy[/TD]
[TD]Full[/TD]
[TD]error[/TD]
[TD][TABLE="width: 142"]
<colgroup><col></colgroup><tbody>[TR]
[TD]BackupProxy[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]b071c7cb-a70a-49b8-8758-17bfb98a3bbd[/TD]
[TD]2018-08-14T08:33:43.000Z[/TD]
[TD]Windows[/TD]
[TD]Subodh-Failback-subodh_backup_proxy_RFS[/TD]
[TD]Full[/TD]
[TD]success[/TD]
[TD]BackupProxy[/TD]
[/TR]
[TR]
[TD]4f24466d-2465-48ee-8cc4-0c8b33cd103e[/TD]
[TD]2018-08-14T14:43:13.000Z[/TD]
[TD]Windows[/TD]
[TD]Subodh-Failback-subodh_backup_proxy_RFS[/TD]
[TD]Full[/TD]
[TD]error[/TD]
[TD]BackupProxy[/TD]
[/TR]
[TR]
[TD]ae57a1b9-bb7d-45b6-9d80-c8108f1c4ff3[/TD]
[TD]2018-08-20T07:32:24.000Z[/TD]
[TD]Windows[/TD]
[TD]Subodh_Failover_RM_Subodh_backup_proxy_4_RFS[/TD]
[TD]Full[/TD]
[TD]success[/TD]
[TD]BackupProxy[/TD]
[/TR]
[TR]
[TD]03c0db8c-b462-4fd7-948d-0ebbe0ad11e6[/TD]
[TD]2018-09-10T21:10:51.000Z[/TD]
[TD]Linux[/TD]
[TD]Barge1[/TD]
[TD]Full[/TD]
[TD]error[/TD]
[TD]Barge1[/TD]
[/TR]
[TR]
[TD]5b3892bd-ac9d-41d8-a96a-72029c02c29b[/TD]
[TD]2018-09-11T14:49:30.000Z[/TD]
[TD]Linux[/TD]
[TD]Barge1_Dev[/TD]
[TD]Full[/TD]
[TD]success[/TD]
[TD]Barge1[/TD]
[/TR]
[TR]
[TD]8023a55f-67d3-47fe-9103-8c063c3cb2d0[/TD]
[TD]2018-09-12T11:50:30.000Z[/TD]
[TD]Linux[/TD]
[TD]Barge1[/TD]
[TD]Full[/TD]
[TD]error[/TD]
[TD]Barge1[/TD]
[/TR]
</tbody>[/TABLE]
So for example, I am trying to get a result for Source Hostname = Barge1 where 'success' happened in the 2nd attempt. And while Source Hostname = BackupProxy had more than 1 'success' I want to find out that it happened on the 2nd attempt even though there was a success on the 4th attempt as well. I want the first occurrence.
Thanks for anyone who can assist with some recommendations.
However, when the first (or 2nd or 3rd) attempt(s) might be an error, I am trying to come up with a formula or vba code to find out that (for example) for source Hostname = Server1 the Status = Success happened in the 4th attempt. Hope that makes sense.
I do sort by the Source Hostname and then by Start Time which is coming out of a server in it's given format.
Here is a sample table
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]UUID[/TD]
[TD]StartTime[/TD]
[TD]OSType[/TD]
[TD]TargetHost[/TD]
[TD]MigrationType[/TD]
[TD]Status[/TD]
[TD]SourceHost[/TD]
[/TR]
[TR]
[TD]24b06954-44b3-4ddc-b7f6-03c6672c1bfe[/TD]
[TD]2018-08-08T09:17:08.000Z[/TD]
[TD]Windows[/TD]
[TD]BackupProxy[/TD]
[TD]Full[/TD]
[TD]error[/TD]
[TD][TABLE="width: 142"]
<colgroup><col></colgroup><tbody>[TR]
[TD]BackupProxy[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]b071c7cb-a70a-49b8-8758-17bfb98a3bbd[/TD]
[TD]2018-08-14T08:33:43.000Z[/TD]
[TD]Windows[/TD]
[TD]Subodh-Failback-subodh_backup_proxy_RFS[/TD]
[TD]Full[/TD]
[TD]success[/TD]
[TD]BackupProxy[/TD]
[/TR]
[TR]
[TD]4f24466d-2465-48ee-8cc4-0c8b33cd103e[/TD]
[TD]2018-08-14T14:43:13.000Z[/TD]
[TD]Windows[/TD]
[TD]Subodh-Failback-subodh_backup_proxy_RFS[/TD]
[TD]Full[/TD]
[TD]error[/TD]
[TD]BackupProxy[/TD]
[/TR]
[TR]
[TD]ae57a1b9-bb7d-45b6-9d80-c8108f1c4ff3[/TD]
[TD]2018-08-20T07:32:24.000Z[/TD]
[TD]Windows[/TD]
[TD]Subodh_Failover_RM_Subodh_backup_proxy_4_RFS[/TD]
[TD]Full[/TD]
[TD]success[/TD]
[TD]BackupProxy[/TD]
[/TR]
[TR]
[TD]03c0db8c-b462-4fd7-948d-0ebbe0ad11e6[/TD]
[TD]2018-09-10T21:10:51.000Z[/TD]
[TD]Linux[/TD]
[TD]Barge1[/TD]
[TD]Full[/TD]
[TD]error[/TD]
[TD]Barge1[/TD]
[/TR]
[TR]
[TD]5b3892bd-ac9d-41d8-a96a-72029c02c29b[/TD]
[TD]2018-09-11T14:49:30.000Z[/TD]
[TD]Linux[/TD]
[TD]Barge1_Dev[/TD]
[TD]Full[/TD]
[TD]success[/TD]
[TD]Barge1[/TD]
[/TR]
[TR]
[TD]8023a55f-67d3-47fe-9103-8c063c3cb2d0[/TD]
[TD]2018-09-12T11:50:30.000Z[/TD]
[TD]Linux[/TD]
[TD]Barge1[/TD]
[TD]Full[/TD]
[TD]error[/TD]
[TD]Barge1[/TD]
[/TR]
</tbody>[/TABLE]
So for example, I am trying to get a result for Source Hostname = Barge1 where 'success' happened in the 2nd attempt. And while Source Hostname = BackupProxy had more than 1 'success' I want to find out that it happened on the 2nd attempt even though there was a success on the 4th attempt as well. I want the first occurrence.
Thanks for anyone who can assist with some recommendations.