Ok. Try to explain this simply. I have a list of states. The trucker has to log his miles. He may go to some states, may not go to others. I need to be able to do the calculation properly if some states are left blank. Here is an example. I added GA and FL, but don't know how to write a statement that if 0 or blank, then use the next state, or continue on until it finds a number greater than zero. Look below. The formula for the calculated is simple it's next state minus the current state. B18-b17 (as an example). Now, what if 1, 2 or many states aren't used. I can't use that formula, I can't even do a simple IF. I'm really struggling on this one.
Mileage Calculator
State Mileage Calculated Miles
SC 155300 3
NC 155303 175
TN 155478 287
KY 155765 92
Ill 155857 165
MS 156022 488
Ill 156510 160
Ky 156670 95
TN 156765 291
NC 157056 172
SC 157228 3
Ft Mill 157231
Total Miles 1931
Bookmarks