LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 690
Default How to get Row # in formula?

how can I write a formula to populate the "13" or "20" automatically
for whatever row I am in?


Just to be different...
Add a range name formula. This macro will do it for you...

ActiveWorkbook.Names.Add Name:="fx", RefersToR1C1:= _
"=RC2*SUM(RC3:RC5)"

Now, in a cell in any column(except B:E), just enter the formula =Fx

= = = = = = =
HTH :)
Dana DeLouis



On 3/12/2010 8:53 AM, DaveR wrote:
I have several rows with the same formula but they are seperated, in some
cases, by rows with other information to prevent me from just dragging a
formula down to other rows.

Ex. While in row 13: B13*C13+B13*D13+B13*E13
While in row 20: B20*C20+....

how can I write a formula to populate the "13" or "20" automatically for
whatever row I am in?

Thanks,
Dave

 
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



All times are GMT +1. The time now is 08:13 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"