Jim May Wrote:
Assume your first row 5 and T
are in cells A2 and B2 respectfully..
In cell C2 enter:
=if(B2="T","AA",if(B2="H","BB",B2))
and copy down.
Thanks Jim. I did that and it NEARLY worked.The output was as shown
below.
Transaction ID COMP CODE FINAL CODE
5 T AA
5 AA AA
6 H BB
6 BB BB
7 AA AA
7 T AA
8 T AA
8 BB BB
As you can see Transcation ID 8 has a FINAL CODE of AA and BB, it
should be just BB for both.
--
flub
------------------------------------------------------------------------
flub's Profile:
http://www.excelforum.com/member.php...o&userid=30322
View this thread:
http://www.excelforum.com/showthread...hreadid=499850