Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Jason Perry   on Nov 28 In MS Office Category.

  
Question Answered By: Shannon Hughes   on Nov 28

Another solution, example as follows.

1. In B2:B13 put the month  names, i.e. January, February, ...
2. Name these 12 cells e.g. MonthNames (select the 12 cells, Insert,
Name, Define, type in MonthNames).
3. In C2 type in =MONTH("01-" & MonthNames & "-06") and hit enter.
4. Select the 12 cells C2:C13. Hit F2 in cell  C2. Hit control-shift-
enter to create an array.
5. Select the 24 cells B2:C13. Name them MonthNumbers.
6. In cell D2 put whatever Month Name is being looked up, e.g. June.
7. In cell E2 type VLOOKUP(D2, MonthNumbers,2,False).

This solution will return the MonthNumber in E2, and does not
require that the MonthNames array be sorted. HTH.

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on 2003 Match() Problem Or get search suggestion and latest updates.


Tagged: