Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 74
Default What relative row I'm in?

I have a large array (startingHoles). Next to te array I have a column
containing a formula This formula needs to know the relative row of the
array it's next to for use in the formula.

Here is the formula:

=HLOOKUP(weekNumber,startingHoles,5,FALSE)

The "5" in the formula above is the relative row it's next to. I'd rather
not have to edit every cell in this column to increment this number.

Looking for a better way.....
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default What relative row I'm in?

If you want the 5 to become 6, 7, 8 etc as you copy the formula
across, then change it to:

COLUMN(E1)

This will become COLUMN(F1), COLUMN(G1), COLUMN(H1) etc, which will
evaluate to 6, 7, 8 etc as it is copied across.

Hope this helps.

Pete

On Mar 10, 10:56*am, fedude wrote:
I have a large array (startingHoles). * Next to te array I have a column
containing a formula *This formula needs to know the relative row of the
array it's next to for use in the formula.

Here is the formula:

=HLOOKUP(weekNumber,startingHoles,5,FALSE)

The "5" in the formula above is the relative row it's next to. *I'd rather
not have to edit every cell in this column to increment this number. *

Looking for a better way.....


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 74
Default What relative row I'm in?

BINGO. Thanks!

"Pete_UK" wrote:

If you want the 5 to become 6, 7, 8 etc as you copy the formula
across, then change it to:

COLUMN(E1)

This will become COLUMN(F1), COLUMN(G1), COLUMN(H1) etc, which will
evaluate to 6, 7, 8 etc as it is copied across.

Hope this helps.

Pete

On Mar 10, 10:56 am, fedude wrote:
I have a large array (startingHoles). Next to te array I have a column
containing a formula This formula needs to know the relative row of the
array it's next to for use in the formula.

Here is the formula:

=HLOOKUP(weekNumber,startingHoles,5,FALSE)

The "5" in the formula above is the relative row it's next to. I'd rather
not have to edit every cell in this column to increment this number.

Looking for a better way.....



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default What relative row I'm in?

You're welcome - glad it worked for you.

Pete

On Mar 10, 11:38*am, fedude wrote:
BINGO. * Thanks!



"Pete_UK" wrote:
If you want the 5 to become 6, 7, 8 etc as you copy the formula
across, then change it to:


COLUMN(E1)


This will become COLUMN(F1), COLUMN(G1), COLUMN(H1) etc, which will
evaluate to 6, 7, 8 etc as it is copied across.


Hope this helps.


Pete


On Mar 10, 10:56 am, fedude wrote:
I have a large array (startingHoles). * Next to te array I have a column
containing a formula *This formula needs to know the relative row of the
array it's next to for use in the formula.


Here is the formula:


=HLOOKUP(weekNumber,startingHoles,5,FALSE)


The "5" in the formula above is the relative row it's next to. *I'd rather
not have to edit every cell in this column to increment this number. *


Looking for a better way.....- Hide quoted text -


- Show quoted text -


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
Relative references GARY Excel Discussion (Misc queries) 7 June 16th 06 10:08 PM
Relative references GARY Excel Discussion (Misc queries) 1 June 16th 06 09:23 PM
Relative Queries Paul Hammond Excel Discussion (Misc queries) 1 January 5th 06 03:49 AM
Relative Addressing Bill Martin -- (Remove NOSPAM from address) Excel Discussion (Misc queries) 4 February 20th 05 04:43 AM
Relative reference Lakebum Excel Worksheet Functions 2 December 28th 04 05:57 PM


All times are GMT +1. The time now is 11:34 PM.

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"