![]() |
Use a value as a cell reference
I want to be able to use a number in a cell as a row reference in a formula.
For example, suppose a1=95, a2=149. I want to be able to create a formula equivalent to "=max(d95:d149)" using the values in a1 and a2 to define the range. Thanks for your help |
Use a value as a cell reference
=MAX(INDIRECT("D"&A1&":D"&A2))
-- Kind regards, Niek Otten Microsoft MVP - Excel "Rachel" wrote in message ... |I want to be able to use a number in a cell as a row reference in a formula. | For example, suppose a1=95, a2=149. I want to be able to create a formula | equivalent to "=max(d95:d149)" using the values in a1 and a2 to define the | range. | Thanks for your help |
All times are GMT +1. The time now is 07:17 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com