Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Dbase Beginner
 
Posts: n/a
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.misc
Ron Rosenfeld
 
Posts: n/a
Default 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
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:47 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"