from openpyxl import load_workbook file_path = "/mnt/data/paid_users.xlsx" # Load workbook wb = load_workbook(file_path) ws = wb.active # Add +91 before numbers for row in ws.iter_rows(): for cell in row: if cell.value is not None: val = str(cell.value).strip() # Check if numeric and doesn't already start with +91 if val.isdigit() and not val.startswith("91"): cell.value = "+91" + val # Save updated file updated_file_path = "/mnt/data/paid_users_with_country_code.xlsx" wb.save(updated_file_path) updated_file_path