Thank you for posting your question in the Microsoft Q&A forum.
Based on your sharing, there're some conditions may have caused the #CALC! error:
- The f is empty if no rows match the value in F2, which lead to the subsequent functions fail.
- If no values match the latest date, the FILTER(TAKE(f,,-1).....SORT(c,,-1),1))) returns nothing and also lead to the LOOKUP function fails.
Therefore, we suggest you should double-check the formula in helper cells step-by-step:
- Check if f is empty by using =FILTER(A2:C39954, A2:A39954=F2)
- Check if c has values by using =CHOOSECOLS(FILTER(A2:C39954, A2:A39954=F2),2)
- Check the latest date by using =TAKE(SORT(CHOOSECOLS(FILTER(A2:C39954, A2:A39954=F2),2),,-1),1)
Note: Please understand that our initial response does not always resolve the issue immediately. However, with your help and more detailed information, we can work together to find a solution.
I hope this information is helpful. Please follow these steps and let me know if it works for you. If not, we can work together to resolve this.
Thank you for your patience and your understanding. If you have any questions, please feel free to reach out.
I'm looking forward for your reply.
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.