I've been trying to change the value in one cell based on matching values in different cells. I was successful in finding a solution for changing values from 2 to 1 in column A but I'm having difficulty in coming up with a solution for changing the values in D3:AG3. I appear to be having an issue dealing with columns.
In a worksheet called CommonData2, I have two ranges of data. One range is from AM6:AM25 and can contain from 4 to 20 different numbers (each number 1 - 30 reflecting a different player). The second range is from D3:AG35 but the focus of this issue revolves around the data found in D3:AG4.
Below is an excerpt from the worksheet which reflects what might be found in AM6:AM25 and the upper portion of what is found in D3:AG35.
Here is what I am attempting to do.
I look at each number located in AM6:AM25 and if found in D4:AG4 then I change the corresponding value found directly above it in D3:AG3 from 2 to 1. In the example below, AM6 contains the number 8. When looking thru D4:AG4, you will find the number 8 in K4. As a result, K3 should get changed from 2 to 1 and so on.
Any help or direction would be appreciated.
Thanks,
Don
In a worksheet called CommonData2, I have two ranges of data. One range is from AM6:AM25 and can contain from 4 to 20 different numbers (each number 1 - 30 reflecting a different player). The second range is from D3:AG35 but the focus of this issue revolves around the data found in D3:AG4.
Below is an excerpt from the worksheet which reflects what might be found in AM6:AM25 and the upper portion of what is found in D3:AG35.
Here is what I am attempting to do.
I look at each number located in AM6:AM25 and if found in D4:AG4 then I change the corresponding value found directly above it in D3:AG3 from 2 to 1. In the example below, AM6 contains the number 8. When looking thru D4:AG4, you will find the number 8 in K4. As a result, K3 should get changed from 2 to 1 and so on.
Any help or direction would be appreciated.
Thanks,
Don