Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default Vlookup function which recognises many dates in one month

I need a function which is like vlookup in the fact that when it reads a date
in July, it then goes and finds the July cell in a range and then goes x
number of columns across to find the number. Vlookup does this only for
specific dates but I need a more generalised version which recognises that
the date is part of one of the dates in the month.
Can anyone help?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Vlookup function which recognises many dates in one month

I put my date in A1 of sheet1 and this formula in B1 (of sheet1).

I put my table of dates in A1:A999 of sheet2.
I put the stuff to bring back in column D of Sheet2.

=INDEX(Sheet2!D1:D999,MATCH(TEXT(A1,"yyyymm"),TEXT (Sheet2!A1:A999,"yyyymm"),0))

This is an array formula. Hit ctrl-shift-enter instead of enter. If you do it
correctly, excel will wrap curly brackets {} around your formula. (don't type
them yourself.)

Adjust the range to match--but you can't use the whole column.


Remember, it'll bring back stuff for the first match it finds--just like
=vlookup().


Cammy wrote:

I need a function which is like vlookup in the fact that when it reads a date
in July, it then goes and finds the July cell in a range and then goes x
number of columns across to find the number. Vlookup does this only for
specific dates but I need a more generalised version which recognises that
the date is part of one of the dates in the month.
Can anyone help?


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I create a schedule from a list of dates ? Gavin Morris Charts and Charting in Excel 2 October 28th 10 04:08 PM
Advance Vlookup function may help!! PA Excel Worksheet Functions 6 May 7th 06 04:09 AM
End of month function DavidC Excel Discussion (Misc queries) 3 May 4th 06 11:10 PM
vlookup and a function field input Patrick Excel Worksheet Functions 2 April 27th 06 04:38 PM
help with vlookup function Jake Excel Worksheet Functions 3 November 21st 05 04:01 PM


All times are GMT +1. The time now is 12:09 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"