+ Reply to Thread
Results 1 to 2 of 2

Automatic Numbering in Excel

  1. #1
    Registered User
    Join Date
    08-11-2009
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    5

    Automatic Numbering in Excel

    Hi there

    I’m having a problem with an automatically numbered list in Excel. I am trying to consolidate two separate invoicing workbooks into one – the two workbooks refer to different countries.

    What I would like to achieve is that when a user picks a customer from a dropdown list (coming from another sheet in the same workbook) and the customer’s country is determined using VLOOKUP (lets say it will be either IRL or UK), that excel will automatically generate an invoice number in column A depending on the following:

    If the customer is from IRL the invoice number will be the lowest unused number between 100000 and 199999.
    If the customer is from the UK the invoice will be the lowest unused number after 200000.

    I have tried a number of different things including:

    Complex If statements incorporating Max and Min Formulas (this creates circular references as the formula is in column A and it gets the max of column A)
    An IRL and a UK helper column which increment if (country=”IRL”) or (country = “UK”) respectively and then add this number on to either 100000 or 200000 (depending on IRL or UK client) – this works OK, but if a sort is performed (which it will be) the invoice numbers no longer correspond to the order they originally corresponded to.


    I have a feeling that this isn’t suitable for Excel but would like to get your opinions if possible – even if just to say I should give up!

    Thanks a million
    Liam

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Automatic Numbering in Excel

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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