Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

return value function

Status
Not open for further replies.

DaveCrate

Technical User
Jan 12, 2004
41
US
return the value
The query only returns the dates where sales have occurred.
I want to be able to the sale pattern for the entire year.

column A is a date (every day of year)
column B is a date (only days that a sale occured)
column c sale amount corresponding to date in column B

a b c d
05/23/2006 05/22/2006 5 0
05/24/2006 05/24/2006 10 10

if a (date) is = b (range of dates) return the value of c in column d else "0"

column b is currently a list of only the dates where asomething was sold

Can anyone help populate the column d with either the sale amount or 0

Thanks
 
Forgot about column e, which is what the customer would consume on a daily basis.

Basically, what I'm trying to do is keep tabs on the customers inventory from a starting point. Say they started w/ 25. Tracking there usage, my sales to them , and there future orders. What would the inventory look like.

A running invnetory
 



Inventory is a record of various quantities at a point in time; ie On-hand, In-Transit, On-Dock etc.

To maintain the inventory, you could have a table of transactions that would be a record of Puts and Takes from Inventory -- a +/- Quantity, Trans Type Trans Date, for instance.

It's not a good idea to mix the two, IMHO.

Please post a sample of your data along with field headings.

Skip,

[glasses] [red]Be Advised![/red] A chicken, who would drag a wagon across the road for 2 cents, is…
POULTRY in motion to PULLET for a PALTRY amount! [tongue]
 
beginning
inventory daily usage delivered invnetory
from me at customer
5/23/2006 110
5/24/2006 20 0 90
5/25/2006 20 0 70
5/26/2006 20 24 74
5/27/2006 0 0 74
5/28/2006 20 0 54
5/29/2006 20 24 58
 
You need to read up on Inventory Management principles. Check out
You have a DEMAND (daily usage) forecast, and SUPPLY that can be controlled by an order policy that includes a replenishment quantity and the number of days required to respond to a replenishment flag. You need to have your system notify you when YOU need to fabricate/manufacture/procure stuff a lead time away from the replenishment signal from the customer so you'll have to to deliver.

Anyhow, your formula is
[tt]
=PrevOnHand-Daily_Usage+Delivered
[/tt]

Skip,

[glasses] [red]Be Advised![/red] A chicken, who would drag a wagon across the road for 2 cents, is…
POULTRY in motion to PULLET for a PALTRY amount! [tongue]
 
I'll give it a try and let you know
Thanks for all of your help thus far
I might need it some more though
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top