Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have a formula that uses cells D2:D20, the problem is the info that it is
using is updated through a query, so I might need the range to be D2:D30, if I set the range to larger than what i need it causes an error in the formula, is there a way to make excel recognize whether there is a value in the cell or not and include it in the formula range so the formula range floats with the data that arrives through the query. Thanks |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Use the following to create a dynamic range:
OFFSET(D2,0,0,COUNT(D2:D99),1) Replace D2:D20 in your formula with the above dynamic range. 99 can be changed to any big number. -- Best regards, --- Yongjun CHEN ================================= XLDataSoft - Data Analysis Expert, Excel/VBA Specialist - - - - www.XLDataSoft.com - - - - Free Excel-Based Data Processing Tool is Available for Download Free Excel / VBA Training Materials is Available for Download ================================= "Jamie" wrote in message ... I have a formula that uses cells D2:D20, the problem is the info that it is using is updated through a query, so I might need the range to be D2:D30, if I set the range to larger than what i need it causes an error in the formula, is there a way to make excel recognize whether there is a value in the cell or not and include it in the formula range so the formula range floats with the data that arrives through the query. Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Custom functions calculating time arguments Help Desperate | Excel Worksheet Functions | |||
Match then lookup | Excel Worksheet Functions | |||
Conditional Format - Formula to Colour Every 3rd Cell in Offset Range | Excel Discussion (Misc queries) | |||
Formula checking multiple worksheets | Excel Worksheet Functions | |||
Formula checking multiple worksheets | Excel Worksheet Functions |