Consolidating data into 1 table:
1. Is it possible the "separate system" already has an existing report which consolidates all the information into 1 table? If yes, that would be the easiest approach and then just download the report to excel for the billing projections.
2. To add the quantity and price by formula to each row of the 1st table, the formula to use is vlookup and here is a link explaining this function:
http://www.contextures.com/xlfunctions02.html
In your situation, I would suggest having your datatable with the qty/prices on a separate worksheet beginning in column B (I'll call it Sheet2). Because you'll need to match on multiple fields, I'd use col A as a helper column containing the S/O#/Facil#/Patient/Item, so put this formula in cell A2 and copy down:
=B2&C2&E2&F2
Then on your 1st worksheet which contains Col A:H per your example, enter these formulas and copy each down:
For Qty in, say I2: =VLOOKUP(H2&F2&E2&G2,Sheet2!A:I,8,FALSE)
For Price in say J2: =VLOOKUP(H2&F2&E2&G2,Sheet2!A:I,9,FALSE)
For Projecting Billing:
Assuming this report does not already exist in the separate billing system, you'd probably use =IF() statements, but before giving specific formulas I have a few questions:
1. Is your extract from the separate order system done for the current month only, or do you extract all transactions from the system (completed in prior months as well as uncompleted transactions)?
2. Would you prefer the extract from the separate system to be current month only or all?
3. Using your 1st 2 examples, when a row does not have a pickup date in Feb, would you bill this time only to the end of Feb, or would you delay billing until early March when it does show a pick up date of 3/5 and bill thru 3/5. The same question for the end of Jan, since the equip was installed 1/25, would the end of Jan have been billed the prior month or would you bill it now. Finally - how would you know what partial billings may have previously been done.