Number sequence formula?

adavies

Board Regular
Joined
Nov 15, 2005
Messages
61
Hi All,

I am trying to figure out a number sequence formula.

Here's how the sheet will look

A1 = Name
B1 = number sequence (2,4,B (repeat))

However B1 will reference A1 and if it is blank it will not input a sequence number (2,4,B) It will be left blank, but the next line should carry on where the sequence left off.

What would be the best formula to use for this?
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Sequence

A1 = John
A2 = bob
A3 = blank
A4 = Chris
A5 = Jen
A6 = Roger
A7 = Blank
A8 = Trish

B1 = 2
B2 = 4
B3 = (because A3 is blank B3 is blank and the sequence continues with B4)
B4 = B
B5 = 2
B6 = 4
B7 =
B8 = 2
 
Upvote 0
Because B7 is blank (A7 is the ref cell and it is blank) so the next cell would carry on with the pattern 2, 4, B
 
Upvote 0
You posted your correction as I was asking my question. If you read my question carefully, it asking about the sequence you posted, not the correction you posted afterwards.
 
Upvote 0
sorry doing to many things at once... I will give this a try and let you know but thanks in advance regardless of it working or not
 
Upvote 0

Forum statistics

Threads
1,213,517
Messages
6,114,085
Members
448,548
Latest member
harryls

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