I am stumpped as to how to accomplish this task, and I am hoping someone can point me in the right direction.
I am using excel 2010. I have a worksheet called Rates, that has thre columns, "Facility", "Date" and "Rate". The column for "Facility hold the facility name, the "Date" Column holds the date the rate canged and the "Rate holds the dollar rate.
Facililty Date Rate
South Side1 07/01/13 24.00
West Side1 07/01/13 35.00
South Side1 09/01/13 29.00
North Side2 10/01/13 10.00
West Side1 10/01/13 38.00
I have another worksheet that has a customer name, the facility, and the month the purchase is made.
(all customer purcases will be at the end of the month). What I am looking for is a way to match the rate with the facility and the date. The Rate would be in effect until the new rate is entered. The rate for the southside is in effect from 7/01/13 until 8/31/13.
Customer Date Facility Rate
Bob 07/31/13 Westside1 35.00 (I don't know what formula to use here)
Jerry 10/31/13 westside1 38.00
Sue 08/31/13 Southside1 24.00
Sue 09/30/13 Southside1 29.00
The facility would need to be an exact macth but the date would need to be closest(??) match. For sue I need to find the rate that is good for 8/31/13 (24.00) and the new rate for her 09/30/13 purchase.
I tired using an array Match(B1&C1,'Rate!'B1:B6&A1"A6) but that gives me bad results when the facility names start with the same letters. I'm not sure what type of fomuala I need. I've used excel a little bit but this has me stumpped. I would appriciate if someone could give me a hint as to what I should do.
Thanks, in advance!!
I am using excel 2010. I have a worksheet called Rates, that has thre columns, "Facility", "Date" and "Rate". The column for "Facility hold the facility name, the "Date" Column holds the date the rate canged and the "Rate holds the dollar rate.
Facililty Date Rate
South Side1 07/01/13 24.00
West Side1 07/01/13 35.00
South Side1 09/01/13 29.00
North Side2 10/01/13 10.00
West Side1 10/01/13 38.00
I have another worksheet that has a customer name, the facility, and the month the purchase is made.
(all customer purcases will be at the end of the month). What I am looking for is a way to match the rate with the facility and the date. The Rate would be in effect until the new rate is entered. The rate for the southside is in effect from 7/01/13 until 8/31/13.
Customer Date Facility Rate
Bob 07/31/13 Westside1 35.00 (I don't know what formula to use here)
Jerry 10/31/13 westside1 38.00
Sue 08/31/13 Southside1 24.00
Sue 09/30/13 Southside1 29.00
The facility would need to be an exact macth but the date would need to be closest(??) match. For sue I need to find the rate that is good for 8/31/13 (24.00) and the new rate for her 09/30/13 purchase.
I tired using an array Match(B1&C1,'Rate!'B1:B6&A1"A6) but that gives me bad results when the facility names start with the same letters. I'm not sure what type of fomuala I need. I've used excel a little bit but this has me stumpped. I would appriciate if someone could give me a hint as to what I should do.
Thanks, in advance!!