Putting manually "Referred By" link

For affiliates who don't use their coded link for any given reason I would like to know how can we manually input the 'referred by' field to keep tabs on affiliates who referred someone 'manually'