Lookup Code Not Fully Working

muhammad susanto

Well-known Member
Joined
Jan 8, 2013
Messages
2,077
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
hi all...

how to make lookup for this table,
rumus lookup vehicle rangka.xlsx
EFGHI
3CODEYEARID NUMBER (DATA GIVEN)TARGET-1TARGET-2
4A1980MHFM1BA3JAK01616219802010
5A2010  
612001MHFF1VA4K6K016162??
712031
862002
962032
Sheet1 (2)
Cell Formulas
RangeFormula
H4:I5H4=IFERROR(IF(LEN(G4)=4,G4+30,VLOOKUP(MID(G4,10,1),$E$4:$F$9,2,0)),"")


for code 1 the formula not working..
Id Number in pulled from number of 10th from left
any body help me..

.sst
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
G information yields text; consequently, lookup E4:E9 should be text.
Your formula requires that E6:E9 be text.
Delete the numbers, format the area as text and then enter 1, 1, 6, 6

You could use VLOOKUP(MID(G6,10,1)+0,$E$4:$F$9,2,0) but then this work not work with text like A
 
Upvote 0
T202007a.xlsm
EFGHI
3CODEYEARID NUMBER (DATA GIVEN)TARGET-1TARGET-2
4A1980MHFM1BA3JAK01616219802010
5A2010  
612001MHFF1VA4K6K01616220022032
712031
862002
962032
1d
Cell Formulas
RangeFormula
H4:I6H4=IFERROR(IF(LEN(G4)=4,G4+30,VLOOKUP(MID(G4,10,1),$E$4:$F$9,2,0)),"")


What part of your formula is not working?
What did you try?
Did you use Excel's Formulas Evaluate Formula?
 
Upvote 0
T202007a.xlsm
EFGHI
3CODEYEARID NUMBER (DATA GIVEN)TARGET-1TARGET-2
4A1980MHFM1BA3JAK01616219802010
5A2010  
612001MHFF1VA4K6K01616220022032
712031
862002
962032
1d
Cell Formulas
RangeFormula
H4:I6H4=IFERROR(IF(LEN(G4)=4,G4+30,VLOOKUP(MID(G4,10,1),$E$4:$F$9,2,0)),"")


What part of your formula is not working?
What did you try?
Did you use Excel's Formulas Evaluate Formula?
hi Dave...
thank you so much!! Working perfect.
 
Upvote 0

Forum statistics

Threads
1,215,425
Messages
6,124,826
Members
449,190
Latest member
rscraig11

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