NEED HELP PLEASE!! Generating numbers in cell

RKH1989

New Member
Joined
Aug 13, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
What I am Attempting to do seems simple but I cannot for the life of me get it right.

I'm trying to generate sequential number based on my starting number. Lets say 220500.
If cell B2 has any text the a2 will automatically populate the number 220500. This number would increase by one in the following rows as the B cell is populated.
I've tried combining if statement with sequence how ever it populated the whole A column when text was add to the b cell. I know I'm missing something simple.

Can someone assist with this?
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Hi & welcome to MrExcel.
How about
Excel Formula:
=SEQUENCE(COUNTA(B:B),,220500)
if you have something in B1 then subtract 1 from the counta.
 
Upvote 0
Hi & welcome to MrExcel.
How about
Excel Formula:
=SEQUENCE(COUNTA(B:B),,220500)
if you have something in B1 then subtract 1 from the counta.
I appreciate it.
I wrote it like
=IF((C2= "*");SEQUENCE(COUNTA(C:C),1,220500))

I'm just getting false back.
 
Upvote 0
Did you try the formula I posted?
 
Upvote 0
If you need to cover off the that the starting position is blank, then you could just wrap Fluff's formula in an IFERROR statement.
Excel Formula:
=IFERROR(SEQUENCE(COUNTA(B:B),,220500),"")
(or C:C since you seem to have swapped columns between post 1 and post 3)
 
Upvote 0

Forum statistics

Threads
1,214,915
Messages
6,122,217
Members
449,074
Latest member
cancansova

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