calculations in Query

Dr. Chill

Board Regular
Joined
Jan 28, 2005
Messages
83
Is it possible to do calculations on numbers in the same column that are in different rows? ex. take the difference between row 1 and row 2 in column A and put that in row 2 of column B.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Not in a query.

What do you actually want to calculate?
 
Upvote 0
I am actually trying to do some return calculations. I would prefer not to have to send it to excel but that is what it is looking like I will have to do.
 
Upvote 0
Can you explain the calculation and provide some sample data?

It might be possible with >1 query.
 
Upvote 0
ok lets say that in col A I have
====|Col A| |Col B|
Row 1..|.|....|10000|
Row 2...|5|..|=(B1+(A2*B1)/100))|
Row 3...|-3|...|=(B2+(A3*B2)/100))|


etc...
Hopefully you can read this
 
Upvote 0

Forum statistics

Threads
1,221,899
Messages
6,162,686
Members
451,782
Latest member
LizN

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