Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Need variable that refers to same row different column

Background.:
I came up with this for a coworker-

Plug this formula into your B Column on the sheet of your report.

Formula:

=DATEVALUE(GXX)

where XX is the corresponding row value in column G


It would have been a lot cooler to send him a formula that he didn't have to
change.

Question.:
Is there a variable I can use in Excel that refers to the same row as the
selected cell, something like "=DATEVALUE(Gsamerow)" ???

TIA
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Need variable that refers to same row different column

=DATEVALUE(INDEX(G:G,ROW())) is one option.
--
David Biddulph

"Toddomation" wrote in message
...
Background.:
I came up with this for a coworker-

Plug this formula into your B Column on the sheet of your report.

Formula:

=DATEVALUE(GXX)

where XX is the corresponding row value in column G


It would have been a lot cooler to send him a formula that he didn't have
to
change.

Question.:
Is there a variable I can use in Excel that refers to the same row as the
selected cell, something like "=DATEVALUE(Gsamerow)" ???

TIA



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 561
Default Need variable that refers to same row different column

I'm not sure I followed you - but you may check the INDIRECT Function.
=INDIRECT("G"&ROW())
Micky


"Toddomation" wrote:

Background.:
I came up with this for a coworker-

Plug this formula into your B Column on the sheet of your report.

Formula:

=DATEVALUE(GXX)

where XX is the corresponding row value in column G


It would have been a lot cooler to send him a formula that he didn't have to
change.

Question.:
Is there a variable I can use in Excel that refers to the same row as the
selected cell, something like "=DATEVALUE(Gsamerow)" ???

TIA

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 561
Default Need variable that refers to same row different column

I assume you understood my suggestion - in any case the full formula is:
=DATEVALUE(INDIRECT("G"&ROW()))
Micky


"מיכאל (מיקי) אבידן" wrote:

I'm not sure I followed you - but you may check the INDIRECT Function.
=INDIRECT("G"&ROW())
Micky


"Toddomation" wrote:

Background.:
I came up with this for a coworker-

Plug this formula into your B Column on the sheet of your report.

Formula:

=DATEVALUE(GXX)

where XX is the corresponding row value in column G


It would have been a lot cooler to send him a formula that he didn't have to
change.

Question.:
Is there a variable I can use in Excel that refers to the same row as the
selected cell, something like "=DATEVALUE(Gsamerow)" ???

TIA

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
Increase width of 'Refers to' box Graeme Setting up and Configuration of Excel 2 August 16th 09 08:24 PM
macro than refers to a cell? jackrobyn1 Excel Discussion (Misc queries) 1 June 18th 08 11:01 PM
variable column Libby Excel Worksheet Functions 1 January 28th 08 06:32 PM
Sum cells based on a row variable and seperate column variable CheeseHeadTransplant Excel Worksheet Functions 10 September 23rd 05 06:59 PM
Same Name refers to local ranges Mats Samson Excel Worksheet Functions 6 July 18th 05 01:58 PM


All times are GMT +1. The time now is 03:08 AM.

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"