dis_functional
New Member
- Joined
- Apr 17, 2013
- Messages
- 2
Hello!
I'm trying to populate a column with data from two separate columns. To clarify, please see the table below.
The information I'm getting is placed into columns A, just a code. I have the key in a separate column, like C, with the state that code represents in column D. What I would like to do is connect the State Code I get in A with the State it represents in column D so that when I enter the next State Code in column A, B automatically fills with the correct state, ie. Nebraska in B2 and B3, and Texas in B4.
[TABLE="class: grid, width: 200, align: center"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]State Code[/TD]
[TD]Home State[/TD]
[TD]Code Key[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]116[/TD]
[TD][/TD]
[TD]115[/TD]
[TD]Texas[/TD]
[/TR]
[TR]
[TD]116[/TD]
[TD][/TD]
[TD]116[/TD]
[TD]Nebraska[/TD]
[/TR]
[TR]
[TD]115[/TD]
[TD][/TD]
[TD]117[/TD]
[TD]New York[/TD]
[/TR]
</tbody>[/TABLE]
Is this possible? I was trying to use 'If-Then' statements to do this, for example. =if(A2=C2;B2;B3)
As background, the information I'm getting is just the 'state code' and for readability I'd like to be able to show the corresponding state that code refers to without having to match it all up and enter it manually. The actual information comes out to a lot more than fifty states worth.
I'd appreciate any help, as I'm not sure I'm even going in the right direction.
Thanks in advance!
I'm trying to populate a column with data from two separate columns. To clarify, please see the table below.
The information I'm getting is placed into columns A, just a code. I have the key in a separate column, like C, with the state that code represents in column D. What I would like to do is connect the State Code I get in A with the State it represents in column D so that when I enter the next State Code in column A, B automatically fills with the correct state, ie. Nebraska in B2 and B3, and Texas in B4.
[TABLE="class: grid, width: 200, align: center"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]State Code[/TD]
[TD]Home State[/TD]
[TD]Code Key[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]116[/TD]
[TD][/TD]
[TD]115[/TD]
[TD]Texas[/TD]
[/TR]
[TR]
[TD]116[/TD]
[TD][/TD]
[TD]116[/TD]
[TD]Nebraska[/TD]
[/TR]
[TR]
[TD]115[/TD]
[TD][/TD]
[TD]117[/TD]
[TD]New York[/TD]
[/TR]
</tbody>[/TABLE]
Is this possible? I was trying to use 'If-Then' statements to do this, for example. =if(A2=C2;B2;B3)
As background, the information I'm getting is just the 'state code' and for readability I'd like to be able to show the corresponding state that code refers to without having to match it all up and enter it manually. The actual information comes out to a lot more than fifty states worth.

I'd appreciate any help, as I'm not sure I'm even going in the right direction.
Thanks in advance!