Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Variables in Spreadsheet:: WriteExcel

Status
Not open for further replies.

rab54

Programmer
Jan 28, 2004
112
GB
Hi gurus -

OK This works -

sample - $sheet1->write(8, 0, '=IF(A5>3,"Yes", "No")');

What I need is this -

$sheet1->write("$i", 3, '=(100/C$i) )*B$i/100', $format1);

$i is the row count - I am strugging with the '100/C$i' section -

I need to get the value of the 2nd/3rd $i's - I have tried '," and brackets around it but still get $i NOT the actual value -

If any-one can help it would most excellent ....

cheers

Rab
 
Try using double quotes:

$sheet1->write("$i", 3, "=(100/C$i) )*B$i/100", $format1);

-Nick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top