Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default Return array of data by date range

I am trying to determine if VLOOKUP can search an array by any day within a
calendar month (look_up_value) and return a list of names in the adjacent
column (table_array).
Ken
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 33
Default Return array of data by date range

I believe you're saying you'd like to have a list of dates in one column (A)
and a corresponding list of month names in another (B). You could set up a
table of data off to the side or on another sheet which contains the list of
month numbers and month names like this:

Month_Num Month_Name
1 January
2 February
3 March
etc etc

To get the name of the month into column B, you would just VLOOKUP the month
in the table like this:

=VLOOKUP(MONTH(A2),$Y$1:$Z$15,2,0)

This assumes the list of month names is in Y1:Z15.

A better solution to this problem might be to have column B just = column A.
Then format column B as the month name only by going into Format Cells -
Custom and typing MMMM in the custom format box. Then, column B will
ACTUALLY be the dates, but will LOOK like the month names.

Does that work?

--
If you like this answer, please click ''Yes.''

Happy calculating!


"Ken King" wrote:

I am trying to determine if VLOOKUP can search an array by any day within a
calendar month (look_up_value) and return a list of names in the adjacent
column (table_array).
Ken

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
Return an array of data based on range of date Ken King Excel Worksheet Functions 3 February 27th 09 06:02 PM
array formula: return next date from list [email protected] Excel Worksheet Functions 2 July 19th 06 10:15 PM
Lookup Value in Range/Array and Return Column Header Value [email protected] Excel Discussion (Misc queries) 3 June 16th 06 07:05 PM
Lookup Value in Range/Array and Return Column Header Value [email protected] Excel Worksheet Functions 3 June 16th 06 07:05 PM
Can INDIRECT return a range array? DaveO Excel Worksheet Functions 3 February 14th 06 02:25 PM


All times are GMT +1. The time now is 06:48 AM.

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"