Any ideas on the syntax to use a sample text input to select a peak in a sample to perform a calc using that peaks area?

For example I am perform a calc using standard addition, so I'm injecting multiple standards with different components that need to be calculated separately from a single sample injection. So I've made a sample text custom field to enter the peak of interest name for the standard and want to bring the area of that peak into a custom field but don't know the syntax.

Thank you