Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 37
Default Lookup Value from Table erratic

Hi

I have 2 workbooks for entering Order and Bill Details. The Order
Details is as follows

OrderID Description Total
3456 rrrrr 2323424
2351 asdkljf 495890
5612 wobvwei 1265
9325 vavmewr 39224

The Bill Details workbook has the following fields

OrderID Bill no Bill Amt Description
3456 SE/3494 45351
2351 ax-erewr 23213
5612 KS/inv/034 1265
9325 345 39224
2351 bx-erewr 123033
3456 SE/3600 1125000
3456 SE/3712 572375

Now I would like to add another column after Bill Amt, to get the
matching Order Description (from Order Details) with the corresponding
OrderID in the Bill Details.I tried the VLookup formula
VLookup(A2,OrderDetails!A2:C5,2,TRUE) in the Description field of
BillDetails, but the result is erratic. The problem was solved when I
sorted the OrderDetails Table based on OrderID.

Is there any way that I can get the correct Lookup value without
sorting the OrderDetails Table.

Thanks for the help
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Lookup Value from Table erratic

Hi Dear

Try using MATCH with INDEX
Refer http://www.contextures.com/xlFunctions03.html

If this post helps click Yes
---------------
Jacob Skaria


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Lookup Value from Table erratic

Hi,

Enter the last argument of the VLOOKUP() function as FALSE (or 0) instead of
TRUE

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"shriil" wrote in message
...
Hi

I have 2 workbooks for entering Order and Bill Details. The Order
Details is as follows

OrderID Description Total
3456 rrrrr 2323424
2351 asdkljf 495890
5612 wobvwei 1265
9325 vavmewr 39224

The Bill Details workbook has the following fields

OrderID Bill no Bill Amt Description
3456 SE/3494 45351
2351 ax-erewr 23213
5612 KS/inv/034 1265
9325 345 39224
2351 bx-erewr 123033
3456 SE/3600 1125000
3456 SE/3712 572375

Now I would like to add another column after Bill Amt, to get the
matching Order Description (from Order Details) with the corresponding
OrderID in the Bill Details.I tried the VLookup formula
VLookup(A2,OrderDetails!A2:C5,2,TRUE) in the Description field of
BillDetails, but the result is erratic. The problem was solved when I
sorted the OrderDetails Table based on OrderID.

Is there any way that I can get the correct Lookup value without
sorting the OrderDetails Table.

Thanks for the help


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Lookup Value from Table erratic

On Mar 16, 11:37*am, "Ashish Mathur" wrote:
Hi,

Enter the last argument of the VLOOKUP() function as FALSE (or 0) instead of
TRUE

--
Regards,

Ashish Mathur
Microsoft Excel MVPwww.ashishmathur.com

"shriil" wrote in message

...



Hi


I have 2 workbooks for entering Order and Bill Details. The Order
Details is as follows


OrderID Description Total
3456 rrrrr * * * * * *2323424
2351 asdkljf * * * * * *495890
5612 wobvwei * * * * * * * *1265
9325 vavmewr * * * * * * *39224


The Bill Details workbook has the following fields


OrderID Bill no * * * Bill Amt * * * *Description
3456 SE/3494 * * * 45351
2351 ax-erewr * * * 23213
5612 KS/inv/034 * * 1265
9325 345 * * * 39224
2351 bx-erewr * * *123033
3456 SE/3600 * * 1125000
3456 SE/3712 * * *572375


Now I would like to add another column after Bill Amt, to get the
matching Order Description (from Order Details) with the corresponding
OrderID in the Bill Details.I tried the VLookup formula
VLookup(A2,OrderDetails!A2:C5,2,TRUE) in the Description field of
BillDetails, but the result is erratic. The problem was solved when I
sorted the OrderDetails Table based on OrderID.


Is there any way that I can get the correct Lookup value without
sorting the OrderDetails Table.


Thanks for the help- Hide quoted text -


- Show quoted text -


Yep! Got it. Thanks a ton!

Shriil
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Lookup Value from Table erratic

You are welcome.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"slah" wrote in message
...
On Mar 16, 11:37 am, "Ashish Mathur" wrote:
Hi,

Enter the last argument of the VLOOKUP() function as FALSE (or 0) instead
of
TRUE

--
Regards,

Ashish Mathur
Microsoft Excel MVPwww.ashishmathur.com

"shriil" wrote in message

...



Hi


I have 2 workbooks for entering Order and Bill Details. The Order
Details is as follows


OrderID Description Total
3456 rrrrr 2323424
2351 asdkljf 495890
5612 wobvwei 1265
9325 vavmewr 39224


The Bill Details workbook has the following fields


OrderID Bill no Bill Amt Description
3456 SE/3494 45351
2351 ax-erewr 23213
5612 KS/inv/034 1265
9325 345 39224
2351 bx-erewr 123033
3456 SE/3600 1125000
3456 SE/3712 572375


Now I would like to add another column after Bill Amt, to get the
matching Order Description (from Order Details) with the corresponding
OrderID in the Bill Details.I tried the VLookup formula
VLookup(A2,OrderDetails!A2:C5,2,TRUE) in the Description field of
BillDetails, but the result is erratic. The problem was solved when I
sorted the OrderDetails Table based on OrderID.


Is there any way that I can get the correct Lookup value without
sorting the OrderDetails Table.


Thanks for the help- Hide quoted text -


- Show quoted text -


Yep! Got it. Thanks a ton!

Shriil


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
Erratic display of concatenation Colin Hayes Excel Worksheet Functions 3 October 3rd 08 02:18 AM
Automatic Completion Erratic jimjomac Excel Discussion (Misc queries) 1 February 3rd 08 05:10 PM
Erratic Workbook Password Problems Rich Kooyer[_2_] Excel Discussion (Misc queries) 2 September 13th 07 04:46 PM
SUM formulas exhibiting erratic behavior Mango Excel Discussion (Misc queries) 3 May 9th 07 03:19 PM
Erratic Cursor Behavior Cathy C Excel Discussion (Misc queries) 6 June 18th 05 04:17 PM


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