Formula to make queue with text

studentlearner

New Member
Joined
Oct 7, 2021
Messages
30
Office Version
  1. 365
Platform
  1. Windows
Question is there a formula for the below example?

From this:
QueueNameOrder No.
JackN01
JennyN02
JennyN03
KimmyN04

To this:

QueueNameOrder No.
N01Q01JackN01
N02Q02JennyN02
N03Q03JennyN03
N01Q02KimmyN04

1. So A2 gets the value of C2 and add letter "Q" and start a queue of "01".
2. Then subsequently A3 does the same thing, except it checks the above cell "A2" for its last two value which is the bold N01Q01.
3. the subsequent row will be on loop using the step number 2.
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Welcome to the MrExcel board!

Thank You!! appreciate the help!
:confused: How does that produce the results you showed in post #1?
From what I can see, none of the results match yours.

(Also note that if any rows are subsequently added at the top of the sheet, the results will be even more different to yours)

21 10 09.xlsm
ABCDE
1QueueNameOrder No.Check
2N01Q1JackN01FALSE
3N02Q2JennyN02FALSE
4N03Q3JennyN03FALSE
5N04Q4KimmyN04FALSE
6
7To this:
8QueueNameOrder No.
9N01Q01JackN01
10N02Q02JennyN02
11N03Q03JennyN03
12N01Q02KimmyN04
Queue
Cell Formulas
RangeFormula
A2:A5A2=C2&"Q"&ROW()-1
E2:E5E2=A2=A9
 
Upvote 0
What about
Excel Formula:
A2=C2&"Q"&MID(C2,2,255)
 
Upvote 0
@studentlearner
I noticed that you marked my post (#4) as the solution to this thread. My post does not contain or suggest a solution so I have un-marked it as the solution.
My post was simply pointing out that the earlier suggestion does not produce the results you said you wanted.

BTW, post #5 also does not produce the results you showed in post #1 as what you wanted.
 
Upvote 0
SO
Excel Formula:
A2=C2&"Q"&MID(C2,2,255)
A3==C3&"Q"&IF(VALUE(RIGHT(A2,2)+1)<=9,"0","")&VALUE(RIGHT(A2,2)+1)
 
Upvote 0
SO
Excel Formula:
A2=C2&"Q"&MID(C2,2,255)
A3==C3&"Q"&IF(VALUE(RIGHT(A2,2)+1)<=9,"0","")&VALUE(RIGHT(A2,2)+1)
Perhaps the OP has given incorrect expected results(?), but for the 4th row of sample data that gives
N04Q04
The expected results for that row show
N01Q02

That is all I have been trying to point out and hoping that the OP would clarify the expected results or provide some logic for how to arrive at the posted values.
 
Upvote 0
That's typo according to point s 1 & 2 from initial post #1.
In row 4 should be N04Q04.

Excel Formula:
=C2&"Q"&TEXT(ROW()-1,"#00")
 
Upvote 0

Forum statistics

Threads
1,224,737
Messages
6,180,653
Members
452,992
Latest member
TokugawaIesuma

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