ed coleman
Registered User.
- Local time
- Today, 10:35
- Joined
- Nov 8, 2012
- Messages
- 44
I am trying to supply my sales manager with a report that will compare unit selling price for what was quoted versus what was actually billed.
Our quote table is based on items and these can be quoted at various levels of production, e.g. for 100 units, 300 units, 500 units, etc..
I have produced a query that will get the actual item, the order number and the quantity ordered that was shipped for that month.
Now, what I am having trouble with is getting an exact or a closest, but lower, match based on volume ordered versus volume quoted. I have attached an Excel sheet to give the two queries - one is the source query and one is the lookup query. The results expected are shown across from the source query. All would be fine if all orders coming in would have a corresponding quote for that production, however, this is sometimes not the case.
The older I get, the dumber I get and any assistance would be appreciated.
Thanks
Our quote table is based on items and these can be quoted at various levels of production, e.g. for 100 units, 300 units, 500 units, etc..
I have produced a query that will get the actual item, the order number and the quantity ordered that was shipped for that month.
Now, what I am having trouble with is getting an exact or a closest, but lower, match based on volume ordered versus volume quoted. I have attached an Excel sheet to give the two queries - one is the source query and one is the lookup query. The results expected are shown across from the source query. All would be fine if all orders coming in would have a corresponding quote for that production, however, this is sometimes not the case.
The older I get, the dumber I get and any assistance would be appreciated.
Thanks
Attachments
Last edited: