How to increment letter combinations in c++ beyond 'z'?
I'm working on an Excel spreadsheet, and I have to use only one type of formula for a huge amount of data. Since in the formula the only necessary changes concern letters, I was wondering if there is a way to make a program that increments them following the Excel columns order (A, B, C...Z; AA, AB, AC...AZ; BA, BB, BC...BZ). In my case, I would need to increment letters each time by five, so here is the kind of code I'm trying to obtain: #include <iostream> using namespace std; int main() { char x = 'B'; char y = 'E'; for (int z = 1; z < 2255; z++) { cout << "=SUMPRODUCT(SUBTOTAL(4,OFFSET(" <