PC Review


Reply
Thread Tools Rate Thread

Auto-Fill problem

 
 
shelfish
Guest
Posts: n/a
 
      29th May 2006
I use a lot of H/V- lookup. One of the problems I run into is that the
auto-fill doesn't change the individual number references to rows or
columns, only cell references. To get around this I usually hide on the
page I'm working a simple column that counts 1 to whatever and then
reference that. Is there a better way??

 
Reply With Quote
 
 
 
 
Pete_UK
Guest
Posts: n/a
 
      29th May 2006
If you have a formula which goes across, you can use the COLUMN()
function, like so:

=VLOOKUP(A1,Sheet1!$A$1:$M$100,COLUMN(),FALSE)

This would be entered in B1 of Sheet2, for example, and can be copied
across to column M to return in each cell the corresponding column's
data from the exact match of A1 with a lookup table of A1:M100 in
Sheet1.

A similar function acting vertically is ROW().

Hope this helps.

Pete

 
Reply With Quote
 
Ragdyer
Guest
Posts: n/a
 
      29th May 2006
Two very good functions to use for this "auto-incrementing" are:
Rows()
Columns()
Note the plural (s).

Enter
=Rows($1:1)
and drag down.

=Columns($A:A)
and drag across.

See what you get?

So ...
=Vlookup(A1,$B$1:$F$100,Rows($1:2),0)
Dragged down will increment the column to return.
Note: You *don't* have to *start* with "$1:1".

Same goes for columns.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"shelfish" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I use a lot of H/V- lookup. One of the problems I run into is that the
> auto-fill doesn't change the individual number references to rows or
> columns, only cell references. To get around this I usually hide on the
> page I'm working a simple column that counts 1 to whatever and then
> reference that. Is there a better way??
>


 
Reply With Quote
 
Ragdyer
Guest
Posts: n/a
 
      29th May 2006
Rows() & Columns() permit the formula to be entered *anywhere*.
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Pete_UK" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> If you have a formula which goes across, you can use the COLUMN()
> function, like so:
>
> =VLOOKUP(A1,Sheet1!$A$1:$M$100,COLUMN(),FALSE)
>
> This would be entered in B1 of Sheet2, for example, and can be copied
> across to column M to return in each cell the corresponding column's
> data from the exact match of A1 with a lookup table of A1:M100 in
> Sheet1.
>
> A similar function acting vertically is ROW().
>
> Hope this helps.
>
> Pete
>


 
Reply With Quote
 
shelfish
Guest
Posts: n/a
 
      29th May 2006
I do believe will do it. I should have asked this question years ago.
Thanks for the help.

 
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
Problem with Auto fill trvlnmny Microsoft Excel New Users 3 8th Mar 2010 11:50 PM
Auto Fill problem Usagi Microsoft Excel Crashes 2 27th Sep 2008 10:52 PM
Auto fill form where reports auto fill for selection Faron - GMail Microsoft Access Forms 1 16th Jun 2008 07:48 AM
Auto Fill Problem =?Utf-8?B?Sm9obiBHcmVnb3J5?= Microsoft Excel Misc 2 20th Nov 2007 08:31 PM
Combo Box Auto Fill-In Problem Kathy Webster Microsoft Access Forms 3 28th Jul 2005 09:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:03 PM.