This is way beyond my knowledge so I need some collective assistance. I want to take a variable input by the user using the SET command (ex. US-1234ABC) and strip off the 1st 3 characters to end up with (1234ABC). Then take that variable and open an Excel spreadsheet (ex. data.xlsx) and look in column A for a match. If it finds a match take the data from column B in the same line and append it to a file (temp.txt) that already has other info in it pertaining to this variable. I have no clue how to do this and any help would be appreciated!
Thanks in advance!