vlookup problem

TheIntern

New Member
Joined
Mar 15, 2011
Messages
30
Hello everyone

Is it possible to use vlookup without sorting the colums in ascending order?
I need data from another sheet transfered without changing the order...any ideas?

Thanks in advance,

The Intern

P.S.: Sorry for the double post...how can you delete a post?^^
 
Last edited:

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Hello,

You can use the last option to FALSE or 0. This will look for the exact match. Not necessary to sort the data. If the table_array doesn't have the exact match of the lookup_value, will return #N/A. If you can provide a sample data would be better.
 
Upvote 0
Thanks for your quick reply!
The problem is the data is confidential company property, so I am afraid I can't publish it.
I try to describe it in more detail.
The data I want to transfer to the other sheet is the inventory stock. It is linked to the material number in another sheet. If I try to use vlookup without changing the order ( the sheet will be potected, so the users won't be able to sort) with false or 0 everything is #N/A (or "" in my case,see formula below).
Is there another excel formula, which suits better?

I use this formula:
Code:
=IF(ISNA(VLOOKUP(C50;'sheet1'!$BH$12:$BI$1518;2;FALSE));"";(VLOOKUP(C50;'sheet1'!$BH$12:$BI$1518;2;FALSE)))
C and BH contain the material numbers (some are blank between the numbers)
BI contains the numbers I want to look up
 
Last edited:
Upvote 0
Check the both cells formats. C50 & BH, both should be in same format.

Ie,

C50 = 50 (formated as general)
BH250 = 50 (formated as text, looks like same as C50, or extra spaces...)

VLOOKUP will give you #N/A in this case.
 
Upvote 0
Thanks for the quick relpy, the problem was, that I had to transfer the formula to a value. Vlookup doesn't work with a formula, right?
 
Upvote 0
Simple extract done 2 ways, it might help you to get on the track....Of course you can nest it with If, iserror or even N/A , this was meant to show you can use 2 functions "Vlookup " and "index / match"

good luck :)


Excel Workbook
FGHIJKL
1Extracted in the same order as master sheet
2This is master sheet (I think?)This is sheet 2
3Inventory NoQtyInventory No-Using index-Using Vlookup
4Inv-14Inv-144
5Inv-310Inv-31010
6Inv-1022Inv-102222
7Inv-25Inv-255
8Inv-1155Inv-115555
9Inv-1288Inv-128888
10Inv-9100Inv-9100100
11Inv-855Inv-85555
12Inv-567Inv-56767
13Inv-7230Inv-7230230
14Inv-64Inv-644
15Inv-42Inv-422
Sheet4
 
Upvote 0
VLOKUP will work wih formula. May be your cell formated as text or used a TEXT() formula to get the output in those cells.
 
Upvote 0
Thanks for your help!

It now works with a formula like that:
Code:
=IF(ISNA(VLOOKUP(C2;'sheet1'!$BH$12:$BI$5050;2;FALSE));"";(VLOOKUP(C2;'sheet1'!$BH$12:$BI$5050;2;FALSE)))
I don't really know what I changed...anyway, how can I convert a formula to numbers? Usually an error occurs and I convert text like that.
 
Last edited:
Upvote 0
I already solved my problem:
Code:
=IF(IF(A14="name";F14;"")="";"";VALUE(IF(A14="name";F14;"")))

Thanks again for your help everyone!
 
Upvote 0

Forum statistics

Threads
1,224,616
Messages
6,179,911
Members
452,949
Latest member
beartooth91

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top