manipulating a column in excel based on another column

jamesmetcalf74 used Ask the Experts™
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?
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2015


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  )
Top Expert 2014
Place this formula in C1 and fill down as needed.

Open in new window

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


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

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial