Date and Vlookup Help

paulpitchford

New Member
Joined
Sep 13, 2010
Messages
12
Hi,

I need to do a date lookup. I have this in my worksheet:

A, B
25/05/2011, Week 1
01/06/2011, Week 2
08/06/2011, Week 3
etc...

I have a cell that is set to =TODAY() in C30.

I want C31 to show which week it is based on todays date. Therefore if when the sheet is loaded, it is 28/05/2011 C31 will show Week 1. And if it was 30/05/2011 it would still show Week 1.

Can someone help me with this as I keep getting #N/A in C31.

This is my current forumla in C31: =VLOOKUP(C30,A2:B28,2,TRUE)

Many Thanks,

Paul.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
You are getting #N/A because your list of dates and weeks starts later than today. If you add a week 0 date of 18/5/2011 at the top of your lookup table it will work.
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,337
Members
452,907
Latest member
Roland Deschain

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top