poj I know reading this will bore you. But i cant upload my excel sheet here. I tried ur code. Its working well. But my problem is somewhat different. I am working on SDP data. I have a xlsx datasheet which created through "R" scripting. When I am trying to read the values in that sheet it returning the default value but not exact value.

When ur code runs it reverts like this

AA AB AC AD AE AF AG AH + AI AJ 0.7 SubScore 2 SubScore98 SubScore 98 + SubScore 0.448840495 7.48 7.48 99.66021651 2.26 99.78083497 + 2.26 97.33 97.33 0.584906759 7.48 7.48 99.66985331 2.26 99.79158604 + 2.26 97.33 97.33 0.632038673 7.48 7.48 99.67817389 2.26 99.79316929 + 2.26 97.33 97.33 0.599607733 7.48 #N/A 7.48 99.6643225 2.26 99.792901 +4 2.26 97.33 97.33

The values in the excel sheet

0.448840495 7.48 7.48 99.66021651 2.42 99.78083497 + 2.45 99.34 99.34 0.584906759 6.93 7.48 99.66985331 2.42 99.79158604 + 2.45 98.80 98.80 0.632038673 6.87 7.48 99.67817389 2.43 99.79316929 + 2.45 98.69 98.69

The formulaes in the excel sheet

AA 0.448840495386917 AB =IF(AA15<AA$13,IF(AA15<AA$12,AA$8,((AA15-AA$13)*(AA$8-AA$9)/(AA$12- +AA$13))+AA$9),IF(AA15>AA$14,AA$10,AA$9-((AA$13-AA15)*(AA$9-AA$10)/(AA +$13-AA$14)))) AC [EMPTY CELL] AD =IF(AC15<AC$13,IF(AC15<AC$12,AC$8,((AC15-AC$13)*(AC$8-AC$9)/(AC$12- +AC$13))+AC$9),IF(AC15>AC$14,AC$10,AC$9-((AC$13-AC15)*(AC$9-AC$10)/(AC +$13-AC$14)))) AE 99.6602165102621 AF =IF(AE15>AE$13,IF(AE15>AE$12,AE$8,((AE15-AE$13)*(AE$8-AE$9)/(AE$12- +AE$13))+AE$9),IF(AE15<AE$14,AE$10,AE$9-((AE$13-AE15)*(AE$9-AE$10)/(AE +$13-AE$14)))) AG 99.7808349699302 AH =IF(AG15>AG$13,IF(AG15>AG$12,AG$8,((AG15-AG$13)*(AG$8-AG$9)/(AG$12- +AG$13))+AG$9),IF(AG15<AG$14,AG$10,AG$9-((AG$13-AG15)*(AG$9-AG$10)/(AG +$13-AG$14)))) AI =SUMIF($C$14:$AH$14,"SubScore",C15:AH15) (I need to read this va +lue. By default its 97.33. Exact value is 99.34) AJ =AI15

if we read the cell->value it have to read it as 99.34 but its reading it as 97.33 (Default values occur through formulae)

Note: Suppose if you open the sheet and delete the last empty (Nothing in that rows. Saved with formulae for next days) rows or if you change any small change (editing any cell overall the sheet) and save it. Then its showing the exact value 99.34.

But i dont know how that other cell doing what here. So, I think to open the xlsx sheet and delete a row(just for check) from last of the sheet through perl and check it either it showing 99.34 or 97.33.


In reply to Re^6: Delete entire row without using Win32::OLE by ravi45722
in thread Delete entire row without using Win32::OLE by ravi45722

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.