selecting particular with specific value

Status
Not open for further replies.

genetist

Board Regular
Joined
Mar 29, 2013
Messages
75
Office Version
  1. 2016
Platform
  1. Windows
My data looks like this,
S.no A
1 AA
2 GG
3 ZZ
4 --
5 AG
6 AG
7 AG
8 AA
9 GG
10 AA
i want to identify cells containing only vales half coming from 10th row(A) and remaining half from 9th row(G) i.e AG and i would like to give value 1 to those cells only containing (AG) and 0 for rest of the cell values like (AA,GG,--,ZZ ) and i want to apply this formula to all my 44 columns by dragging it harizontally.
my expected data looks like this
S.no A B
1 AA 0
2 BB 0
3 ZZ 0
4 -- 0
5 AG 1
6 AG 1
7 AG 1
8 AA 0
9 GG 0
10 AA 0
Thanks in advance.
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Status
Not open for further replies.

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

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
Back
Top