Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
FINDING THE FIRST ENTERED NUMBER IN A ROW OF DATA AFTER A BLANK CE | Excel Worksheet Functions | |||
FINDING THE LAST ENTERED NUMBER IN A ROW OF DATA | Excel Worksheet Functions | |||
Number entered isn't number recorded in cell. | Excel Discussion (Misc queries) | |||
cell that only a certain number may be entered | Excel Worksheet Functions | |||
Autopopulate with zero | Excel Worksheet Functions |