Hi Amina Torres,
Thanks for your post in Microsoft Community.
Unfortunately, the IF function can only simply evaluate whether a condition is true or false and then return predefined data based on that. It cannot perform operations akin to "pasting." This might be achievable through VBA (Visual Basic for Applications).
I'll demonstrate the outcome in this response, as the script I've written assumes matching columns, and there are parameters that need to be adjusted based on your specific situation.
Suppose I have a list of names in column A of Sheet1, and the corresponding actual data in column C.

I also have a column of names in column B of Sheet2, but some of these names do not appear in column A of Sheet1, thus requiring matching names from Sheet1's column A to fill in the data.

After running the macro:

Even if you add new names to column A of Sheet2 later on, they can still be matched accordingly.


If the above demonstration meets your requirements, please share with me the actual names of your source sheet and destination sheet, which column in the source sheet contains the names to match, which column holds the actual data, and which column in the destination sheet is for matching names, and which column is for the actual paste. I will then adjust the parameters based on your response, test the code, and share it with you.
I look forward to your reply!
Best Regards,
Thomas C - MSFT | Microsoft Community Support Specialist