We help IT Professionals succeed at work.
Get Started

How to make VLOOKUP find a the correct row in another worksheet

582 Views
Last Modified: 2012-05-11
I’m fairly new to spreadsheets and would appreciate a little help with a problem.
I have a Excel workbook, with a worksheet for each customer.   It has columns with the date, the hourly rate and the UK RPI (Retail Prices Index).   The hourly rate for each customer changes on the anniversary of the contract start date each year in line the RPI.  I have another worksheet that has columns for the date and the RPI percentage increase. This is updated each month when the RPI is announced.
In the first worksheet, I have added the following in the RPI column:  =VLOOKUP(A4,RPI!$A$1:$B$64,2).  This gets the percentage from the RPI worksheet with the same date as the hourly rate.
This works OK, except that when I contact the customer to give them the good news it is a month before the new rate comes into force.  Also, the RPI itself is a month late (the RPI for April was announced yesterday, 18 May).
How can I change the formula above to look for the date two months earlier than the date it is to take effect?  So, contacting a customer in May about a renewal in June, I will have to use the RPI for April, because it is the latest information I have.
Comment
Watch Question
CERTIFIED EXPERT
Top Expert 2010
Commented:
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE