Auto fill Numbers

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,824
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Can any one help me I need a formula, that fills numbers if the corresponding cell has a value. So if B3 has firs value A3 will fill 1, and B6 has second value A6 will fill 6, so one.
I knew this formula, it was =COUNTA formula.

Thanks
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

NBVC

Well-known Member
Joined
Aug 31, 2005
Messages
5,828
Do you mean perhaps?

=If(Isnumber(A1),row(A1),"") copied down.
 

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,824
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
No, it was something like, if I enter any number or text in a cell say B8, A8 fills the serial number, and if I fill next in B12 A12 fills 2, in it, so it is like IF B8>"", FILL 1 OR LEVE IT BLANK. so on. It will leave cell blank if the corresponding cell is empty or increase the number by one.
 

NBVC

Well-known Member
Joined
Aug 31, 2005
Messages
5,828
Then maybe?

=IF($B1<>"",COUNTA($B$1:$B1),"") copied down
 

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,824
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
THANK YOU VERY MUCH,
This is one of my favourite formulas. I will not foget it again.
thanks again NBVC
 

Forum statistics

Threads
1,141,665
Messages
5,707,712
Members
421,524
Latest member
Bharath99

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