Solved

Lookup Value based on Date Span

Posted on 2014-01-03
3
236 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 49

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

813 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

10 Experts available now in Live!

Get 1:1 Help Now