+ Reply to Thread
Results 1 to 7 of 7

Autonumber when choosing text

  1. #1
    Registered User
    Join Date
    10-18-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    5

    Autonumber when choosing text

    Hi all,

    I would like to generate a unique number(in column A, worksheet BREEAM) when choosing an item from my dropdown in colomn C(see example).
    I tried numerous things but with al the options I've tried it works fine untill i'm going to use the sort options.

    So what I would like to do is:
    - Generate a unique number when there's text in Column C.
    - This unique number needs to be generated automatically and checks which is the highest number in column A + 1
    - It shouldn't renumber al the items when using the sorting options.

    Can anybody point me in the right direction?

    Thanks in advance and Kind Regards
    Machiel
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    573

    Re: Autonumber when choosing text

    how about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-18-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Autonumber when choosing text

    Hi Sindhus,

    Thanks for your answer, I tried that one and tried a few similar options I came up with myself.
    But somehow the numbering is incorrect and changes constantly.

    Do you or somebody else have another idea.
    I think we need to use a macro for this one.

  4. #4
    Valued Forum Contributor
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    573

    Re: Autonumber when choosing text

    Could you specific examples?

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Autonumber when choosing text

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    I don't think you can do this without copying the result and using Paste special > Values
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  6. #6
    Registered User
    Join Date
    10-18-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Autonumber when choosing text

    Quote Originally Posted by Sindhus View Post
    Could you specific examples?
    Not sure what kind of examples you want but i've added your suggested solution to my worksheet.
    You will see the problem when choosing something from column C.

    I tried variations on that same IF statement.
    Tried using ROW function, that works fine until you use sort function from excel.
    Attached Files Attached Files

  7. #7
    Valued Forum Contributor
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    573

    Re: Autonumber when choosing text

    Oh got it. You are sorting your sheet after generating the number rite? Then you use paste special as Marcol has suggested. Or, write the value using a macro.

    May be a code like this.
    Please Login or Register  to view this content.
    Last edited by Sindhus; 10-19-2012 at 06:22 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1