Adding increment of 1

Damian37

Active Member
Joined
Jun 9, 2014
Messages
301
Office Version
  1. 365
Hello everyone,
I have a document that is a job tracker in which different people can go in to in order to add suggestions to the tracker. I would like to leave the initial A column blank until data is entered into any of the cells within the range of B:L. Currently I have added A1+1 within cell A2, but I would like to create a formula that would leave the A column blank until data is entered in to a new row within any of the cells in range B:L, and then add 1 to the number identified in the previous row within column A. Any help would be greatly appreciated. Thanks!!!

D.
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Maybe this in A2 and copy down
Code:
=IF(count(B2:L2,"")=0,"",A1 + 1)
 
Upvote 0
Maybe this in A2 and copy down
Code:
=IF(count(B2:L2,"")=0,"",A1 + 1)

Thank you Michael, I tried the formula, but unfortunately the formula just leaves the A column blank even though there is data within the range of B3:L3. Not entirely sure what I might be doing wrong. Here is the formula I used:
Code:
=if(count(B3:L3, "")=0,"",A2 + 1)
Thanks!
D.
 
Last edited:
Upvote 0
Ok, use this.
I assumed the B:L was numeric...:oops:

Code:
=IF(COUNTA(B3:L3, "")=0,"",A2 + 1)
 
Last edited:
Upvote 0
Hi,

I think Michael meant to use COUNTIF:

=IF(COUNTIF(B2:L2,"<>"),A1+1,"")
 
Upvote 0
Ok, Michael, Great.

The reason I thought you meant COUNTIF is because of the extra "criteria" in your formula:

=IF(COUNTA(B3:L3, "")=0,"",A2 + 1)

which will error out, and always result in FALSE

So maybe you meant this:

=IF(COUNTA(B2:L2),A1+1,"")

or this:

=IF(COUNTA(B2:L2)=0,"",A1+1)

(y)
 
Upvote 0
yep, your right....

=IF(COUNTA(B2:L2)=0,"",A1+1)
 
Upvote 0
Ok, Michael, Great.

The reason I thought you meant COUNTIF is because of the extra "criteria" in your formula:



which will error out, and always result in FALSE

So maybe you meant this:

=IF(COUNTA(B2:L2),A1+1,"")

or this:

=IF(COUNTA(B2:L2)=0,"",A1+1)

(y)

Hi jtakw,
I attempted the formula you submitted to Michael M, but it only returned #VALUE once I hit enter. Not entirely sure what I'm doing wrong, because the formula makes sense.
D.
 
Upvote 0
Can't imagine why, what Exactly do you have in A1 ?
 
Upvote 0

Forum statistics

Threads
1,214,978
Messages
6,122,549
Members
449,089
Latest member
davidcom

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top