The Power Loon
New Member
- Joined
- Feb 7, 2020
- Messages
- 34
- Office Version
- 365
- Platform
- Windows
I have a list of values in Table column B with each value corresponding to one of the headers in the table (I attached a sample of the file below). What I'm looking for is a formula or macro that will take the value in column B, determine the corresponding value in the column with the header of the same name, and return it in Column C.
In the sample table below, C2 should be -1.26%. This is because value in B2 is "1005", and the value in row 2 of column 1005 is "-1.26%".
I would do a nested IF, but the full sheet has well over 100 columns, making that somewhat unfeasible. Anyone know a method by which to do this?
In the sample table below, C2 should be -1.26%. This is because value in B2 is "1005", and the value in row 2 of column 1005 is "-1.26%".
Product | Time | Value | 950 | 955 | 1000 | 1005 | 1010 | 1015 | 1020 |
AAA | 1005 | -11.41% | -2.45% | 0.00% | -1.26% | -2.55% | 1.31% | 1.94% | |
BBB | 955 | 11.28% | 3.48% | 2.34% | -0.29% | 1.86% | -5.34% | -5.20% | |
CCC | 1020 | -3.09% | -3.72% | -1.10% | -4.47% | -1.75% | 0.00% | -1.19% | |
DDD | 1010 | -6.11% | 11.24% | -1.60% | -1.08% | 6.56% | -2.05% | 2.09% |
I would do a nested IF, but the full sheet has well over 100 columns, making that somewhat unfeasible. Anyone know a method by which to do this?