Forum Discussion
Kirk-Anderson
Apr 10, 2023Copper Contributor
Calculate days remaining in a task based on start date and percentage done.
Hi, I've searched for a solution for this but I'm struggling, possibly in part due to brain fog! I'm part of a big migration project, and I have a formula that works out how far along the project is...
- Apr 27, 2020
AbtinS I see my code only looks for cells which contain just the word you are looking for. This adjusted version looks for cells containing the words:
Option Explicit Sub ListHits() Dim Cell2Find As Range Dim FoundCell As Range Dim FirstFound As Range Dim Ct As Long Dim KeepLooking As Boolean For Each Cell2Find In Worksheets("Keywords").UsedRange If Len(Cell2Find.Value) > 0 Then Set FirstFound = Nothing With Worksheets("Data") Ct = 0 Set FoundCell = Nothing Set FoundCell = .UsedRange.Find(What:=Cell2Find.Value, After:=.Range("A1"), LookIn:=xlValues, _ LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _ MatchCase:=False, SearchFormat:=False) If FoundCell Is Nothing Then KeepLooking = False Else Set FirstFound = FoundCell KeepLooking = True End If Do While KeepLooking Ct = Ct + 1 Cell2Find.Offset(, Ct).Hyperlinks.Add Cell2Find.Offset(, Ct), "", FoundCell.Address(external:=True), FoundCell.Address(external:=True) 'Set FoundCell = Nothing Set FoundCell = .UsedRange.FindNext(FoundCell) If FoundCell Is Nothing Then KeepLooking = False If FoundCell.Address = FirstFound.Address Then KeepLooking = False Loop End With End If Next End Sub
HansVogelaar
Apr 12, 2023MVP
You have the start date in C103 and the number of issues in C101. What other info can we use? The number of issues resolved per day? The number of issues has been resolved up to today? Something else?
Kirk-Anderson
Apr 12, 2023Copper Contributor
I could calculate the number of completed migration tasks as opposed to ones that generated issues, as it's either or from a pick list. Would that do it?