Hi, how do I design a workflow to find boundaries of an Excel sheet (top left, top right, bottom left, bottom right)? Here is my current workflow, currently I am using Ascii increment but this only works until column Z. How do I modify this so that it works for column AA, BA, AAA etc? Thanks
Converts a number to Base 26 notation e.g. converts E to 5, 27 to AA, 52 to AZ, 53 to BA and so on.
Does the inverse i.e. parses BA28 to column number 53, row 28… E30 to column 5, row 30 etc.
It should work with any length of column label e.g. A-Z, AA-ZZ, AAA-ZZZ and so on. So I can just shift right one cell and it switches from Z10 to AA10, or shift left one cell from BA11 to AZ11 etc.
You can move forward or improve by exploring this initial workflow I created. Input file is any number and output is a series of letter/s equivalent to the column ID in excel.
By the way, I used MODULO and DIVISION looped in a do-while for this. I think we can experiment and improve the logic here so we can do the reverse conversion as well.
Hi, thanks for the workflow, it works in most cases but when I input 26, it returns me “A” instead of “Z”, how do I fix this? Also, please check if similar issues occur for ZZ to AAA, AZ to BA etc.
Edit: tested it out, 52 is supposed to translate to AZ but instead it calculates to B