Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

excel question -

  • 10-11-2011 05:00PM
    #1
    Registered Users, Registered Users 2 Posts: 246 ✭✭magic roundabou


    afternoon all
    a question with regard to excel i have a list of numbers 11-1000 and the 1000 gos up by one ie 11-1001 - 11-1002 etc - is there any way i can increase the numbers in a list - ie if it was just 1000 i would put in the next cell A1+1 and it would be 1001 - but because of the 11-10001 it is coming up #Value
    As always thanks in advance
    clare


Comments

  • Registered Users, Registered Users 2 Posts: 1,346 ✭✭✭carveone


    You'll probably have to use a few string operations to chop the string up and then glue it back together. This assumes you want to keep the format as a string...


  • Registered Users, Registered Users 2 Posts: 1,346 ✭✭✭carveone


    Try this for starters:
    =VALUE(MID(A1, FIND("-", A1, 1) + 1, 10))
    

    You can add one to that and convert it back to a string. I hope :)


  • Registered Users, Registered Users 2 Posts: 5,067 ✭✭✭homer911


    Just use a custom number format

    ##-####


  • Posts: 81,309 CMod ✭✭✭✭ Addison Late Meatloaf


    afternoon all
    a question with regard to excel i have a list of numbers 11-1000 and the 1000 gos up by one ie 11-1001 - 11-1002 etc - is there any way i can increase the numbers in a list - ie if it was just 1000 i would put in the next cell A1+1 and it would be 1001 - but because of the 11-10001 it is coming up #Value
    As always thanks in advance
    clare

    excel recognises that with a click and drag
    throw in 11-1000 and 11-1001 and highlight both, and drag as far as you want it to increase...
    if you want +2 then stick it in 11-1000 and 11-1002


  • Registered Users, Registered Users 2 Posts: 1,346 ✭✭✭carveone


    homer911 wrote: »
    Just use a custom number format

    ##-####

    DOH!

    Thanks homer911.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 246 ✭✭magic roundabou


    thanks for the help - got it working with those solutions


Advertisement