Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Excel - changing column reference based on value of other column

I am having a data in one of the worksheet, say "X"
in "Y", what I am trying to do is select particular column values of "X"
based on some value of column "Y"

so it says, value of 'Y'!F5, with 'X'!A3, where A3=5(row number of 'Y'!F5),
now value of 'X'!A4='Y'!F('X'!A3)='Y'!F5

why I wants this is because when I change A3=6, I want 'X'!A4='Y'!F6

Any Idea how to do this?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Excel - changing column reference based on value of other column

Try
=INDIRECT("'Y'!F" & X3)

Y is sheet name
F is column
Row number specified in cell X3 of the current sheet

If this post helps click Yes
---------------
Jacob Skaria


"Dharmesh Patel" wrote:

I am having a data in one of the worksheet, say "X"
in "Y", what I am trying to do is select particular column values of "X"
based on some value of column "Y"

so it says, value of 'Y'!F5, with 'X'!A3, where A3=5(row number of 'Y'!F5),
now value of 'X'!A4='Y'!F('X'!A3)='Y'!F5

why I wants this is because when I change A3=6, I want 'X'!A4='Y'!F6

Any Idea how to do this?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Excel - changing column reference based on value of other colu

Hi Jacob,

this worked perfectly, thanks a lot.

a small query, if its possible to do further modification to below formula?
=INDIRECT("'Y'!F" & (X3+5))

mean, wants to add 5 to value of X3, means it can refer colum F10 in one
instance, in another it will refer F15.

thanks in advance.

with Regards,

- Dharmesh

"Jacob Skaria" wrote:

Try
=INDIRECT("'Y'!F" & X3)

Y is sheet name
F is column
Row number specified in cell X3 of the current sheet

If this post helps click Yes
---------------
Jacob Skaria


"Dharmesh Patel" wrote:

I am having a data in one of the worksheet, say "X"
in "Y", what I am trying to do is select particular column values of "X"
based on some value of column "Y"

so it says, value of 'Y'!F5, with 'X'!A3, where A3=5(row number of 'Y'!F5),
now value of 'X'!A4='Y'!F('X'!A3)='Y'!F5

why I wants this is because when I change A3=6, I want 'X'!A4='Y'!F6

Any Idea how to do this?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Excel - changing column reference based on value of other colu

Your fomula is correct...Try
X3 = 5
The below will refer F10
=INDIRECT("'Y'!F" & X3+5)

If this post helps click Yes
---------------
Jacob Skaria


"Dharmesh Patel" wrote:

Hi Jacob,

this worked perfectly, thanks a lot.

a small query, if its possible to do further modification to below formula?
=INDIRECT("'Y'!F" & (X3+5))

mean, wants to add 5 to value of X3, means it can refer colum F10 in one
instance, in another it will refer F15.

thanks in advance.

with Regards,

- Dharmesh

"Jacob Skaria" wrote:

Try
=INDIRECT("'Y'!F" & X3)

Y is sheet name
F is column
Row number specified in cell X3 of the current sheet

If this post helps click Yes
---------------
Jacob Skaria


"Dharmesh Patel" wrote:

I am having a data in one of the worksheet, say "X"
in "Y", what I am trying to do is select particular column values of "X"
based on some value of column "Y"

so it says, value of 'Y'!F5, with 'X'!A3, where A3=5(row number of 'Y'!F5),
now value of 'X'!A4='Y'!F('X'!A3)='Y'!F5

why I wants this is because when I change A3=6, I want 'X'!A4='Y'!F6

Any Idea how to do this?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Excel - changing column reference based on value of other colu

Hi Jacob, this also worked fine.
thanks for the help.

with Regards,

- Dharmesh

"Jacob Skaria" wrote:

Your fomula is correct...Try
X3 = 5
The below will refer F10
=INDIRECT("'Y'!F" & X3+5)

If this post helps click Yes
---------------
Jacob Skaria


"Dharmesh Patel" wrote:

Hi Jacob,

this worked perfectly, thanks a lot.

a small query, if its possible to do further modification to below formula?
=INDIRECT("'Y'!F" & (X3+5))

mean, wants to add 5 to value of X3, means it can refer colum F10 in one
instance, in another it will refer F15.

thanks in advance.

with Regards,

- Dharmesh

"Jacob Skaria" wrote:

Try
=INDIRECT("'Y'!F" & X3)

Y is sheet name
F is column
Row number specified in cell X3 of the current sheet

If this post helps click Yes
---------------
Jacob Skaria


"Dharmesh Patel" wrote:

I am having a data in one of the worksheet, say "X"
in "Y", what I am trying to do is select particular column values of "X"
based on some value of column "Y"

so it says, value of 'Y'!F5, with 'X'!A3, where A3=5(row number of 'Y'!F5),
now value of 'X'!A4='Y'!F('X'!A3)='Y'!F5

why I wants this is because when I change A3=6, I want 'X'!A4='Y'!F6

Any Idea how to do this?

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
Pasting Forumulas without changing row and/or column reference Pat Excel Discussion (Misc queries) 3 August 13th 08 10:40 PM
Stop cell reference in formula changing when insert column? Bobbie Weeks (Ms) Excel Discussion (Misc queries) 1 May 30th 08 06:20 AM
Column Reference Based on Value Efrain Excel Discussion (Misc queries) 2 February 13th 07 01:39 PM
Based on a condition in one column, search for a year in another column, and display data from another column in the same row look [email protected] Excel Discussion (Misc queries) 1 December 27th 06 05:47 PM
chart label reference based on the column number bj Charts and Charting in Excel 0 May 20th 05 07:18 PM


All times are GMT +1. The time now is 04:44 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"