ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do I add 4 to xxx-xxxx_001 to get xxx-xxxx_004 ? (https://www.excelbanter.com/excel-discussion-misc-queries/66546-how-do-i-add-4-xxx-xxxx_001-get-xxx-xxxx_004-a.html)

Dbase Beginner

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

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 !


--
Dbase Beginner
------------------------------------------------------------------------
Dbase Beginner's Profile: http://www.excelforum.com/member.php...o&userid=20778
View this thread: http://www.excelforum.com/showthread...hreadid=503597


Ron Rosenfeld

How do I add 4 to xxx-xxxx_001 to get xxx-xxxx_004 ?
 
On Sat, 21 Jan 2006 04:04:36 -0600, Dbase Beginner
<Dbase.Beginner.21zbym_1137838201.4975@excelforu m-nospam.com wrote:


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


All times are GMT +1. The time now is 05:21 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com