Hello.
Can someone help with the following problem:
I would like to create a macro that compares the value of my target cell to a range of designated cells.
My example is as follows:
Target Cell (F1) = 100
Cell (X1)= 101
Cell (Y1)= 102
Cell (Z1)= 103
Cell (AA1)= 99.5
I would like the macro look up the cells in my range (X1:AA1) with the closest value to my target cell (F1) and paste that value in a seperate blank tab.
Can this be done ?
If I expand my range, will it be easier to have the macro look up the column name instead of a range ?
Thanks for any and all help.
Can someone help with the following problem:
I would like to create a macro that compares the value of my target cell to a range of designated cells.
My example is as follows:
Target Cell (F1) = 100
Cell (X1)= 101
Cell (Y1)= 102
Cell (Z1)= 103
Cell (AA1)= 99.5
I would like the macro look up the cells in my range (X1:AA1) with the closest value to my target cell (F1) and paste that value in a seperate blank tab.
Can this be done ?
If I expand my range, will it be easier to have the macro look up the column name instead of a range ?
Thanks for any and all help.