Counting numbers

dmiller223

New Member
Joined
Aug 1, 2011
Messages
2
I am new to Mr. Excel and Excel in general. I am creating a spreadsheet where in column A I need to number the items from 1-500, but I only want the next number to populate based on a date being entered in B.

For example,

A5 would have the number 1 in it only after B5 had a date entered. Then A6 would have the number 2 only after B6 had a date entered. If anyone could help, I would greatly appreciate it.

Thanks again.:eeek:
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Hi,

Welcome to the forum.

Try this in A5
=IF(ISNUMBER(B5),ROWS($A$5:A5),"")

copy down till you need

HTH

M.
 
Upvote 0
I am new to Mr. Excel and Excel in general. I am creating a spreadsheet where in column A I need to number the items from 1-500, but I only want the next number to populate based on a date being entered in B.

For example,

A5 would have the number 1 in it only after B5 had a date entered. Then A6 would have the number 2 only after B6 had a date entered. If anyone could help, I would greatly appreciate it.

Thanks again.:eeek:

Assuming A5 already has the value of one, enter the following in A6 and copy down as needed:

=IF(NOT(ISBLANK(B6)),A5+1,"")
 
Upvote 0
Thank you both for the quick reply. I am going to use this group from now on. You took the 3 hours of searchin online into about five minutes worth of work. Thank you very much again.

:):):):)
 
Upvote 0

Forum statistics

Threads
1,224,584
Messages
6,179,691
Members
452,938
Latest member
babeneker

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