Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() 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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
text ASCII file format | Excel Discussion (Misc queries) | |||
Ascii iinput file - separate text from Numbers | Excel Worksheet Functions | |||
How do I convert excel file into ASCII text file with alignment? | Excel Discussion (Misc queries) | |||
saving an excel file as an ASCII text file without delimiters | Excel Programming | |||
Read from an ascii text file | Excel Programming |