Forum Discussion
irbbb
Jul 04, 2022Copper Contributor
Insert a letter from a cell into a IF-function to represent column-letter
Hi, I want to be able to retrieve a value from a cell, which holds a letter, and to use this letter as the column-letter in my IF-function. E.g. I want the "D" in D10 in this function =IF(B10>'Da...
- Jul 04, 2022
You can use the INDIRECT function for this purpose. Let's say the column letter is in A1.
=IF(B10>INDIRECT("'Datasheet_1'!"&A1&"10");"YES";"NO")
HansVogelaar
Jul 04, 2022MVP
You can use the INDIRECT function for this purpose. Let's say the column letter is in A1.
=IF(B10>INDIRECT("'Datasheet_1'!"&A1&"10");"YES";"NO")
irbbb
Jul 05, 2022Copper Contributor
Thank you so much, this works just fine for the scale of my project!