Hi Guys
New to the forum, and still quite new to scripting with batch files..
So please bare with me..
Right so, this is what i'm trying to do.
I Have an excel file with 2 Columns
CODE(Columns A) Number(Columns B)
C001 55513689
C002 55513684
C003 55554893
Basically, I want to write a batch, or anything else that could be better - to search for the code, and output the number.
So.. You put in there "C003" and it outputs "55554893"
Thank youuuuu all
Searching within EXCEL file and outputting answer
Moderator: DosItHelp
Re: Searching within EXCEL file and outputting answer
Batch files cannot read Excel files. You will need to look at using Vbscript or Jscript.
Re: Searching within EXCEL file and outputting answer
If you save the spreadsheet as a .csv comma-delimited file you can work with this in batch:John A
Code: Select all
"C001",55513689
"C002",55513684
"C003",55554893
-
- Posts: 82
- Joined: 30 Dec 2013 10:16
- Location: United States by the big waterfall
Re: Searching within EXCEL file and outputting answer
This is a job for VBA in excel. Post it up in the Excel VBA forum on Stackoverflow Excel VBA and you'll get an answer but be sure to actually try something first.
Re: Searching within EXCEL file and outputting answer
Can anyone assist with a VBS then?
Re: Searching within EXCEL file and outputting answer
D007Nomad wrote:Can anyone assist with a VBS then?
No. That is out of scope of what this forum does. You were directed to post over on StackOverFlow.