View Single Post
Old Jun 4, 2005 | 11:08 AM
  #17  
SupaMiniCupa's Avatar
SupaMiniCupa
Part of the Furniture
 
Joined: May 2004
Posts: 178
Likes: 0
From: Wordsley, West Mids
Default

OK, I'm not very good at putting spreadsheets into words, but here goes:

D1= The number of consecutive free codes you need (entered by user)

D5 and downwards = 'XXX' to show which codes are being taken. Blank = free.

C5 and downwards = consecutively numbered product codes.

A5 and downwards = IF(D5<>"",0,A4+1).

D2 = First free product number available =(VLOOKUP($D$1,A:C,3,FALSE)-D1+1)

Its not pretty, but it seems to work
Reply