Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CR Optiker
 
Posts: n/a
Default Insert row number into a cell?

I want to enter an IF function into an array of cells such that if the
value in a cell is equal to a certain number, in the corresponding cell on
another worksheet, the result entered into the function cell is the row
number of that cell.

Can I do that, and if so, what's the syntax for the row number? My equation
is as foillows where $A1 represents the row number of the formula cell. For
a placeholder, I've entered a simple series in the A column, and use that,
but I'd rather use the row number if there's a way to do it.

=IF(flat!A1=255,$A1,0)

Thanks!
Optiker
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Govind
 
Posts: n/a
Default Insert row number into a cell?

Hi,

Modify your formula to

=IF(flat!A1=255,row(A1),0)

and copy it down to the array to return the row number.

Regards

Govind.

CR Optiker wrote:

I want to enter an IF function into an array of cells such that if the
value in a cell is equal to a certain number, in the corresponding cell on
another worksheet, the result entered into the function cell is the row
number of that cell.

Can I do that, and if so, what's the syntax for the row number? My equation
is as foillows where $A1 represents the row number of the formula cell. For
a placeholder, I've entered a simple series in the A column, and use that,
but I'd rather use the row number if there's a way to do it.

=IF(flat!A1=255,$A1,0)

Thanks!
Optiker

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CR Optiker
 
Posts: n/a
Default Insert row number into a cell?

On Fri, 30 Dec 2005 10:37:52 +1100, Govind wrote:

Hi,

Modify your formula to

=IF(flat!A1=255,row(A1),0)

and copy it down to the array to return the row number.

Regards

Govind.

CR Optiker wrote:


=IF(flat!A1=255,$A1,0)


Govind...thank you very much.
Optiker
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
select cell based on a number in another cell [email protected] New Users to Excel 3 December 6th 05 09:44 PM
number cell increment +1 when dragging down box Johnny Cake Excel Worksheet Functions 4 August 18th 05 07:29 PM
number formatted cell Pam Coleman Excel Discussion (Misc queries) 2 June 2nd 05 08:44 PM
Maximum Number of Cell Formats Jim Allen Excel Discussion (Misc queries) 4 April 19th 05 07:07 PM
Insert value of a cell as a filename Ralph Howarth Excel Worksheet Functions 0 January 18th 05 12:03 AM


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