2 Attachment(s)
Filter a text file and produce a new one
Hello everybody
I don't know if this is possible in excel .. . I try to explain :
1) I have a text file made of n rows ( n can be from 300 to 5000 for instance ) and each row is made of six numbers separated by one space.
2) In a xls file I have x groups of numbers, each one made of three columns ( x can go from five to max seventeen ).
I need to analyze each row of the text file, each row will be maintained in a new text file only if it satisfy some conditions inserted as input to a macro of the excel file.
Example :
The last row of the attached sample text file is 49 53 62 75 80 86 , in the excel file I have highlighted that numbers and evaluated the occurrences for each group so I notice one presence for group 6, two for group 7 and so on.
In the excel file I have inserted in Y4 the 4 value as first parameter of comparison and specified in AV4 and AX4 the Min and Max quantity desired :
the examined row will be discarded because an occourrence of 4 presences are discovered on the tenth group when a 'no presence' was requested by the two values 'zero' inserted as condition.
As consequence In the new created txt file that row will no be present.
I have searched in the data base of cases but I do not find anything tha can be suitable for my case and due to my very poor experience with macro language i hope that someone can help me
thanks anyway