Consulting

Results 1 to 4 of 4

Thread: Solved: Add 1 when copying and linking.

  1. #1

    Solved: Add 1 when copying and linking.

    Hi

    I have contract numbers containing a mix of letters and numbers. They are 7 digits in length.

    The last 3 digits are always numbers

    e.g. ABCD259 cell A1 (sheet1)
    FTGW514

    I would like to be able to copy the contract from one sheet/cell to another but add 1 to it

    so ABCD260 cell A1 (sheet2)
    FTGW515

    Can't seem to make it work.

    Any help appreciated

    thanks
    Jon

  2. #2
    VBAX Mentor
    Joined
    Jun 2004
    Posts
    363
    Location
    Something like this perhaps:
    [vba]Left(Selection,4) & Right(Selection,3)+1[/vba]

  3. #3
    How would this look in a linking formula?

    thanks

  4. #4
    Ok - figured it now I've slept

    =left(!sheet1A1,4)&right(!sheet1A1,4)+1

    cheers

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •