ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   =cell("row") ... changes depending on what cell i click? HELP! (https://www.excelbanter.com/excel-discussion-misc-queries/223595-%3Dcell-row-changes-depending-what-cell-i-click-help.html)

tripflex

=cell("row") ... changes depending on what cell i click? HELP!
 
Alright so if i put the above code into say the first five cells of my
workbook, they all have the same number in them?

I want each one to mimic what row it is in so it should be 1,2,3,4,5 but for
some reason all of the cells say 5 if i have 5 or 4 if i have 4, etc

Anybody know why it is doing this? Thanks!

FSt1

=cell("row") ... changes depending on what cell i click? HELP!
 
hi
try this =cell("row",A1)
without a reference i think the formula references the activecell. not 100%
sure on that.

Regards
FSt1

"tripflex" wrote:

Alright so if i put the above code into say the first five cells of my
workbook, they all have the same number in them?

I want each one to mimic what row it is in so it should be 1,2,3,4,5 but for
some reason all of the cells say 5 if i have 5 or 4 if i have 4, etc

Anybody know why it is doing this? Thanks!


Bob Phillips

=cell("row") ... changes depending on what cell i click? HELP!
 
Try

=CELL("row",A1)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"tripflex" wrote in message
...
Alright so if i put the above code into say the first five cells of my
workbook, they all have the same number in them?

I want each one to mimic what row it is in so it should be 1,2,3,4,5 but
for
some reason all of the cells say 5 if i have 5 or 4 if i have 4, etc

Anybody know why it is doing this? Thanks!




Sheeloo[_3_]

=cell("row") ... changes depending on what cell i click? HELP!
 
Use
=ROW()

If you want to you cell then use it like this
=CELL("row",A1)
it will give you the row number of the cell A1


"tripflex" wrote:

Alright so if i put the above code into say the first five cells of my
workbook, they all have the same number in them?

I want each one to mimic what row it is in so it should be 1,2,3,4,5 but for
some reason all of the cells say 5 if i have 5 or 4 if i have 4, etc

Anybody know why it is doing this? Thanks!



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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com