Hi,
Thank you for sharing your question. I understand the need to make this fast and reliable with a single “Generate Statement” button that prompts for names and produces either Excel or PDF output.
This workflow is best handled with a macro tied to a button; Excel supports assigning a macro to a button placed on your worksheet, and the macro can prompt you to select cells containing names, ask for the desired output type, filter the SUMMARY data for each name, populate the STATEMENT template, and then save as .xlsx or export as .pdf. The macro uses Excel’s Application.InputBox to collect your selection and format choice, AutoFilter or AdvancedFilter to pull name‑specific rows, SaveAs for .xlsx, and ExportAsFixedFormat for PDF, all of which are documented in Microsoft Learn so your solution stays aligned with current guidance.
To resolve this, add a button to the SUMMARY sheet and assign it to the macro below; the macro will ask you to select the cells that contain the names to process, then ask whether you want Excel or PDF, and for each name it will filter SUMMARY, copy the filtered rows into your STATEMENT template, and save each statement as either an .xlsx workbook or a .pdf file using the built‑in methods referenced above.
I hope this helps.
Best Regards,
Noel