Hello, first time user, first post
I have a 2 page workbook where sheet2 is a large chart which gives different definitions for myriad alphanumeric codes. My goal is to give a user of this workbook the ability to enter a 6 digit, alphanumeric code into one cell on sheet1. In 6 separate cells on sheet1 I'm using the LEFT, MID, and RIGHT functions to pull each digit from that code. Each digit has the potential of being a number or text. Also, each of the six digits have a different definition. In a 7th cell on sheet1 is where I have my vlookups pulling info from sheet2.
My workbook works perfectly when only using the 6 cells to enter data. It's only when I use the left, mid and right functions that I get the error "#N/A". Furthermore, it only gives the error when the digit to be shown is a number, obviously because it's formatted as text. The problem is, sometimes it WILL be text.
A1 will have 6 digit alphanumeric code
A2 will show value of digit 1 only.
A3 will show value of digit 2 only. etc...
How can I format my cells, that will inevitably have a Number value, to automatically format themselves for numbers or text?
Thanks,
Rich
I have a 2 page workbook where sheet2 is a large chart which gives different definitions for myriad alphanumeric codes. My goal is to give a user of this workbook the ability to enter a 6 digit, alphanumeric code into one cell on sheet1. In 6 separate cells on sheet1 I'm using the LEFT, MID, and RIGHT functions to pull each digit from that code. Each digit has the potential of being a number or text. Also, each of the six digits have a different definition. In a 7th cell on sheet1 is where I have my vlookups pulling info from sheet2.
My workbook works perfectly when only using the 6 cells to enter data. It's only when I use the left, mid and right functions that I get the error "#N/A". Furthermore, it only gives the error when the digit to be shown is a number, obviously because it's formatted as text. The problem is, sometimes it WILL be text.
A1 will have 6 digit alphanumeric code
A2 will show value of digit 1 only.
A3 will show value of digit 2 only. etc...
How can I format my cells, that will inevitably have a Number value, to automatically format themselves for numbers or text?
Thanks,
Rich