Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Friday Brain Teaser

Status
Not open for further replies.

briangriffin

Programmer
Nov 6, 2008
878
US
This was an interesting request I received yesterday - it wasn't quite as easy as it appeared at first. Those of you who aren't as experienced with formulas, especially using variables, might find this an good exercise.

The report returns a listing of invoice numbers and amounts, and the export file produced is imported into another database. However, that database can only accept unique invoice numbers.

For the first duplicate invoice, they need an "A" appended to the invoice number. Subsequent duplicates will append "B", "C", etc.

It's not unusual for there to be more than 100 duplicates in a batch, so after we reach "Z" we have to begin with "AA", "AB", etc.

So if you have the time and inclination give it a go - I think it will expand your formula knowledge.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top