Could you please show us the results that you want for better analysis?
Currently I suggest you do not move "Total" text when you make Column E ("Text Inv #").
Then please try formula =IFERROR(IF(FIND("Total",E2),INDEX(D:D,ROW(E2)-1,1),""),"")
in F2, the Sales Lead name will filled in to Invoice Total lines.
If you also want to show Sales Lead name when Column D (Text Sales Lead) is not blank, please try formula =IF(D2="",IFERROR(IF(FIND("Total",E2),INDEX(D:D,ROW(E2)-1,1),""),""),D2)
in F2.
Any misunderstanding, please let me know.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.