Solved

Lookup Value based on Date Span

Posted on 2014-01-03
3
219 Views
Last Modified: 2014-01-03
I have a spreadsheet where I track expenses.

Over time mileage rates, etc. change

I could manually enter an updated rate after each change, but I'd like to do it with a lookup process

Attached is a copy of the spreadsheet - The value I want as the lookup result is on the Expense Tracking Tab - "Rate" and the table I want to use as the source is the mileage lookup tab

Does anybody know of an existing formula / calc that does type of lookup?

Thanks
EPM-Time-Tracking---Expense-Look.xlsx
0
Comment
Question by:rogerdjr
3 Comments
 
LVL 48

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 39754229
Hi,
pls try in Cell F2 and under

=IF(D2="Mileage",VLOOKUP(B2,'Mileage Rate Lookup'!$B$2:$D$3,3,TRUE),0)

Open in new window

Regards
0
 
LVL 26

Expert Comment

by:pony10us
ID: 39754251
or:

=IF(D2="Mileage",(IF(B2<'Mileage Rate Lookup'!$B$3,'Mileage Rate Lookup'!$D$2,'Mileage Rate Lookup'!$D$3)))

Open in new window

0
 

Author Closing Comment

by:rogerdjr
ID: 39754429
With a slight modification:

=IF(D2="Mileage",VLOOKUP(B2,'Mileage Rate Lookup'!$B:$D,3,TRUE),0)

This works great and allows for addition of newer mileage rates without any update.

Thanks
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now