Text & Scientific Formated Cells + VLOOKUP

GeeBDee

New Member
Joined
Dec 7, 2015
Messages
36
Hi all

I have a spreadsheet that requires a reference number (SDAC REF) to be input which then triggers the VLOOKUP for the SDAC Name & STW Catchment. This all works fine until a reference number with (????E1??) is input, this then changes the cell to Scientific and the VLOOKUP does not work. I have tried formatting the reference cells to TEXT and this works well, however reference number that do not have letters in them will no longer trigger the VLOOKUP? So, is there anyway the reference cell can stop changing (????E1??) to scientific?

My VLOOKUP example for the SDAC Name is as below:

Code:
=IF(ISNA(VLOOKUP(H8,'SDAC +'!$A$3:$V$4887,3,FALSE)),"",VLOOKUP(H8,'SDAC +'!$A$3:$V$4887,3,FALSE))

I do not post very often so if I have missed something or done something wrong then I apologise.

GD
 
Last edited by a moderator:

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
GeeBDee wrote: "however reference number that do not have letters in them will no longer trigger the VLOOKUP".

The best solution is to consistently treat SDAC REFs as text, not numbers, both in the lookup-value cell (H8) and the lookup column (A3:A4887).

As for avoiding "...E1..." as a number in scientific notation, that depends on how you input the SDAC REFs, in the first place. Are they typed manually? If not, how are they "input"?

But generally, it is unavoidable, unless it is typed manually, and you can tell the typist to prefix the SDAC REF with an apostrophe (single-quote).
 
Upvote 0
Hi Joeu
Thank you for the quick reply. The SDAC REF numbers are manually keyed in which then trigger the VLOOKUP. I have just tried formatting the SDAC Ref to text (H8) and the whole VLOOKUP sheet to text as well, this then works with the references that have E1 but the VLOOKUP then stops working when only numbers are keyed in. Is there no way round this?

GD
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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