Analysing jindons stuff at excelforum....
https://www.excelforum.com/excel-pro...ml#post5340103
_____ Workbook: 1.xls ( Using Excel 2007 32 bit )
Worksheet: 1-Sheet1 29May excelforum
Row\Col A B C D E F G H I J 1Exchange Symbol Series/Expiry Open High Low Prev Close LTP 2NSE ACC EQ 1183.72 1240 1161.6 1227.1 1227.1 22BUY 3NSE ADANIENT EQ 139.38 141.2 136.6 138.1 140 25BUY 4NSE ADANIPORTS EQ 311.85 315 306.55 310.6 312 15083SHORT 5NSE ADANIPOWER EQ 33.165 34.5 32.85 33 33.2 17388SHORT 6NSE AMARAJABAT EQ 594 613.5 586.9 592.55 594 100 7NSE ASIANPAINT EQ 1584.488 1625 1555.4 1617.9 1617.9 236BUY
If column J of 1.xls has buy & column H of 1.xls is not greater than column D of 1.xls then match column I data of 1.xls with second field ( column B ) of text file , alert.csv and if it matches then delete that entire record (row) of alert.csv
If column J of 1.xls has a blank cell then match column I data of 1.xls with second field ( column B ) of of text file , alert.csv and if it matches then delete that entire record (row) of alert.csv
If column J of 1.xls has short & column H of 1.xls is Greater than than column D of 1.xls then match column I data of 1.xls with second field ( column B ) of of text file , alert.csv and if it matches then delete that entire record (row) of alert.csv
Text file from https://www.excelforum.com/excel-pro...ml#post5339877
Alert 29May excelforum..csv : https://app.box.com/s/t8c9p6a0lqulknofdb7a22046r0943uv
AlertDotexcelforum29May.JPG : https://imgur.com/kgtz7Nk
AlertDotexcelforum29May.jpg
NSE,236,6,>,431555,A,,,,,GTT
NSE,25,6,>,431555,A,,,,,GTT
NSE,15083,6,>,431555,A,,,,,GTT
NSE,17388,6,>,431555,A,,,,,GTT
NSE,100,6,>,431555,A,,,,,GTT
NSE,22,6,>,431555,A,,,,,GTT
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,row 3 & row 4 & row 5 will be deleted after runing the macro,,,,,
File as seen by ADO stuff… ( )
Records\Fields F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 Record1 NSE 236 6 > 431555 A GTT Record2 NSE 25 6 > 431555 A GTT Record3 NSE 15083 6 > 431555 A GTT Record4 NSE 17388 6 > 431555 A GTT Record5 NSE 100 6 > 431555 A GTT Record6 NSE 22 6 > 431555 A GTT Record7 Record8 Record9 row 3 & row 4 & row 5 will be deleted after runing the macro
Sometimes we may have this
NSE;236;6;>;431555;A;;;;;GTT
NSE;25;6;>;431555;A;;;;;GTT
NSE;15083;6;>;431555;A;;;;;GTT
NSE;17388;6;>;431555;A;;;;;GTT
NSE;100;6;>;431555;A;;;;;GTT
NSE;22;6;>;431555;A;;;;;GTT
;;;;;;;;;;
;;;;;;;;;;
;;;;;;;;;;
;;;;;;;;;;
;;;;;;;;;;
;;;;;;;;;;
;;;;;;;;;;
;;;;;row 3 & row 4 & row 5 will be deleted after runing the macro;;;;;




Reply With Quote

Bookmarks