Hi all. I'm using nested "IF" functions in a formula, and I know there's a better way. I just don't know what it is. In the attached screenshot, I need a formula to put in D18 that compares the current "Unit" number (B18) to the previous matching unit number (B15), then subtract the "Odometer" reading matching that unit number (C15) from the current "Odometer" reading (C18). The records will never be entered in the same order, so I can't just look back 3 rows. The previous odometer will always be the MAX in the field for the corresponding unit number. Basically, I need to track the daily mileage for three different vehicles.
Thanks for your help.
Bookmarks