Autofill numbers in columns that contain empty cells

MARIA.2NY

New Member
Joined
Jan 29, 2009
Messages
10
Hello,

I have data in column A, C, E, G, and in lines 1-20, 25-36, 38-52.
How can I insert consecutive numbers on the left side of each cell containing data, since I can not use autofill as I have empty cells in some rows as well as empty cells in some columns?
Question 2: Can you use autofill starting at A1 and continuing for example in B7 or C15?
Question 2: Can you use autofill in a column, skipping the numbering when there is an empty cell?
Question 3: Am I making ANY sense AT ALL???;)
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
Put 1 in row 1 of the column you want to use (let's say H). Then in row 2 put something like this:

=IF(LEN(A2)>0,MAX(H$1:H1)+1,"")

and copy down.
 

MARIA.2NY

New Member
Joined
Jan 29, 2009
Messages
10
tHANK YOU, just did that and it is not skipping the empty cells. its just autofills the numbers as if i dragged the +symbol. I'll try again in case i did not copy right
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,168,113
Messages
5,857,453
Members
431,880
Latest member
kar2rost

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
Top