Hello, is it possible to rename the column if the values below it meet certain criteria? I have tried creating a workflow in order to convert it but am stuck.
I'd like the column to be titled "Username" if it meets all the criteria.
Issue ("Username2" is supposed to still say "val"):

Desired Output:

The furthest I've gotten is flagging whether each value meets the criteria but not how to implement the renaming of the header itself since the dynamic renaming formula uses the column heading values and not the fields below it. In addition, I do not want to manually select the specific field to rename or use a filter tool to manually pick the fields, it should be automatic based on the macro/workflow.
Any thoughts on how to achieve this?