How do I add 4 to xxx-xxxx_001 to get xxx-xxxx_004 ?

  • Thread starter Thread starter Dbase Beginner
  • Start date Start date
D

Dbase Beginner

Hi,

I need to create a document range with begin and end number.
In one column I have the begin number of the document and in a second
one the number of pages.
How do I tell Excel to add the pages to the begin number ?

005-LA001_001 + 4 = 005-LA001_004
001-CTM_001 + 13 = 001-CTM_013
018-LA107-001_001 + 230 = 018-LA107-001_230

I have started a manual job on this, but got deparated after a while.

Thanks in advance !
 
Hi,

I need to create a document range with begin and end number.
In one column I have the begin number of the document and in a second
one the number of pages.
How do I tell Excel to add the pages to the begin number ?

005-LA001_001 + 4 = 005-LA001_004
001-CTM_001 + 13 = 001-CTM_013
018-LA107-001_001 + 230 = 018-LA107-001_230

I have started a manual job on this, but got deparated after a while.

Thanks in advance !


=LEFT(A1,FIND("_",A1))& TEXT(RIGHT(A1,3)+B1-1,"000")

However, if the starting number is always 001, then the above simplifies to:

=LEFT(A1,FIND("_",A1))& TEXT(B1,"000")


--ron
 

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

Back
Top