deLockloire
Board Regular
- Joined
- Apr 4, 2008
- Messages
- 116
- Office Version
- 365
- Platform
- Windows
hi,
I have a table, and one of the columns contains text values (invoice numbers, which may contain both alphabetical and numerical characters). Now, the column contains the number of both our invoices and our partners' invoices. What I'd like to do is check if any of OUR invoice number is missing. What needs to be known?
1) Our own invoice numbers starts with XG and then comes a number, e.g., 00001. I.e., XG00001. This is the first invoice. The second invoice is XG00002, the third is XG00003, etc. So the invoice number is increased by one with each new invoice issued.
What I'd like to do, is somehow give our last invoice number (e.g., XG05613), and a formula in a cell should check if we have any invoice number (from XG00001 to XG05613) missing from the given column. And it should write the smallest number of invoice number which is missing.
For instance, if XG01000 and XG02000 is nowhere to be found in column C, it should write XG01000. If all invoices are found between the given range (XG00001 and XG05613), it writes OK or something.
I feel it should somehow be solved with iterative calculations, but I'm not sure how. Can you help with this?
I have a table, and one of the columns contains text values (invoice numbers, which may contain both alphabetical and numerical characters). Now, the column contains the number of both our invoices and our partners' invoices. What I'd like to do is check if any of OUR invoice number is missing. What needs to be known?
1) Our own invoice numbers starts with XG and then comes a number, e.g., 00001. I.e., XG00001. This is the first invoice. The second invoice is XG00002, the third is XG00003, etc. So the invoice number is increased by one with each new invoice issued.
What I'd like to do, is somehow give our last invoice number (e.g., XG05613), and a formula in a cell should check if we have any invoice number (from XG00001 to XG05613) missing from the given column. And it should write the smallest number of invoice number which is missing.
For instance, if XG01000 and XG02000 is nowhere to be found in column C, it should write XG01000. If all invoices are found between the given range (XG00001 and XG05613), it writes OK or something.
I feel it should somehow be solved with iterative calculations, but I'm not sure how. Can you help with this?