Link to home
Start Free TrialLog in
Avatar of Jim Metcalf
Jim MetcalfFlag for United States of America

asked on

manipulating a column in excel based on another column

i have two columns

a' column is a new monthly read value compared to the previous read which is in column b'
                           a                                      b
100 (gallons feb Usage)                        120 (gallons march usage)

unfortunately the two reading systems mutlipliers by gallons were not identical   (one system read in feb, a different one ran in march)

so system a might read 100 gallons as '1'   where as system b might read 100 gallons as '100'

I need excel to compare the value in column a to column b and create and manipulate column a's value.


a                                    b                              c(newly created value by adding two zero's based on comparing a & b)
100                             120000                     100000                      (it took the extra two zero's it identified by comparing a to b and added them
                                                                                                         to column a's value and placed the result in c.

does this make any sense to anyone?
Avatar of Kanti Prasad
Kanti Prasad


In C1,C2......  just put the below formula and if you want to minus one from the other you can put a formula in D

A               B               C                       D
100          12000       = A1*100         =C1-B1
200          22000       = A2*100         =C2-B2

or  you can do it in the below way too

A               B               C                      
100          12000       = B1-(A1*100 )        
200          22000       = B2-(A2*100  )
Avatar of aikimark
Flag of United States of America image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
in your example you seem to be looking for situation where 'b' is an order of magnitude greater than 'a' but its not clear if this is always consistent.
To follow the specific example you can use (in column c and assuming your data starts in row 2)


which compares the length of a and b then multiples by 10 to the power of the difference. (so in this case it multiple by 10^2 or 100)

However whilst it works for the specific case it could fail (or worse provide a value that is wrong but looks ok at first glance), if you can provide more examples we can present a stronger solution

Crossed with Aikimark, his is a more robust solution
Avatar of Jim Metcalf


worked like a charm!!!!!
that saved me an ton of work