PC Review


Reply
Thread Tools Rate Thread

Cell Reference in Function

 
 
=?Utf-8?B?YXN0cm9kb24=?=
Guest
Posts: n/a
 
      18th Feb 2006
I have give names to various lists - lets say it is
"Location" =Sheet1!$A$2:$A$108.
"View" =Sheet1!$B$2:$B$108
"PropClass" =Sheet1!$C$2:$C$108
etc.

Now lets also say I have a need to be able to reproduce that list on another
sheet by using Data Validation | List in cell Sheet5!C1. The list being of
course, { "Location", "View", "PropClass", ... }

Now I have placed the followng formula in cells Sheet5!C2:C108:

=INDEX($C$1, Row(), 0) Which returns a #REF error. However, typing
=INDEX(Location, ROW(), 0) gives the desired result. Why will the INDEX(...)
function not work using a cell reference?

Is there a workaround?

TIA
astrodon
--
The writing of books there is no end
 
Reply With Quote
 
 
 
 
Bernard Liengme
Guest
Posts: n/a
 
      18th Feb 2006
The INDEX function in =INDEX($C$1, Row(), 0) is looking for an entry in an
array which has one entry (C1)
Normally one uses a range as in =INDEX($C$1:$D$20, Row(), 0)
any help?
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email


"astrodon" <(E-Mail Removed).(donotspam)> wrote in message
news:1DE5D531-475F-4926-BFE7-(E-Mail Removed)...
>I have give names to various lists - lets say it is
> "Location" =Sheet1!$A$2:$A$108.
> "View" =Sheet1!$B$2:$B$108
> "PropClass" =Sheet1!$C$2:$C$108
> etc.
>
> Now lets also say I have a need to be able to reproduce that list on
> another
> sheet by using Data Validation | List in cell Sheet5!C1. The list being
> of
> course, { "Location", "View", "PropClass", ... }
>
> Now I have placed the followng formula in cells Sheet5!C2:C108:
>
> =INDEX($C$1, Row(), 0) Which returns a #REF error. However, typing
> =INDEX(Location, ROW(), 0) gives the desired result. Why will the
> INDEX(...)
> function not work using a cell reference?
>
> Is there a workaround?
>
> TIA
> astrodon
> --
> The writing of books there is no end



 
Reply With Quote
 
=?Utf-8?B?YXN0cm9kb24=?=
Guest
Posts: n/a
 
      18th Feb 2006
A range is being referenced to, ie a NAMED range such as Location, etc
--
The writing of books there is no end


"Bernard Liengme" wrote:

> The INDEX function in =INDEX($C$1, Row(), 0) is looking for an entry in an
> array which has one entry (C1)
> Normally one uses a range as in =INDEX($C$1:$D$20, Row(), 0)
> any help?
> --
> Bernard V Liengme
> www.stfx.ca/people/bliengme
> remove caps from email
>
>
> "astrodon" <(E-Mail Removed).(donotspam)> wrote in message
> news:1DE5D531-475F-4926-BFE7-(E-Mail Removed)...
> >I have give names to various lists - lets say it is
> > "Location" =Sheet1!$A$2:$A$108.
> > "View" =Sheet1!$B$2:$B$108
> > "PropClass" =Sheet1!$C$2:$C$108
> > etc.
> >
> > Now lets also say I have a need to be able to reproduce that list on
> > another
> > sheet by using Data Validation | List in cell Sheet5!C1. The list being
> > of
> > course, { "Location", "View", "PropClass", ... }
> >
> > Now I have placed the followng formula in cells Sheet5!C2:C108:
> >
> > =INDEX($C$1, Row(), 0) Which returns a #REF error. However, typing
> > =INDEX(Location, ROW(), 0) gives the desired result. Why will the
> > INDEX(...)
> > function not work using a cell reference?
> >
> > Is there a workaround?
> >
> > TIA
> > astrodon
> > --
> > The writing of books there is no end

>
>
>

 
Reply With Quote
 
Bernard Liengme
Guest
Posts: n/a
 
      19th Feb 2006
I was referring to the formula without a named range just a single cell C1
QUOTE: =INDEX($C$1, Row(), 0) Which returns a #REF error
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"astrodon" <(E-Mail Removed).(donotspam)> wrote in message
news:495D1B43-2773-46F8-90E3-(E-Mail Removed)...
>A range is being referenced to, ie a NAMED range such as Location, etc
> --
> The writing of books there is no end
>
>
> "Bernard Liengme" wrote:
>
>> The INDEX function in =INDEX($C$1, Row(), 0) is looking for an entry in
>> an
>> array which has one entry (C1)
>> Normally one uses a range as in =INDEX($C$1:$D$20, Row(), 0)
>> any help?
>> --
>> Bernard V Liengme
>> www.stfx.ca/people/bliengme
>> remove caps from email
>>
>>
>> "astrodon" <(E-Mail Removed).(donotspam)> wrote in message
>> news:1DE5D531-475F-4926-BFE7-(E-Mail Removed)...
>> >I have give names to various lists - lets say it is
>> > "Location" =Sheet1!$A$2:$A$108.
>> > "View" =Sheet1!$B$2:$B$108
>> > "PropClass" =Sheet1!$C$2:$C$108
>> > etc.
>> >
>> > Now lets also say I have a need to be able to reproduce that list on
>> > another
>> > sheet by using Data Validation | List in cell Sheet5!C1. The list
>> > being
>> > of
>> > course, { "Location", "View", "PropClass", ... }
>> >
>> > Now I have placed the followng formula in cells Sheet5!C2:C108:
>> >
>> > =INDEX($C$1, Row(), 0) Which returns a #REF error. However, typing
>> > =INDEX(Location, ROW(), 0) gives the desired result. Why will the
>> > INDEX(...)
>> > function not work using a cell reference?
>> >
>> > Is there a workaround?
>> >
>> > TIA
>> > astrodon
>> > --
>> > The writing of books there is no end

>>
>>
>>



 
Reply With Quote
 
=?Utf-8?B?YXN0cm9kb24=?=
Guest
Posts: n/a
 
      19th Feb 2006
Yeah. Well anyway INDIRECT(Ref) works just fine so don't need
INDEX(criiteria, array,column)

Thanks
--
The writing of books there is no end


"Bernard Liengme" wrote:

> I was referring to the formula without a named range just a single cell C1
> QUOTE: =INDEX($C$1, Row(), 0) Which returns a #REF error
> --
> Bernard V Liengme
> www.stfx.ca/people/bliengme
> remove caps from email
>
> "astrodon" <(E-Mail Removed).(donotspam)> wrote in message
> news:495D1B43-2773-46F8-90E3-(E-Mail Removed)...
> >A range is being referenced to, ie a NAMED range such as Location, etc
> > --
> > The writing of books there is no end
> >
> >
> > "Bernard Liengme" wrote:
> >
> >> The INDEX function in =INDEX($C$1, Row(), 0) is looking for an entry in
> >> an
> >> array which has one entry (C1)
> >> Normally one uses a range as in =INDEX($C$1:$D$20, Row(), 0)
> >> any help?
> >> --
> >> Bernard V Liengme
> >> www.stfx.ca/people/bliengme
> >> remove caps from email
> >>
> >>
> >> "astrodon" <(E-Mail Removed).(donotspam)> wrote in message
> >> news:1DE5D531-475F-4926-BFE7-(E-Mail Removed)...
> >> >I have give names to various lists - lets say it is
> >> > "Location" =Sheet1!$A$2:$A$108.
> >> > "View" =Sheet1!$B$2:$B$108
> >> > "PropClass" =Sheet1!$C$2:$C$108
> >> > etc.
> >> >
> >> > Now lets also say I have a need to be able to reproduce that list on
> >> > another
> >> > sheet by using Data Validation | List in cell Sheet5!C1. The list
> >> > being
> >> > of
> >> > course, { "Location", "View", "PropClass", ... }
> >> >
> >> > Now I have placed the followng formula in cells Sheet5!C2:C108:
> >> >
> >> > =INDEX($C$1, Row(), 0) Which returns a #REF error. However, typing
> >> > =INDEX(Location, ROW(), 0) gives the desired result. Why will the
> >> > INDEX(...)
> >> > function not work using a cell reference?
> >> >
> >> > Is there a workaround?
> >> >
> >> > TIA
> >> > astrodon
> >> > --
> >> > The writing of books there is no end
> >>
> >>
> >>

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
passing cell reference and formatting cell in VBA function graham_s Microsoft Excel Programming 3 15th Apr 2009 11:11 AM
Reference function name from a different cell =?Utf-8?B?QnJ5YW5EYW1vbg==?= Microsoft Excel Misc 5 25th Jul 2007 12:14 AM
UDF to reference the cell with the function in it lisamariechemistry@yahoo.com Microsoft Excel Programming 2 4th Jul 2007 02:25 AM
CELL Function: cell reference by formula =?Utf-8?B?QWxleCBD?= Microsoft Excel Worksheet Functions 1 19th Jun 2006 03:30 PM
using a cell reference in another cell inside min function Brian Tucker Microsoft Excel Discussion 1 29th Jul 2004 05:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:54 AM.