kdsanderson30
New Member
- Joined
- Jun 12, 2014
- Messages
- 17
I have been tasked to help with a tax project for my company and I am stuck.
We have a worksheet that lists multiple trucks, the date they filled their truck with fuel, gallons of fuel and various other data. The dilemma is we need to find the line for each Truck out of 21467 Lines that is closest to a specific date. So lets say column B list truck 000034 4 times with 4 separate dates, how do you pull the date closest to January 1. (the reports shows 2 weeks prior and 2 weeks after Jan 1) some trucks got gas 10 times during this period and others maybe one to five times.
Column A is a spacer for totals (from an import)
so the worksheet goes as follows:
B- Vehicle #
C- Vehicle Description
D- First Name
E- Last Name
F- Driver
G Trans Date (transaction)
H- Trans Time (transaction)
I- Odometer
J Gallons
K Dollars
L- Unit Cost
M Product (Unleaded or Diesel)
N Department
O Department level
P Business Unit
Q Product Line
We have a worksheet that lists multiple trucks, the date they filled their truck with fuel, gallons of fuel and various other data. The dilemma is we need to find the line for each Truck out of 21467 Lines that is closest to a specific date. So lets say column B list truck 000034 4 times with 4 separate dates, how do you pull the date closest to January 1. (the reports shows 2 weeks prior and 2 weeks after Jan 1) some trucks got gas 10 times during this period and others maybe one to five times.
Column A is a spacer for totals (from an import)
so the worksheet goes as follows:
B- Vehicle #
C- Vehicle Description
D- First Name
E- Last Name
F- Driver
G Trans Date (transaction)
H- Trans Time (transaction)
I- Odometer
J Gallons
K Dollars
L- Unit Cost
M Product (Unleaded or Diesel)
N Department
O Department level
P Business Unit
Q Product Line