Forum Discussion

NeedExcelHelp250's avatar
NeedExcelHelp250
Copper Contributor
Aug 28, 2022
Solved

Excel Formula Help

Hello,   I am trying to create a spreadsheet to track scam numbers we receive on our work phone. I am also trying to mark whether or not something has been reported to our telecom department to be ...
  • HansVogelaar's avatar
    Aug 28, 2022

    NeedExcelHelp250 

    This would require column F to contain values ("Y") and formulas at the same time, which is not possible.

    Why not avoid duplicates in column A, for example using Data Validation? That would look a lot neater, and avoid the need to mark multiple instances.

     

    A tricky workaround:

    In F2, enter the formula =IF(COUNTIFS(A$1:A1,A2,F$1:F1,"Y"),"Y","") and fill down to the end of the data or even further if you want.

    Always mark only the first occurrence of a phone number with Y, overwriting the formula. The formula will then mark all occurrences of the same number downwards.

     

    The alternative would be to use VBA.

Resources