Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 47
Default Autopopulate row number in A2 IF data is entered in B2.

How can I autopululate a row number in a cell A* ONLY if there is data is
entered in B*? I tried an =IF(b2= " ",then "2") in the cell I want the
number to appear and that did not work.
--
Cassie
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default Autopopulate row number in A2 IF data is entered in B2.

Close! But not quite there. Try
=IF(B2="",2,"")
you don't need the word "then" in there, the format for the IF() is
IF(test condition, true action, false action)


"Cassie" wrote:

How can I autopululate a row number in a cell A* ONLY if there is data is
entered in B*? I tried an =IF(b2= " ",then "2") in the cell I want the
number to appear and that did not work.
--
Cassie

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default Autopopulate row number in A2 IF data is entered in B2.

Your formula attempt *doesn't* match your description and subject line.

Try this in A2, and copy down as needed:

=If(B2<"",Row(),"")

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"Cassie" wrote in message
...
How can I autopululate a row number in a cell A* ONLY if there is data is
entered in B*? I tried an =IF(b2= " ",then "2") in the cell I want the
number to appear and that did not work.
--
Cassie


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 47
Default Autopopulate row number in A2 IF data is entered in B2.

OK- I guess I said that backwards. I only want the numbering if there is
data in cell b2. How does that change the formula? Would it be =IF(B2
isnotblank,2,"")
--
Cassie


"JLatham" wrote:

Close! But not quite there. Try
=IF(B2="",2,"")
you don't need the word "then" in there, the format for the IF() is
IF(test condition, true action, false action)


"Cassie" wrote:

How can I autopululate a row number in a cell A* ONLY if there is data is
entered in B*? I tried an =IF(b2= " ",then "2") in the cell I want the
number to appear and that did not work.
--
Cassie

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 47
Default Autopopulate row number in A2 IF data is entered in B2.

Thanks. This works except for one thing. When I copied this into row 3
(which is actualy the 2nd row of data) it entered the row number as 3. How
can I do this but have it show 2 instead of 3?
--
Cassie


"RagDyeR" wrote:

Your formula attempt *doesn't* match your description and subject line.

Try this in A2, and copy down as needed:

=If(B2<"",Row(),"")

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"Cassie" wrote in message
...
How can I autopululate a row number in a cell A* ONLY if there is data is
entered in B*? I tried an =IF(b2= " ",then "2") in the cell I want the
number to appear and that did not work.
--
Cassie





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default Autopopulate row number in A2 IF data is entered in B2.

Use the Rows() function instead:

Copy down to increment, same as Row(),

Start where you wish:
Rows($1:2) starts at 2
Rows($1:3) starts at 3
Rows($1:4) starts at 4
.... etc.
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"Cassie" wrote in message
...
Thanks. This works except for one thing. When I copied this into row 3
(which is actualy the 2nd row of data) it entered the row number as 3. How
can I do this but have it show 2 instead of 3?
--
Cassie


"RagDyeR" wrote:

Your formula attempt *doesn't* match your description and subject line.

Try this in A2, and copy down as needed:

=If(B2<"",Row(),"")

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"Cassie" wrote in message
...
How can I autopululate a row number in a cell A* ONLY if there is data is
entered in B*? I tried an =IF(b2= " ",then "2") in the cell I want the
number to appear and that did not work.
--
Cassie





  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Autopopulate row number in A2 IF data is entered in B2.

If you have a formula that returns 3 and you want 2, and similarly in other
rows you wish to return a value reduced by 1, then perhaps subtracting 1
would be a useful extra feature to include in your formula?
--
David Biddulph

"Cassie" wrote in message
...
Thanks. This works except for one thing. When I copied this into row 3
(which is actualy the 2nd row of data) it entered the row number as 3.
How
can I do this but have it show 2 instead of 3?
--
Cassie


"RagDyeR" wrote:

Your formula attempt *doesn't* match your description and subject line.

Try this in A2, and copy down as needed:

=If(B2<"",Row(),"")

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"Cassie" wrote in message
...
How can I autopululate a row number in a cell A* ONLY if there is data is
entered in B*? I tried an =IF(b2= " ",then "2") in the cell I want the
number to appear and that did not work.
--
Cassie





  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default Autopopulate row number in A2 IF data is entered in B2.

for my part of it, change
(B2="",
to
(B2<"",

I think RagDyeR has given you the rest of it.

"Cassie" wrote:

OK- I guess I said that backwards. I only want the numbering if there is
data in cell b2. How does that change the formula? Would it be =IF(B2
isnotblank,2,"")
--
Cassie


"JLatham" wrote:

Close! But not quite there. Try
=IF(B2="",2,"")
you don't need the word "then" in there, the format for the IF() is
IF(test condition, true action, false action)


"Cassie" wrote:

How can I autopululate a row number in a cell A* ONLY if there is data is
entered in B*? I tried an =IF(b2= " ",then "2") in the cell I want the
number to appear and that did not work.
--
Cassie

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
FINDING THE FIRST ENTERED NUMBER IN A ROW OF DATA AFTER A BLANK CE Morton Detwyler[_2_] Excel Worksheet Functions 9 July 20th 08 05:56 PM
FINDING THE LAST ENTERED NUMBER IN A ROW OF DATA Morton Detwyler Excel Worksheet Functions 7 July 6th 08 04:14 AM
Number entered isn't number recorded in cell. BubbaGee Excel Discussion (Misc queries) 4 September 11th 07 09:38 PM
cell that only a certain number may be entered jbailey Excel Worksheet Functions 7 August 24th 06 11:09 PM
Autopopulate with zero roy.okinawa Excel Worksheet Functions 3 December 14th 05 01:11 AM


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