LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mary-Lou
 
Posts: n/a
Default Unexplainable results from my vlookup

On a vlookup, I am getting strange results on only 5% of the values.
My "Worksheet A" houses info about staff and contains some headings like:
- column A = "Resource Name"
- column H = "Resource Start Date"
- column I = "Week # Resource Started""

My "Worksheet B" houses my workplace's fiscal calendar (fiscal year runs
mid-Oct to mid-Oct, not Jan 1 to Dec 31) and contains the following headings:
- column C = "Start Date of Week"
- column D = "End Date of Week"
- column E = "Week #" (52 rows)

In column I (in Worksheet A), I have the following vlookup:
=IF($B2="","",VLOOKUP($B2,WorksheetB!B$2:C$53,3,1) )
The purpose is to lookup the resource start date (column H in Worksheet A)
and compare it against the date range in Worksheet B (columns C, D, E) and
return the week# value (I need the week number for another calculation).

The function worked great on random testing but when I did a thorough test I
found it only worked on 95% of the records - every entry from Dec 18 thru to
Jan 6 all return a value of "12" for the week # (that's 20 days stating the
answer is week 12).

How can this be? What am I doing wrong? And how can I fix it?

Example of data in Worksheet B:
Start date of week=22/10/05, End date of week=28/10/05, Week#= 1
Start date of wee=29/10/05, End date of week=04/11/05, Week#= 2
.....
Start date of week=17/12/05, End date of week=23/12/05, Week#= 9
Start date of week=24/12/05, End date of week=30/12/05, Week #= 10
.....
Start date of week=14/10/06, End date of week =20/10/06, Week #=52

 
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
Embedding functions in Vlookup? AsstInterests Excel Worksheet Functions 2 May 25th 06 08:54 PM
can vlookup place results in a different box than the formula? Psychlogic Excel Worksheet Functions 6 January 24th 06 11:10 PM
vlookup: I have to double click each cell to get correct results? gillyd Excel Worksheet Functions 2 January 24th 06 01:06 PM
format cell based on results of vlookup function Edith F Excel Worksheet Functions 1 July 21st 05 07:39 PM
Formatting the Results of VLOOKUP LPS Excel Worksheet Functions 1 February 11th 05 02:15 PM


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

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

About Us

"It's about Microsoft Excel"