calculations

killerleaf

Board Regular
Joined
Mar 6, 2003
Messages
113
I am trying to figure out how to some calculations that will print in a report. however, I don't have an idea where to start. I have tried looking in the help file, but apparently I am not putting the right things in to get what I need. :oops:

what should I put in the index or answer search to find out how to do some basic calculations?
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
The easiest way to do this (what I first learned to do) is to build something like this in a query and then base the report on the query. You can do this by creating fields that only exist on the report.

Go make a query with the same data that you're wanting to put onto the report. In Design mode, pick a blank column and then use this type of syntax:

CalcFieldName: calculation

CalcFieldName will be the 'fieldname' that appears.
The calculation will be whatever you're doing...aka,

((field1+field2)/2)+90)

With the end result being:

CalcFieldName: ((field1+field2)/2)+90)

Use all your standard math operators. When you create your report, use the query as your source. As a recommendation, good practice is to name your tables and queries in a fashion that is always recognizable. I tend to add 'tbl' and 'qry' in front of each. That way, when looking at a list, I don't have to guess which I just selected.



Mike
 
Upvote 0

Forum statistics

Threads
1,221,675
Messages
6,161,216
Members
451,691
Latest member
fjaimes042510

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top