LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Anthony Dowd
 
Posts: n/a
Default VLOOKUP function

Hi

I have a worksheet containing several cells with formulas like the one shown
below....

=IF($W40="","",IF($I40 = "HealthFundA",VLOOKUP($W40,Fees!$A$2:$J$88,5), ""))

W40 contains item numbers
I40 contains health fund names

The purpose of the above function is to firstly check if there is a value in
W40. If there is a value in W40 and I40 contains the text "HealthFundA" then
the function looks up the equivalent item number in a worksheet called
"Fees" and returns the $ value from the fifth column in the same row on that
worksheet.

The above formulas worked fine until I added new values to the "Fees"
worksheet and sorted them into ascending order by Item Number. I then found
that the correct values were returned in my main worksheet for the old Item
Numbers, but incorrect values were returned in the main worksheet where
there were new Item Numbers in W40.

Any suggestions on where the problem may be?

Thanks in advance
Anthony


 
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
VLOOKUP Function Chris Manning Excel Discussion (Misc queries) 2 June 2nd 05 10:26 PM
How do I access data stored in a SQL server for vlookup function? M.Heer Excel Worksheet Functions 8 May 12th 05 09:51 PM
VLOOKUP Function using Data Ranges. Cal Excel Worksheet Functions 6 April 16th 05 03:26 PM
Array Function with VLOOKUP CoRrRan Excel Worksheet Functions 15 April 8th 05 05:54 PM
carrying a hyper link when using the vlookup function mike Excel Worksheet Functions 1 November 19th 04 03:49 AM


All times are GMT +1. The time now is 03:10 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"