A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

how can we make one constant number to be act as variable



 
 
Thread Tools Display Modes
  #1  
Old June 1st, 2010, 10:17 PM posted to microsoft.public.excel.misc
Vimlesh
external usenet poster
 
Posts: 3
Default how can we make one constant number to be act as variable

I mean to say if we have this formula in a cell:
=vlookup(A12,A35:j40,4,true)
Now i wanna make this 4 to be act as variable and when i drag the cell
containg above formula, copied cell have values 5,6 7 ..n so on in place of 4.

It can seen as reverse of making variable as constant by use of $. e.g.$A$15.
  #2  
Old June 1st, 2010, 10:53 PM posted to microsoft.public.excel.misc
Gary''s Student
external usenet poster
 
Posts: 7,584
Default how can we make one constant number to be act as variable

Perhaps somethin like:
=VLOOKUP(A$12,A$35:J$40,ROWS(1:$1)+3,TRUE)
--
Gary''s Student - gsnu201003


"Vimlesh" wrote:

I mean to say if we have this formula in a cell:
=vlookup(A12,A35:j40,4,true)
Now i wanna make this 4 to be act as variable and when i drag the cell
containg above formula, copied cell have values 5,6 7 ..n so on in place of 4.

It can seen as reverse of making variable as constant by use of $. e.g.$A$15.

  #3  
Old June 1st, 2010, 10:56 PM posted to microsoft.public.excel.misc
Tom Hutchins
external usenet poster
 
Posts: 722
Default how can we make one constant number to be act as variable

Try
=VLOOKUP($A12,$A35:$J40,COLUMN(D12),TRUE)

Are you sure you want TRUE (approximate match) for the final argument
instead of FALSE (exact match)?

Hope this helps,

Hutch

"Vimlesh" wrote:

I mean to say if we have this formula in a cell:
=vlookup(A12,A35:j40,4,true)
Now i wanna make this 4 to be act as variable and when i drag the cell
containg above formula, copied cell have values 5,6 7 ..n so on in place of 4.

It can seen as reverse of making variable as constant by use of $. e.g.$A$15.

  #4  
Old June 1st, 2010, 11:26 PM posted to microsoft.public.excel.misc
Gord Dibben
external usenet poster
 
Posts: 20,252
Default how can we make one constant number to be act as variable

Select 5 cells.

In the active cell enter this formula

=VLOOKUP(A12,$A$35:$J$40,{4,5,6,7,8},TRUE)

Do not hit ENTER key.

Instead hit CTRL + SHIFT + ENTER to enter as an array.


Gord Dibben MS Excel MVP

On Tue, 1 Jun 2010 14:17:01 -0700, Vimlesh
wrote:

I mean to say if we have this formula in a cell:
=vlookup(A12,A35:j40,4,true)
Now i wanna make this 4 to be act as variable and when i drag the cell
containg above formula, copied cell have values 5,6 7 ..n so on in place of 4.

It can seen as reverse of making variable as constant by use of $. e.g.$A$15.


 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:48 AM.


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