Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default First Parameter in INDIRECT command changes if I add new column

When I use the INDIRECT command, as in the following example,

PERCENTILE(INDIRECT("$FM"&$Y140):$FM140, FN$1)

it works fine until I insert a new column anywhere before the column
containing the IDIRECT command. If I do that, the first parameter in the
command changes,

PERCENTILE(INDIRECT("$FL"&$Y140):$FM140, FN$1)

notwithstanding the $ that I had put there to prevent its changing. Is
there any way to avoid that?
--
Delaware Mac
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,203
Default First Parameter in INDIRECT command changes if I add new column

Try putting the FM into a cell also to be used as part of your indirect.
Let's say you put ="FM" into Y139, then your formula would be
=PERCENTILE(INDIRECT(Y139 & Y140):$FM140,FN$1)


"Delaware Mac" wrote:

When I use the INDIRECT command, as in the following example,

PERCENTILE(INDIRECT("$FM"&$Y140):$FM140, FN$1)

it works fine until I insert a new column anywhere before the column
containing the IDIRECT command. If I do that, the first parameter in the
command changes,

PERCENTILE(INDIRECT("$FL"&$Y140):$FM140, FN$1)

notwithstanding the $ that I had put there to prevent its changing. Is
there any way to avoid that?
--
Delaware Mac

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default First Parameter in INDIRECT command changes if I add new column

Dear Jlatham,

Thanks for your suggestion, but I see now that I botched the explanation,
and therefore misled you, when I originally stated the problem. I should have
had these two lines instead:

(B4: This ln is in col FN): PERCENTILE(INDIRECT("FM"&$Y140):FM140, FN$1)

(Aft: It's now in col FO): PERCENTILE(INDIRECT("FM"&$Y140):FN140, FO$1)

What happens is not that the first parameter, "FM", changes, but that it
doesn't automatically get updated to "FN" like the other parameters when I
add a new column anywhere between columns Y and FM. So I actually want "FM"
to automatically change, but it doesn't.

What I want to do is get a running percentile of a range of numbers in a
given column (originally FM) using column Y to hold the beginning row number
(which stays the same for a while, then increases, based on a formula). I
occasionally need to add new columns, and wanted to avoid having to update
the INDIRECT commands manually, although manual updates are not that much of
a hassle if that's the only solution.

--
Delaware Mac


"Delaware Mac" wrote:

When I use the INDIRECT command, as in the following example,

PERCENTILE(INDIRECT("$FM"&$Y140):$FM140, FN$1)

it works fine until I insert a new column anywhere before the column
containing the IDIRECT command. If I do that, the first parameter in the
command changes,

PERCENTILE(INDIRECT("$FL"&$Y140):$FM140, FN$1)

notwithstanding the $ that I had put there to prevent its changing. Is
there any way to avoid that?
--
Delaware Mac

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sum column - parameter Oscar Excel Discussion (Misc queries) 3 February 21st 08 01:58 PM
Indirect with COLUMN JEFF Excel Worksheet Functions 9 April 24th 07 10:03 PM
How to choose if I use a parameter or not in a parameter query Arnaud Excel Discussion (Misc queries) 0 March 8th 07 01:19 PM
Lookup funtion: column index number (third parameter) KipB Excel Worksheet Functions 8 February 3rd 07 11:57 AM
How to: Pass Command Line Parameter ??? Webtest Excel Worksheet Functions 0 October 24th 05 05:27 PM


All times are GMT +1. The time now is 04:30 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"