Can auto number (or OFFSET) include letters?

G

Guest

From another post I found a formula to automatically number a cell if there
was data in the cell next to it (for example, if there's data in D5 in the
following formula, then D6 will produce a number).

=IF(D5<>"",MAX($B$1:OFFSET(C5,-1,0))+1,"")

My question is, is it possible to do auto numbering just like this formula
does, but so that the product is not just a number such as 1 or 2 but a
letter-number combo such as R1, R2 etc.? (the letter would always be the
same). Thanks!

Colleen B
 
G

Guest

Well you could add; "R"&
=IF(D5<>"","R"&MAX($B$1:OFFSET(C5,-1,0))+1,"")

Ola Sandstrom
 
G

Gord Dibben

Collen

This may do what you want.

=IF(D5<>"","R" & MAX($B$1:OFFSET(C5,-1,0))+1,"")


Gord Dibben Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top