Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default Auto Import OR Searching TXT Data

Is there any simple way to import a file from a TXT file automatically
by clicking a button in Excel. If not is there a way or program to
convert a txt file to excel via batch file? Basically I have this
command:

=IF(COUNTIF(Sheet2!A1:A7969,C8)0,"YES","NO")

This is asking if I enter a number in cell C8 and it equals any number
on Sheet 2 in column A
then return a YES if not NO. However this file changes daily and I
dont want to have to keep reimporting this file every day by hand and
would like it automated basically with either a click of a button or
off the name of a constant spread sheet or TXT file.

Any ideas would be GREAT!!

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default Auto Import OR Searching TXT Data

Answered my own question:
Just in case anyone is curious how I did this...

Noticed that if you rename the ***.txt to ***.cvs it will put in XLS
format
Took txt file in batch file and renamed. Used the new spread sheet
name in place of
Sheet2 and the whole column. Placed this is a folder on the server and
just attached
a short cut to desktop and used link to batch file to run inside excel
to update each time.

=IF(COUNTIF(ExTRTbl.csv!$A:$A,C8)0,"Yes","No")

This was my fast work around... but if anyone else knows of a better
way? Please post.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
HOW SHOULD I IMPORT & PASTE ONLY THE REQUIRED DATA amar kayala Excel Discussion (Misc queries) 0 January 6th 06 01:45 PM
How to import data from a password protected Access DB into Excel. Agus Excel Discussion (Misc queries) 0 October 12th 05 05:42 PM
import data to specific columns marlea Excel Discussion (Misc queries) 1 August 12th 05 02:05 AM
Import Data Keeps asking for Password Dominator Excel Discussion (Misc queries) 0 June 5th 05 11:25 PM
import select data from another workbook schoeller Excel Worksheet Functions 0 March 31st 05 03:13 AM


All times are GMT +1. The time now is 04:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"