LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Lookup & return data from ascii text file


I'm trying to figure out the following:

1) Take the Lookup Value in Cell B2, i.e. "*0001324*"

2) Find the match in a text file with PSV laid out thusly over 1.
million lines-- PartNumber may, or may not, be in ascending order:
PartNumber|ItemName|SoS|Unit|Price|Core
9999999|Fluid, Brake,Silicon|E|GAL|$56.00|N
0000001|Gadget,Widget|A|DZ|$99.99|N
*0001324*_|Starter,_Pre-Lubed|A|EA|$1500.00|Y_
0001322|Starter,Standard|B|EA|$3570.00|Y

3) Return the matching line across Cells that may or may not match th
text file order.
i.e: _ItemName_ to D2, _SoS_ to C2, _Unit_ to E2, _Price_ to G2
_Core_ to F2

-Bonus: ensure that there is only one space after each comma-.

4) Loop until there are no more Lookup Values in Column B.
Note: Since the Invoice could be one page or 20, it would involv
using
the PrintArea to establish the length of Col B and backin
off "x"
number of Rows to get to the actual last row of the invoic
table,
or simply determing the last cell of worksheet.

TIA

And

--
AH·
-----------------------------------------------------------------------
AH·C's Profile: http://www.excelforum.com/member.php...fo&userid=2910
View this thread: http://www.excelforum.com/showthread.php?threadid=48828

 
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
text ASCII file format Clovis Costa Excel Discussion (Misc queries) 2 June 19th 09 05:21 PM
Ascii iinput file - separate text from Numbers [email protected] Excel Worksheet Functions 3 August 29th 06 02:46 PM
How do I convert excel file into ASCII text file with alignment? Rosaiah Excel Discussion (Misc queries) 2 June 27th 05 12:17 PM
saving an excel file as an ASCII text file without delimiters Sewellst Excel Programming 4 January 7th 05 01:41 PM
Read from an ascii text file Mike Excel Programming 1 September 7th 04 08:46 AM


All times are GMT +1. The time now is 12:01 AM.

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"