Ian Bell
asked on
Formula to include INDIRECT function
Hi,
Could someone please modify the below formula or provide a new one. I may have placed the INDIRECT in the wrong place.
=SMALL(INDIRECT("AV"&P4&": AV"&Q4),IN DEX(FREQUE NCY(INDIRE CT("AV"&P4 &":AV"&Q4) ,0),1))
Assuming values are in cells P4 and Q4 and referring to values in column AV
Thanks
Ian
Could someone please modify the below formula or provide a new one. I may have placed the INDIRECT in the wrong place.
=SMALL(INDIRECT("AV"&P4&":
Assuming values are in cells P4 and Q4 and referring to values in column AV
Thanks
Ian
What is the formula meant to do and what do the values in P4 and Q4 represent?
PS Bill, I do something similar when working with long, complicated formulas by using ALT+ENTER in the Formula bar.
PS Bill, I do something similar when working with long, complicated formulas by using ALT+ENTER in the Formula bar.
ASKER
I'm trying to find the minimum value in a range.
example
The minimum value in below range is 14
AV1 20
AV2 30
AV3 14
AV4 40
The ROW range is shown in cells P4 1 Q4 4 (P4 & Q4 are only cells where data range is input.)
The formula looks up column AV and determines the smallest value
between rows AV1 and AV4
example
The minimum value in below range is 14
AV1 20
AV2 30
AV3 14
AV4 40
The ROW range is shown in cells P4 1 Q4 4 (P4 & Q4 are only cells where data range is input.)
The formula looks up column AV and determines the smallest value
between rows AV1 and AV4
Working based on cells in original formula, then maybe this?
»bp
=MIN(INDIRECT("AV"&P4&":AV"&Q4))
»bp
ASKER
Bill, sorry I forgot to add that I wanted to exclude zero values so I modified it to the following
=MIN(INDIRECT("AV"&P4&":AV "&Q4),">0" )
but got a "VALUE" error
=MIN(INDIRECT("AV"&P4&":AV
but got a "VALUE" error
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks Bill, You've excelled again
Ian
Ian
Welcome.
»bp
»bp
I typically break down longer formulas in a text editor when building them to help get parens and args in the proper place. It looks like you haven't violated any of the parms, but hard to know if you have the right values in the right places without knowing the goal.
I broke your formula down as follows:
Open in new window
»bp