Date calculation and possible vlookup

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In cell C2 I have a date (in a dd/mm/yyyy format).

In cell H2 of the same worksheet, I would like to:
a) find out how many months difference there is between the date in C2 and
31 May 2007.
b) take the result of the above calculation and find that number in column A
of another worksheet and pull out the corresponding value in column B.

Any ideas?
 
Hi,

Try this

=VLOOKUP(DATEDIF(C2,C3,"m"),Sheet2!A1:B16,2,FALSE)

I have put 31/5/2007 in C3 instead of in the formula and assumed C2 is
earlier than C3

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top