473,320 Members | 1,900 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Math question: Based on excel

Hi, I have to do some math processing based on some sums in an excel
spreadsheet.

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
================================

Aug 18 '06 #1
2 884
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 ***
Aug 18 '06 #2
Thanks!

William Foster wrote:
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 ***
Aug 18 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: RobG | last post by:
I am writing a script to move an absolutely positioned element on a page by a factor using style.top & style.left. The amount to move by is always some fraction, so I was tossing up between...
15
by: Quackker12 | last post by:
is there a function in ansi c that does this? sigma(2^n/n!,0,infinity,n); syntax sigma(expression, start, end, variable); may be expression could be a function.... I know you can do this...
0
by: Peter | last post by:
I am having a problem reading an Excel file that is XML based. The directory I am reading contains Excel files that can be of two types. Either generic Microsoft based or XML based. I am reading...
6
by: kath | last post by:
Hi all, Platform: winxp Version: Python 2.3 I have a task of reading files in a folder and creating an one excel file with sheets, one sheet per file, with sheet named...
2
by: Mad Scientist Jr | last post by:
>From an asp.net web page I want the user to open the results of a SQL query in Excel, as automatically as possible (ie not having to loop through columns, rows, in code). For this,...
7
by: C.W.Holeman II | last post by:
For info on the context of my question see the end of this posting. From http://www.w3.org/TR/XHTMLplusMathMLplusSVG/: How can I validate the result of client-side XSLT transform which has...
5
by: SimpleMan75 | last post by:
Here's the scenario I've been approached with - We have an Excel template - what I need to do, is use that Excel template, hit a database, and refresh the data within the Excel sheet with the new...
5
by: Nondisclosure007 | last post by:
Hello. If this is the wrong group for this, please let me know. I'll post it somewhere else. I've been doing data imports into MS Excel (ver 2007) and using the CORREL function. What I was...
17
by: Lenni | last post by:
Hi, I'm currently writing a web application for bicycle wheel builders that calculate the spoke length for all sorts of variations of hubs and rims. I have translated the formula from an...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.