+ Reply to Thread
Results 1 to 5 of 5

Increasing invoice number.

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    04-27-2006
    Location
    Cayman Islands
    Posts
    379

    Increasing invoice number.

    Column N in my spreadsheet needs to generate an Invoice Number if certain criteria are met...

    1. If column A has a "G" in it
    2. If column D has a value in it
    3. If column M > £0.00

    However I want it to remain blank if these criteria are not met. If they are met then the number generated must be one higher than the previous number generated. The invoice numbers start at a number defined in cell B4.

    Please help :-D

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454
    Hi,

    In column N,

    =IF(ISERROR(IF(FIND("G",A1)>0,IF(D1>0,IF(M1>0,B4=ROW(),""),""),"")),"",IF(FIND("G",A1)>0,IF(D1>0,IF(M1>0,B4+ROW(),""),""),""))

    so long as you don't need the invoice numbers to be sequential, just incremenally larger.

    HTH

    Dave

  3. #3
    Forum Contributor
    Join Date
    04-27-2006
    Location
    Cayman Islands
    Posts
    379
    Hi there, it doesn't seem to work... I have uploaded a .zip file if it helps (same as on other post)

    But it should be something like this...

    B4 = 1000

    1st line ALL CRITERIA MET 1000
    2nd Line ALL CRITERIA MET 1001
    3rd Line CRITERIA NOT MET
    4th Line ALL CRITERIA MET 1002

    etc. etc.
    Attached Files Attached Files

  4. #4
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454
    Sorry - forgot my absolutes

    =IF(ISERROR(IF(FIND("G",A8)>0,IF(D8>0,IF(M8>0,$B$4+ROW()-7,""),""),"")),"",IF(FIND("G",A8)>0,IF(D8>0,IF(M8>0,$B$4+ROW()-7,""),""),""))

    but I can't get the invoice numbers to be incremental, without using VBA. Do you want to go that route??

    Dave

  5. #5
    Forum Contributor
    Join Date
    04-27-2006
    Location
    Cayman Islands
    Posts
    379
    No I think I have found a solution using another column, which if the criteria are met then it adds one to the provious number, if they aren't met it repeats the number.

    The invoice number column then, if the criteria are met, puts in the value from the other column, and if they are not met, it leaves the cells blank.

    Not very elegant though.

    Thanks very much for your input though.

+ 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