|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Math question: Based on excelspreadsheet. I just need the VB.NET equivalent.. One of the cells (Lets call it cell G3) contains a percentage e.g. 3.2% How can I do the math against the cell? for example sum = (150 - 30) / (1 +(G3)) TIA MarkusJ ================================ Ignore below jhgklioplsjdujehhrejhjrejhekdsdlkasdlerksdksd ================================ Tia,
You just need to call a variable rather than a cell, so in Excel you say G3, in VB you would say Percentage_Value; i.e. Dim Percentage_Value as Integer Dim Total_Value as Integer Total_Value = (150 - 30) / (1 + Percentage_Value) I hope this helps ! Yours sincerely, William Foster *** Sent via Developersdex http://www.developersdex.com *** Thanks!
William Foster wrote: Show quoteHide quote > Tia, > > You just need to call a variable rather than a cell, so in Excel you say > G3, in VB you would say Percentage_Value; > > i.e. > > Dim Percentage_Value as Integer > Dim Total_Value as Integer > > Total_Value = (150 - 30) / (1 + Percentage_Value) > > I hope this helps ! > > Yours sincerely, > > William Foster > > *** Sent via Developersdex http://www.developersdex.com ***
DateTime conversion to Integer
Parsing between a character and sysmbol A little help with an array & 'NullReferenceException was unhandled' ?? VB 2005 Syntax A windows service question Detecting if a printer is connected to the PC Component UI CAB Architecture Guide??? For Dummies Book? :-) SqlDataAdapter.FillSchema Send SMS from PC through fixed land line VB6: send active hyperlink in body of email sent in VB6 |
|||||||||||||||||||||||