comparing values among them selves with in column

genetist

Board Regular
Joined
Mar 29, 2013
Messages
75
Office Version
  1. 2016
Platform
  1. Windows
Hi,
i have data like this,
A B C
1 DD
2 DD
3 DD
4 CC
5 DD
6 DD
7 DD
8 DD
i want to compare data in B for example i want to compare A1 row i.e DD with A2 i.e DD if it is same then i want store that result in C as 1 , if it not match then C will be 0 like this i want to do for all rows in A with B and storing them in C. Is if condition will work for me? or i have to do something more? help needed in this,
Thanks in advance
I am expecting output like this,
A B C
1 DD 1
2 DD 1
3 DD 1
4 CC 0
5 DD 1
6 DD 1
7 DD 1
8 DD 1
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Forum statistics

Threads
1,172,122
Messages
5,879,200
Members
433,409
Latest member
momo2809

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
Top