ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   apply arithmetic functions on special multiple cells (https://www.excelbanter.com/excel-worksheet-functions/70537-apply-arithmetic-functions-special-multiple-cells.html)

Zhekka

apply arithmetic functions on special multiple cells
 
Hey all

I've searched in the group history and haven't found the exact answer
for my problem.

I have an array of cells, each cell is calculated from the previous
one(s) - but not always in the same way (it's not always the same
formula)

from each cell's VALUE i want to substract 1 and then multiply by 100


I tried the special paste feature, but it's problematic, since it
changes the value of the cell, and the next cell's value is changed
(here's an example)

A1 A2 A3
1.2 1.4 1.2

A1: 1.2
A2: = A1+0.2
A3: = A2-A1+1

Here are the desired results:
A1 A2 A3
20 40 20

Now, when applying that special paste, i will get unwanted results:
A1: 20 (as expected)
A2: 1920 ((20+0.2)-1)*100
A3: 190000

I hope I explained myself clearly.

Is this possible?


Rob van Gelder

apply arithmetic functions on special multiple cells
 
You're on the right track with the paste special subtract and multiple.
Treat that as steps 2 and 3.

Step 1 as follows:
Copy the cells. Paste Special Values

--
Rob van Gelder - http://www.vangelder.co.nz/


"Zhekka" wrote in message
oups.com...
Hey all

I've searched in the group history and haven't found the exact answer
for my problem.

I have an array of cells, each cell is calculated from the previous
one(s) - but not always in the same way (it's not always the same
formula)

from each cell's VALUE i want to substract 1 and then multiply by 100


I tried the special paste feature, but it's problematic, since it
changes the value of the cell, and the next cell's value is changed
(here's an example)

A1 A2 A3
1.2 1.4 1.2

A1: 1.2
A2: = A1+0.2
A3: = A2-A1+1

Here are the desired results:
A1 A2 A3
20 40 20

Now, when applying that special paste, i will get unwanted results:
A1: 20 (as expected)
A2: 1920 ((20+0.2)-1)*100
A3: 190000

I hope I explained myself clearly.

Is this possible?




Zhekka

apply arithmetic functions on special multiple cells
 
No... it doesn't work :(


Bob Phillips

apply arithmetic functions on special multiple cells
 
You have to maintain the multiplier, so you probably need helper columns

B1: =(A1-1)*100
B2: =((B1+0.2)-1)*100
B3: =((((B1+0.2-1)*100)-(A1-1)*100+1)-1)*100


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Zhekka" wrote in message
oups.com...
No... it doesn't work :(




Zhekka

apply arithmetic functions on special multiple cells
 
So, you're saying there's no other way rather than using new
columns/rows

(This will be problematic, since I already have a chart out of those
values.....)

Bob Phillips wrote:
You have to maintain the multiplier, so you probably need helper columns

B1: =(A1-1)*100
B2: =((B1+0.2)-1)*100
B3: =((((B1+0.2-1)*100)-(A1-1)*100+1)-1)*100


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Zhekka" wrote in message
oups.com...
No... it doesn't work :(



Bob Phillips

apply arithmetic functions on special multiple cells
 
There may be, but I cannot see it I am afraid.

Bob

"Zhekka" wrote in message
oups.com...
So, you're saying there's no other way rather than using new
columns/rows

(This will be problematic, since I already have a chart out of those
values.....)

Bob Phillips wrote:
You have to maintain the multiplier, so you probably need helper columns

B1: =(A1-1)*100
B2: =((B1+0.2)-1)*100
B3: =((((B1+0.2-1)*100)-(A1-1)*100+1)-1)*100


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Zhekka" wrote in message
oups.com...
No... it doesn't work :(






All times are GMT +1. The time now is 01:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com