Comparing two columns , and giving comparison results in a third.

C

Colin Hayes

Hi All

I have small request for assistance.

In Column A , I have a row of numbers. In column C I have a row of
numbers too , with a formula underlying each.

I need , in column D , for the numbers in A and C to be compared and a
plus sign to be placed in the cells where C is bigger than A , a minus
where C is smaller than A , and an equals sign where C is the same as A.



Can someone help on this , please? Grateful for any assistance.



Best Wishes
 
M

MikeJohnB

Of course, it states C3 and A3 but that is because thats where I proved the
code.

Put

=IF(C1>A1,"+",IF(C1<A1,"-","="))

In Cell D1 and copy (Drag) down as many rows as you need.

Regards
 
S

Shane Devenshire

Hi,

Suppose your result column is D then enter
=C1-A1
in cell D1, copy this formula as far as necessary and then choose
Format, Cells, Number tab, Custom and enter the following custom format on
the Type line

+;-;=
 
C

Colin Hayes

Shane said:
Hi,

Suppose your result column is D then enter
=C1-A1
in cell D1, copy this formula as far as necessary and then choose
Format, Cells, Number tab, Custom and enter the following custom format on
the Type line

+;-;=


HI

OK thanks for all your assistance and expertise. It's fixed now.



Best Wishes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top