Please find the attached test data and we need a function for the column "Expected Return Value on weightage for a ID" The criteria is as below: IF the ID is unique then return the weightage column Else Find the max value from the weightage column for the ID and display it once to the cell as it should not be duplicated again. Please let me know if you have any clarification on my query.