Excell attendance with vlookup

tkingaz

New Member
Joined
Aug 14, 2018
Messages
1
I have a spreadsheet that I am trying to remove the first and last character when a student slides their card to check in to my office. when scanned it get this %11568?. I want to see 11568 and have vlookup look up the 11568 and put the student name in. This code is in B column, that reads the A column of "%11568? ,
B column =IF(A6="","",IF(LEN(A6)>6,VALUE(LEFT(A6,LEN(A6)-1)),A6)) returns %11568?
C column =IF(B5="","",VLOOKUP(B5,'Name list'!$A$2:$B$889,2,FALSE)) returns N/A

screenshot.png
 
Last edited by a moderator:

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Try this to return the number.
This will return a number, if your student number is formatted as text and not numeric it will return N/A. If you are looking up text then change formula to:

Excel Formula:
=IF(A6="","",MID(A6,2,LEN(A6)-2))
Excel Workbook
AB
6%11568?11568
Sheet
 
Last edited by a moderator:
Upvote 0

Forum statistics

Threads
1,215,963
Messages
6,127,957
Members
449,412
Latest member
montand

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