Hey Guys,
I am building an upload tool in Excel where a user can insert (in bulk) roughly 5 Columns of data and up to 1000 rows. Prior to the SQL upload, I would like to check the values input by the user to see if they match exactly to the pre-defined names within named ranges. (I will bring these into another sheet from a SQL Table as the values have a tendency to change)
I am trying to incorporate a check against a column range (A2:A1000) against a defined range (we will call it fruit).
FRUIT = (Banana, Apple, Orange, Lemon)
I would like to check the range (A2:A1000) to see if the value DOES NOT equal the value in the range (FRUIT). If it does not equal a value from the named range of FRUIT in a specific cell within this range, I would like an error message to reflect the Cell which does not meet the criteria and stop the remainder of the checks but more specifically, the SQL upload.
(The stop would mean that the upload to the tables via SQL would not take place until the user corrected the incorrect cell value. At which time they could re-run their upload and proceed.
I will be incorporating this check for 3 to 5 columns where each column is a specific named range on a seperate worksheet named "Variable".
I am building an upload tool in Excel where a user can insert (in bulk) roughly 5 Columns of data and up to 1000 rows. Prior to the SQL upload, I would like to check the values input by the user to see if they match exactly to the pre-defined names within named ranges. (I will bring these into another sheet from a SQL Table as the values have a tendency to change)
I am trying to incorporate a check against a column range (A2:A1000) against a defined range (we will call it fruit).
FRUIT = (Banana, Apple, Orange, Lemon)
I would like to check the range (A2:A1000) to see if the value DOES NOT equal the value in the range (FRUIT). If it does not equal a value from the named range of FRUIT in a specific cell within this range, I would like an error message to reflect the Cell which does not meet the criteria and stop the remainder of the checks but more specifically, the SQL upload.
(The stop would mean that the upload to the tables via SQL would not take place until the user corrected the incorrect cell value. At which time they could re-run their upload and proceed.
I will be incorporating this check for 3 to 5 columns where each column is a specific named range on a seperate worksheet named "Variable".