Hi.

This is my first request for help on Excel Forum but I have been reading the threads for a while and it is a great community.

I have attached a file with two worksheets to illustrate my dilemma. I am trying to create a reservation ticket where I can dump data from a sales order on the first sheet and sort/summarize it on the 2nd sheet which becomes the ticket.

On the Sales Orders, some items are reserved to purchase orders and some are reserved to item ledger entries. For purchase orders, I want to always show the unique purchase order on the ticket, but for item ledger reservations, I only want to show a summary line with the total quantity reserved to the item ledger. All Item Ledger entries are unique, but start with "Item Ledger" and then a number that follows (e.g. Item Ledger 25, 26, etc.)

I think that the solution is a combination of creating a column that assigns a 1 or 0 based on whether the Reservation field starts with the text "Item Ledger" and then some combination of IF and SUMPRODUCT formulas but I can't figure out how to do this.

Any help is appreciated.

D. from So Cal

reservation ticket example.xlsx