@RDAOU I know what you said, i was having this kind of approch for years, and i can tell you that most of the people forget to write something there..
@Simon_Weel Thank you for your formula!
I made mine based on yours where "Lungime" is the width and "Inaltime" is for height
if(and(Lungime = 297 mm, Inaltime = 210 mm), "A4", if(and(Lungime = 420 mm, Inaltime = 297 mm), "A3", if(and(Lungime = 594 mm, Inaltime = 420 mm), "A2", if(and(Lungime = 841 mm, Inaltime = 594 mm), "A1", if(and(Lungime = 841 mm, Inaltime = 1189 mm), "A0", if(and(Lungime = 210 mm, Inaltime = 297 mm), "A4", if(and(Lungime = 297 mm, Inaltime = 420 mm), "A3", if(and(Lungime = 420 mm, Inaltime = 594 mm), "A2", if(and(Lungime = 594 mm, Inaltime = 841 mm), "A1", if(and(Lungime = 1188 mm, Inaltime = 841 mm), "A0", "-"))))))))))
Breaking in in raws for easy understanding for others if needed:
if(and(Lungime = 297 mm, Inaltime = 210 mm), "A4",
if(and(Lungime = 420 mm, Inaltime = 297 mm), "A3",
if(and(Lungime = 594 mm, Inaltime = 420 mm), "A2",
if(and(Lungime = 841 mm, Inaltime = 594 mm), "A1",
if(and(Lungime = 841 mm, Inaltime = 1189 mm), "A0",
if(and(Lungime = 210 mm, Inaltime = 297 mm), "A4",
if(and(Lungime = 297 mm, Inaltime = 420 mm), "A3",
if(and(Lungime = 420 mm, Inaltime = 594 mm), "A2",
if(and(Lungime = 594 mm, Inaltime = 841 mm), "A1",
if(and(Lungime = 1188 mm, Inaltime = 841 mm), "A0",
"-"))))))))))
If you add more rules you need to close more brackets. If you want to change the "-" displayed when other formats you can change the end quate
Thank you!