Translationguy
New Member
- Joined
- Nov 4, 2016
- Messages
- 26
Hi All
I have (what is probably) quite an unusual problem where I frequently need to measure the amount of single and double byte characters in an Excel cell.
The reason for this is that Google allows a fixed number of characters for PPC such as ads but for double byte languages, it counts any single byte characters such as spaces and English text as 0.5. Therefore whilst the character limit they have might be 12, I could use 9 double byte characters and 6 single byte characters and still make it fit.
If it is over this limit, the piece will be rejected and can;t be used whatsoever.
The current method I have is to count the number of single byte characters in the text, put the number into the cell next to it and put in a formula such as "=LEN(a1)-(a3/2)".
"A1" is the text I am measuring, "A3" is where I put the manually counted number of double byte characters and the result will tell me how Google would view it. I tend to put in conditional formatting to highlight the ones that are too long however this is quite a manual process.
I understand that Excel has the ability to count bytes with "=lenb" however it hasn't worked when trying to measure 2 different byte lengths in the same cell.
The cells will never follow the same pattern however changing the cells the formula is referencing isn't too much of an issue for us.
If anybody knows of a solution I'd be really grateful as it will save a lot of time for myself and my colleagues.
With many thanks!
I have (what is probably) quite an unusual problem where I frequently need to measure the amount of single and double byte characters in an Excel cell.
The reason for this is that Google allows a fixed number of characters for PPC such as ads but for double byte languages, it counts any single byte characters such as spaces and English text as 0.5. Therefore whilst the character limit they have might be 12, I could use 9 double byte characters and 6 single byte characters and still make it fit.
If it is over this limit, the piece will be rejected and can;t be used whatsoever.
The current method I have is to count the number of single byte characters in the text, put the number into the cell next to it and put in a formula such as "=LEN(a1)-(a3/2)".
"A1" is the text I am measuring, "A3" is where I put the manually counted number of double byte characters and the result will tell me how Google would view it. I tend to put in conditional formatting to highlight the ones that are too long however this is quite a manual process.
I understand that Excel has the ability to count bytes with "=lenb" however it hasn't worked when trying to measure 2 different byte lengths in the same cell.
The cells will never follow the same pattern however changing the cells the formula is referencing isn't too much of an issue for us.
If anybody knows of a solution I'd be really grateful as it will save a lot of time for myself and my colleagues.
With many thanks!