Issue with vlookup

manekankit

Board Regular
Joined
Feb 1, 2019
Messages
72
Office Version
  1. 365
Platform
  1. Windows
Having below issue while applying vlookup

Column A1 to 100 contains customer codes, all numerical

Column b1 to 100 contains customer balances

A and B values are loaded directly from accounting software through Excel add-in. Column A values are all digits but loaded in text format.

In cell c1, i type customer code manually.

I want to apply vlookup in cell D1, that will lookup c1 value in column A and give balance from column B.

But as values in column A are stored in text format, vlookup formula is resulting in an error.

If i conver all values in column A to numbers, vlookup works fine.

Is there any way out through vlookup or other formula to get values in cell D1 without converting column A values to numbers
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
SUMPRODUCT for sumif:
MrExcelPlayground12.xlsx
ABCDE
111002200600
22200
33300
42400
55500
66600
Sheet9
Cell Formulas
RangeFormula
D1D1=INDEX(B1:B6,MATCH(C1,VALUE(A1:A6),0))
E1E1=SUMPRODUCT(VALUE(B1:B6),--(VALUE(A1:A6)=C1))
 
Upvote 0
Index Match here. XLOOKUP aught to work if you have 365.

MrExcelPlayground12.xlsx
ABCD
11a2b
22b
33c
44d
55e
66f
Sheet9
Cell Formulas
RangeFormula
D1D1=INDEX(B1:B6,MATCH(C1,VALUE(A1:A6),0))
match and xlookup resulted in error. however text and sumproduct value resulted
Thanks for that (y)

Let's get the vlookup working 1st. Did you try my suggestion?
vlookup is not working. also tried xlookup in office 365. but not working.

189150
100​
299070​
#N/A​
=MATCH(C1,A1:A5,0)
189150
200​
#VALUE!​
=XLOOKUP(C1,A:A,1,0)
299070
300​
#VALUE!​
=VLOOKUP(C1*" ",A1:B5,2,0)
 
Upvote 0
In the vlookup you need to change the * for an & and also remove the space between the quotes.
 
Upvote 0
In the vlookup you need to change the * for an & and also remove the space between the quotes.
Perfect! vlookup, text and sumproduct formulas are working.
Thanks for your time and support. pasting below for ready reference.

189150
100​
299070​
#N/A​
=MATCH(C1,A1:A5,0)
189150
200​
#VALUE!​
=XLOOKUP(C1,A:A,1,0)
299070
300​
300​
=VLOOKUP(C1&"",A1:B5,2,0)
188998
400​
300​
=VLOOKUP(TEXT(C1,0),A1:B5,2,0)
299070
500​
800​
=SUMIF(A1:A5,TEXT(C1,0),B1:B5)
800​
=SUMPRODUCT(VALUE(B1:B5),--(VALUE(A1:A5)=C1))
#N/A​
=VLOOKUP(VALUE(C1),A1:B5,2,0)
 
Upvote 0
Upvote 0
SUMPRODUCT for sumif:
MrExcelPlayground12.xlsx
ABCDE
111002200600
22200
33300
42400
55500
66600
Sheet9
Cell Formulas
RangeFormula
D1D1=INDEX(B1:B6,MATCH(C1,VALUE(A1:A6),0))
E1E1=SUMPRODUCT(VALUE(B1:B6),--(VALUE(A1:A6)=C1))
hi thanks for your time and reply. Index/Match formulas not working.

Sumproduct formula is working pefectly, however i am unable to comprehend the formula as i have never used such formula. Can you share some link to understand the structure of such type of formulas.
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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